How to redirect members to jomsocial after registration?

GK User
Fri Feb 10, 2012 6:46 pm
Hi,

i am using the GK_ register module but when members clik on activation link they fall on an ugly joomla page with a lot af informations.

Is there a way to make them fall directly on jomsocial profile please?

thank you so much for your help
User avatar
Fresh Boarder

GK User
Fri Feb 10, 2012 8:47 pm
This demands changes in module code, module is very simply so you surely can find it. Please look at template/html/mod_gk_register directory.
User avatar
Platinum Boarder

GK User
Fri Feb 10, 2012 9:06 pm
Ok, thank you but can you be more precise please?
Thank you so much.
User avatar
Fresh Boarder

GK User
Wed Feb 15, 2012 4:45 pm
testeuse wrote:Ok, thank you but can you be more precise please?
Thank you so much.


Hello Testeuse,

Where you able to resolve this issue? If not I will explain what code to change.
User avatar
Senior Boarder

GK User
Wed Feb 15, 2012 8:52 pm
Joshua_Ludwig wrote:
testeuse wrote:Ok, thank you but can you be more precise please?
Thank you so much.


Hello Testeuse,

Where you able to resolve this issue? If not I will explain what code to change.



Hi,

No i did not solve it. Please telle me how to do it.

Thank you so much for your help.
User avatar
Fresh Boarder

GK User
Wed Feb 15, 2012 9:07 pm
So if they click an activation link to activate their account... do this

1). in public_html/components/com_users/controllers/registration.php change the following lines with that I have posted here. (backup your original files before you do this)
Code: Select all
line 72: $this->setRedirect(JRoute::_('index.php?option=com_community&view=frontpage', false));
line 77: $this->setRedirect(JRoute::_('index.php?option=com_community&view=frontpage', false));
line 172: $this->setRedirect(JRoute::_('index.php?option=com_community&view=frontpage', false));


2). in public_html/components/com_users/controllers/remind.php change the following lines with that I have posted here. (backup your original files before you do this)
Code: Select all
line 57: $route   = 'index.php?option=com_community&view=frontpage'.$itemid;


3). in public_html/components/com_users/controllers/reset.php change the following lines with that I have posted here. (backup your original files before you do this)
Code: Select all
line 190: $route   = 'index.php?option=com_community&view=frontpage'.$itemid;


After making these changes, when a user clicks the activation link, it should bring them back to the community front-page. This will also work when they reset their password or need reminding of their username. If you have any problems, please let me know and I will try to help further.




testeuse wrote:
Joshua_Ludwig wrote:
testeuse wrote:Ok, thank you but can you be more precise please?
Thank you so much.


Hello Testeuse,

Where you able to resolve this issue? If not I will explain what code to change.



Hi,

No i did not solve it. Please telle me how to do it.

Thank you so much for your help.
User avatar
Senior Boarder

GK User
Wed Feb 15, 2012 9:54 pm
If your using Joomla 2.5 it might be lines 71, 76, and 171 in the registration.php file and the other files might be a line up or down.
User avatar
Senior Boarder

GK User
Thu Feb 16, 2012 4:39 pm
testeuse wrote:Hi,

i am using the GK_ register module but when members clik on activation link they fall on an ugly joomla page with a lot af informations.

Is there a way to make them fall directly on jomsocial profile please?

thank you so much for your help


Has this issue been resolved Testeuse?
User avatar
Senior Boarder

GK User
Thu Feb 16, 2012 7:44 pm
Please only make sure that the file that you change is not override by the template. You need to check template/html/com_users directory for sure.
User avatar
Platinum Boarder

GK User
Thu Feb 16, 2012 7:49 pm
bkrztuk wrote:Please only make sure that the file that you change is not override by the template. You need to check template/html/com_users directory for sure.


Hello bkrztuk,

The changes that are made to the files that I explained in my post will not affect the override in the template/html/com_users, I can confirm this 100%. Your override doesn't contain the necessary files that are needed.
User avatar
Senior Boarder


cron