Register Link "How to I change that thing?"

Your code modifications and patches you want to share with others.
Locked
droida
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Sat Mar 14, 2009 6:55 pm
Location: Roosendaal
Contact:

Register Link "How to I change that thing?"

Post by droida » Tue Apr 07, 2009 7:57 pm

hey everybody,

i searched the site but i didn't find what i was looking for.

i have a login module on my site, and if people want to register, they have to go to this link:

http://www.jvmdigital.com/component/user/?task=register

but i want it to be:

http://www.jvmdigital.com/signup

its much better like that, but i don't know how to do it...

can anyone help me?

User avatar
ot2sen
Joomla! Master
Joomla! Master
Posts: 10421
Joined: Thu Aug 18, 2005 9:58 am
Location: Hillerød - Denmark
Contact:

Re: Register Link "How to I change that thing?"

Post by ot2sen » Mon Apr 13, 2009 8:35 pm

Hi droida,

Its possible alrigth, but it looks like a simple workaround with a hidden menu item and a simple module override is needed.

What you could do to get your 'signup' link is to:
1. Create a new "hidden~unpublished" menu module.
Goto Menus->Menu Manager->New and name your menu module something like 'menhidden'.
When saved you can see a new unpublished module in the (Extensions->Module Manager->See menhidden (unpublished)). Just keep it unpublished.

2. Create a new published link in the menhidden menu.
Goto Menus->menhidden->New->Choose 'User'->Click 'Default Registration Layout'
Give it a Title and the important field here is Alias where you type 'signup'

Now you have a published link, in an unpublished menu module.

Can see you use a mod_yoo_login module, and for this you can now create a simple template override to avoid touching the module code and instead use a override.

You will need to copy the file /modules/mod_yoo_login/tmpl/default.php
to a new folder below the html folder in your active template.
Copy the file default.php to: /templates/rt_mixxmag_j15/html/mod_yoo_login/

Open the file in the new location for to edit line 113

Code: Select all

line 112 <span class="registration">
line 113 <a href="<?php echo JRoute::_( 'index.php?option=com_user&task=register' ); ?>"><?php echo JText::_( 'REGISTER'); ?></a>
line 114 </span>
where you replace the 'index.php?option=com_user&task=register' with 'signup'
Save this template override file and try check the link in frontend.
Ole Bang Ottosen
Dansk frivillig Joomla! support websted - joomla.dk
OpenTranslators Core Team opentranslators.org

droida
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Sat Mar 14, 2009 6:55 pm
Location: Roosendaal
Contact:

Re: Register Link "How to I change that thing?"

Post by droida » Mon Apr 13, 2009 8:49 pm

you really helped me out, thank you!

zoomlanski
Joomla! Intern
Joomla! Intern
Posts: 81
Joined: Thu Oct 23, 2008 10:59 am

Re: Register Link "component/user/?task=register" where

Post by zoomlanski » Mon Nov 30, 2009 1:16 am

This is the closest post I've come to knowing where to locate http://mysite.com/component/user/?task=register

Can anyone tell me specifically where the joomla login component is arranged?
Is it a php file, and if so, where can I find it?

Specifically for restricted links.

Thanks
TIm


Locked

Return to “Core Hacks and Patches”