I would like to override my joomla registration component in the way to have next to it the login form as well. As first step I made in my template folder the registration call but from here I don't know how to include the login form.
thanks
fefe
Is this roughly the idea you're looking for?
http://zebiangroup.markmurphy.ca/component/users/?view=login
If so, I'll be packaging it up as an extension shortly. If you need it asap leave me a message at markmurphy.ca and I'll get in touch.
I'll be back to update this post when I have the extension finished and uploaded.
[Edit:]
I'd hate to leave you totally in the dark and keep you searching for an answer so I'll point you in the right direction.
I was able to write a system plug-in that overrides the user components' controller.php only if that component was the one being requested and if the requested view was for the login or registration and if the task was only to display.
From there I had the new controller.php override the requested view name substituting my own and adding the appropriate models, references and variables to the view.
After that all I had to do was add the layout to my active themes "html" folder under com_users.
Related
I have created new Login module and linked to the login menu in Joomla 3.4.1. Also created registration menu as described in docs and tutorials. The login form is showing - I have assigned the position to show in the template from module manager but I cannot view registration form - since there is no registration module. The registration page is showing empty with header and footer but with no body. Is there any way to solve this?
Is the module position valid for your template?
You van check this by enabling the "preview Module Position" under the template options. To view the module position go to your home page e.g. hhtp://www.myhomepage.com/index.php?tp=1. Please note the tp=1 ..
Now you can check if the module positions exists on your site.
Just let me know.
kind regards.
i need to remove the registration link inside the login view http://bartenders4hire.net/index.php/login without completely disabling the registration functionality.
We are using js Jobs on the site and the regular registration is not providing all fields, therefore i need to find the code where i simply can delete the registration link.
I looked inside the modules and plugins, but couldn't find it
Anyone has an idea where i can find that code?
You'll find the registration-link in /components/com_users/views/login/tmpl/default_login.php on the bottom of the file. You can override this file in your own template by copying it to /templates/yourtemplate/html/com_users/login/default_login.php. Then you can remove the registration-line from the file in your template,
regards Jonas
I'm new to joomla and have got a problem with a website.
I need to modify a view and I've been told it is in
http://www.example.com/index.php?option=com_user&view=register&Itemid=68
It has a registration form and i need to modify its field. I've access to FTP only. I need to know where are these files to modify the registration form. If one can describe the meaning of this url structure then it would be very helpful.
You will find the template files in /components/com_user/views/register/tmpl.
However, you should create an html/com_user folder in your template directory with a copy of those files and use a template override ("never" edit core files).
Here are a couple resources that will point you in the right direction:
http://docs.joomla.org/J2.5:Developing_a_MVC_Component/Introduction
http://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core
com_user means use the user component register view.
Itemid 68 refers to the id of the menu item it is linked from.
You don't want to directly modify any joomla files.
If you want to add a field to registration activate the user plugin or create your own user plugin along the same design but with the fields you want.
It is advisable not to modify the core files directly, they will get overridden whenever the Joomla is updated.
However what you are looking for is available at components\com_users\models\forms\registration.xml file. you can change the default fields of the registration form in this file.
If you would like to add additional fields to registration form, there is a better way:
http://docs.joomla.org/Creating_a_profile_plugin
I am having some hard times trying to figure out what file on my server is creating the page located at "http://www.website.com/component/users/?view=login" I don't have a component directory but I do have a components directory. I dove into that and checked out the com_users/views templates but I wasn't able to edit anything that reflected changes on the page in question really. One thing to note is that if I modify the view.html.php file at 'components/com_users/views/login' it seems to affect the page, and it seems to want to load the content on the page from the line of code that reads:
$menus = $app->getMenu();
Any idea of how to edit this page?
This is the file you will want to edit if you intend on making style or layout changes to the login page.
components/com_users/views/login/tmpl/default_login.php
...
The file that contains the functions for the login page and that I would not recommend editing is:
components/com_users/views/view.html.php
Thanks to GDP for providing the answer I was looking for:
"You may also want to check in the \html folder of your active template. if templates\yourtemplate\html\com_users exists, Joomla will be checking and loading from there if a matching view and file is found."
I am loading the Joomla login module in an article using {loadposition xxx}.
when cache is on it doesn't works and give the error of Invalid Token.
What I figured out is that it is taking value of hidden field of the Joomla token from the cache which is usually generated randomly differently every time login module is loaded.
Can anybody have some idea to make it works?
First you cannot remove the hidden field of the token because this way the form will never work ... It's a required parameter so you have to restore it back and follow these steps
Go to the Module manager
One the module
The first item on the parameters is called "Caching" set it to never.
EDIT
You better use the plugin Modules Anywhere by Nonumber.nl
It fix 99$ of the issues that occur because of {loadposition} in regards to module title, content, caching ... etc