How to change the link for register users?

Hello, i want to change or redirect the Register Users form bye default in Community Answers to Jomsocial Form.

Every time that one user want to ask a question in the component and they are not logged or registered in the website, the default link to the Register page is for Joomla, my question is how can i change this to redirect all my users to Jomsocial Register Form.

Thank you very much for your help!

Gabriel

Posted in Community Answers, asked by gabbo, 3 years ago. 8873 hits.

Like it on Facebook, +1 on Google, Tweet it or share this question on other bookmarking websites.

1

Ohh ok... i already have this plugin installed, the problem is that with CA the redirections page are not the right, let see:

I have 2 differents redirections page with Community Answers

1.- When you try to ask a question without login this redirect to this page:

www.clubhipotecario.com.mx/entrar.html?return=L...

The 3 links there are from Joomla and not from Jomsocial

2.- Every time you try to answers a question when you are not logged the system redirects you to the pop up box with the login form, the problem is the same, it has 3 links that redirects you this time to 404 page i don´t know why... this are the 3 pages:

www.clubhipotecario.com.mx/component/com_user/v...
www.clubhipotecario.com.mx/component/com_user/v...
www.clubhipotecario.com.mx/component/com_user/v...

Thank you!

gabbo
3 years ago

1

Thank you very much Maverick, I already solved making a redirect link through the SH404SEF component to the Jomsocial Register page. Than you very much!

I decide do not upgrade because i change the Template of my Component and i don´t want to change it again, take a look: Community Answers Template

gabbo
3 years ago

-3

The latest version v1.8.2 does not have any issue with search, as it is in demo here. Please do let me know if you face any issue so that I can resolve it (contact me through contact us page).

In the above code you need to insert the JomSocial login/registration page url at appropriate location.

$link = APP_VERSION == '1.5' 
         ? JRoute::_('COMMUNITYURLHERE&return='.$redirectUrl)  
         : JRoute::_('COMMUNITYURLHERE&return='.$redirectUrl);
Maverick
3 years ago

-3

I decide do not upgrade because i change the Template of my Component and i don´t want to change it again, take a look: Community Answers Template

I would suggest you to use template overrides if it is only changes related to template. Anyway, that is temporary measure. If you want to take advantage of new features (like multiple file attachments, new UI), upgrading would be right choice.

Retaining template changes is easier if you use tools like Winmerge to compare and merge the changes into new template. You need not search and add changes.

By the way, your template changes looks cool :) .

Maverick
3 years ago

-9

The plugin what I meant is comes with JomSocial, not to be downloaded on corejoomla.

Anyway, the latest CA version just adds the link to the above url and no popup. So the register/password recover urls will not be shown in CA pages. It simply redirects to standard Joomla login pages (you can change it to JomSocial registration page).

Maverick
3 years ago

-11

Hello again, i already change the links and works fine... But i have a problem with the return false javascript when i try to submit a Question without login, it redirects me to the default login system and not to the Jomsocial component. How can i redirect to the form of Jomsocial and not joomla registration page? Thank you very much for your help.

gabbo
3 years ago

-13

Yes i´m using the version 1.7.3 because the newest version has a problem with the search engine of CA and show 500 error page every time i want to search for a question.

But one more question, in the code that you provide me, What i supose that i must change?

$link = APP_VERSION == '1.5' 
         ? JRoute::_('index.php?option=com_user&view=login'.$itemid.'&return='.$redirectUrl)  
         : JRoute::_('index.php?option=com_users&view=login'.$itemid.'&return='.$redirectUrl);

gabbo
3 years ago

-20

I believe it will automatically redirect if you have jomsocial user plugin installed. Anyway, you can change the url as well in components/com_communityanswers/templates/default(2)/view_question.php at line around 384

$link = APP_VERSION == '1.5' 
         ? JRoute::_('index.php?option=com_user&view=login'.$itemid.'&return='.$redirectUrl)  
         : JRoute::_('index.php?option=com_users&view=login'.$itemid.'&return='.$redirectUrl);

Maverick
3 years ago

-20

There is no way you can get the redirect unless JomSocial can do that. Standard Joomla login form has redirect feature which is what we are using. If the same is not supported by JomSocial, it is not possible to do that. Contact JomSocial support for any alternative exists.

It is better to investigate the root cause instead of keeping old version. Please send me your website details through contact us form, I will find it out.

Maverick
3 years ago

-23

I think you are using old CA version. Please upgrade to the latest version, clear the browser cache and see if the link is correct.

Maverick
3 years ago

-33

Hello Maverick

The problem is with the submission buttom everytime i want to ask without login... the login page that shows me is the Jomla´s page and not Jomsocial. There is anyway to redirect properly to Jomsocial page?

I decide to keep CA version 1.7.3 because i have solved the issue of 500 error page, and when i installed (today) the latest version of CA, the 500 error page in the search engine starts again, plus, the problem of the redirection to the Joomla page is present in bothe versions. What can i do to solve it?

gabbo
3 years ago

-34

Jomsocial user plugin? Where can i find this plugin? Because i already installed 2 that i found in your website, but 1 is just for rules and the second is just to display the answers and questions in the user profile... but none of this area to redirect the visitor to the register page of Jomsocial, plus i just see that the link to the recover the password is wrong too and the link to recover the user name also... I hope you can help me.

Thanks

Gabriel

gabbo
3 years ago
Please register/login to answer this question.  Click here to login
- Just now

0

Just now
/answers.html
/answers/get_answer/721.html
/answers/save_reply/721.html
/answers/save_answer/721.html
/answers/accept_answer/721.html
/answers/unaccept_answer/721.html
/answers/unpublish_answer/721.html
/answers/delete_answer/721.html
/answers/update_answer/721.html
/answers/like/721.html
/answers/dislike/721.html
/answers/report_answer/721.html
/answers/report_question/721.html
/answers/save_bounty/721.html