Difference between revisions of "Replacing the Joomla Native Login Screen With Hello Me Module"

(How Do We Know What File To Override)
(How Do We Know What File To Override)
Line 28: Line 28:
 
If you remember the link we gave you at the beginning of this guide you will notice how easy is to discover what file we should be edit.
 
If you remember the link we gave you at the beginning of this guide you will notice how easy is to discover what file we should be edit.
 
:::[[File:Comuserslink.png]]
 
:::[[File:Comuserslink.png]]
* <font color=red>test</font>
+
* <font color=red>'''option=com_users'''</font> - tells us that we should look into com_users component
 +
* <font color=green>'''&view=login'''</font> - tells us that view should be ''login''

Revision as of 11:04, 26 July 2013

Overwiew

Because JomSocial is component for Joomla, and it does not have its own user object, many users can't figure out why sometimes registration and login form lead to native Joomla forms for this task.
Some Template clubs override the native Joomla login form which by default, should be accessible with this link

http://yourdomain.name/index.php?option=com_users&view=login


If you visit your site by using this link, in most cases you will be presented with the following screen

Joomlalogin.png

If you login using this form, you will most likely see something like this

Joomlaprofile.png

If you click on the registration link, you will be redirected to native Joomla registration form

Joomlaregistration.png

This is intended behavior, because Joomla as an user-based CMS, designed to work without JomSocial installed, and after all, we are currently on the com_users component, which is not JomSocial, and have nothing to do with it.

JomSocial Redirect Plugin

Since not many users do not know or do not want to bother with minor customization and hacking, we provided the Redirect Plugin which should redirect all registration requests to JomSocial's form.
This plugin however, won't do anything if user use Joomla login form to access the site. It will still be presented with native Joomla user page.
Therefore, one can simply create template override, which is more efficient as you don't have to load additional plugins.
remember - Less plugins = faster site load time

Using The Joomla Override

There is one fantastic feature of Joomla still unknown to vast majority, and very under-utilized by many web-admins. It is called simply, template override
This feature that is built into Joomla since version 1.5 and still present to the latest version is here to stay, because it is so powerful thing to have that would be shame to remove it. With it, you can practically change the layout of every component and a module which follows the MVC Joomla standard, and frankly, most of the modern extensions do.

How Do We Know What File To Override

This is good, yet illusive question. Many people still underestimate the power of non-SEF links when it comes to debugging
If you remember the link we gave you at the beginning of this guide you will notice how easy is to discover what file we should be edit.

Comuserslink.png
  • option=com_users - tells us that we should look into com_users component
  • &view=login - tells us that view should be login