Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Redirect after Registration

10 years 11 months ago
Licenses:
JomSocial Active

ISSUE SUMMARY:
I want to change "Back to Home" uri at the end of the registration process to the site's Home page. I'm not using the JomSocial home page as such in this site. I know there are login and logout redirects but in I need this to work with registration. If you can point me to the relevant php and line I'm happy to alter it at that level.

STEPS TO REPLICATE:
1Register
2
3
4
5
RESULT Link 'Back to Home' appears which links to the wrong location for my purposes
EXPECTED RESULT More a wished for result. The 'Back to Home' button links to the site's homepage
BROWSER All

Attachments:
10 years 11 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi,

You can modify or override this file components/com_community/templates/jomsocial/register.success.php, find this code :

<?php echo $uri; ?>
replace to :
<?php echo CRoute::_('index.php'); ?>


cheers!

10 years 11 months ago
Licenses:
JomSocial Active

I couldn't find Register.success.php in that directory. I'm assuming you mean /jomsocial/layouts/register.success.php?
<div class="cLayout cRegister-Success">
<p><?php echo $message; ?></p>
<a href="<?php echo CRoute::_('index.php'); ?>" class="btn btn-primary">
<?php echo JText::_('COM_COMMUNITY_BACK_HOME'); ?>
</a>
</div>
I changed the code in that file, flushed the cache, dumped history and retested the process but the button is still redirecting to the JomSocial Home
<a href="/farmgatedev/index.php/community/recent-activity" class="joms-button--primary joms-button--full-small">
Back to home </a>

By the way I am using JFBConnect but it's set to use the JomSocial Registration flow.

10 years 11 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

I am sorry I was wrong, this is the correct file /jomsocial/layouts/register/success.php

10 years 11 months ago
Licenses:
JomSocial Active

Okay I've reversed the change in the register.success.php file and made the change in the success.php file as instructed. Flushed the cache and history, retried the process and it's still going to the 'recent-activity' location. Is there something I'm missing?

10 years 11 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

would you mind provide me FTP access? I will check it directly

10 years 11 months ago
Licenses:
JomSocial Active

I have messaged you the FTP login details. Sorry I didn't post them when I logged the call. I didn't think it would be too complex.

10 years 11 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Ok Done, its really weird, but well I changed to the main URL directly farmgate.online/farmgatedev

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW