By JH on Tuesday, 10 December 2013
Posted in General
Replies 5
Likes 0
Views 0.9K
Votes 0
Hi folks,

Is there a way to specify the page that EasySocial redirects to for registration? I'm running PayPlans so I I want new accounts created with PayPlans. I have installed the PayPlans/EasySocial app and now EasySocial DOES redirect to PayPlans, but the main menu disappears.

Currently, EasySocial "create new account" link points to:

root/index.php?option=com_easysocial&view=registration&Itemid=297

However, the main menu is missing on this page! The correct link should be:

root/index.php?option=com_payplans&view=plan&task=subscribe&plan_id=0&group_id=0&Itemid=192

How can I get EasySocial account registration to redirect to this page?

Thank you!

James
Hello JH,

Hm, I am not entirely sure how is JPayplans redirecting the registration but what you can do is to modify the file /components/com_easysocial/themes/wireframe/unity/default.php and modify the registration link there.
·
Tuesday, 10 December 2013 10:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok, that's helpful. But could you point me to the line in the code that controls the registration landing page? I'd really appreciate it!

You guys are great; thank you.

James
JH
·
Thursday, 12 December 2013 08:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello James,

The file that is responsible to be displayed for the registration landing page is available at /components/com_easysocial/themes/wireframe/registration/default.php
·
Thursday, 12 December 2013 10:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you. So, the code in that registration/default.php file is:

<div class="es-registration">

<?php if( $this->template->get( 'registration_profile_headers' ) ){ ?>
<div class="center mt-20 mb-20">
<h2 class="h2"><?php echo JText::_( 'COM_EASYSOCIAL_REGISTRATIONS_SELECT_PROFILE_TYPE_TITLE' );?></h2>
<p><?php echo JText::_( 'COM_EASYSOCIAL_REGISTRATIONS_SELECT_PROFILE_TYPE_INFO' ); ?></p>
</div>
<hr />
<?php } ?>

<!-- Profiles listing -->
<?php if( $profiles ){ ?>
<ul class="list-profiles unstyled">
<?php foreach( $profiles as $profile ){ ?>
<?php echo $this->loadTemplate( 'site/registration/default.profiles' , array( 'profile' => $profile )); ?>
<?php } ?>
</ul>
<?php } else { ?>
<div>
<?php echo JText::_( 'COM_EASYSOCIAL_REGISTRATIONS_NO_PROFILES_CREATED_YET' ); ?>
</div>
<?php } ?>
</div>


And I want the registration page to be:

root/index.php?option=com_payplans&view=plan&task=subscribe&plan_id=0&group_id=0&Itemid=192

Please help me do this. I don't see where to insert this into the code above. PHP is not my strong-suit!

Thank you once again,

James
JH
·
Thursday, 12 December 2013 15:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello JH,

Hm, actually a little lost here. Which "link" would you like to change?
·
Thursday, 12 December 2013 23:27
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post