Adding a link to the end of the "Registration Successful" page.

in Tutorials on 12 Jun 2012


It can be useful if you have a "Rules Page".

Lets open themes/default/Register.template.php

Find:
// After registration... all done ;).
function template_after()
{
global $context, $settings, $options, $txt, $scripturl;

// Not much to see here, just a quick... "you're now registered!" or what have you.
echo '
<div id="registration_success">
<div class="cat_bar">
<h3 class="catbg">', $context['title'], '</h3>
</div>
<div class="windowbg">
<span class="topslice"><span></span></span>
<p class="content">', $context['description'], '</p>
<span class="botslice"><span></span></span>
</div>
</div>';
}


...and replace with:
// After registration... all done ;).
function template_after()
{
global $context, $settings, $options, $txt, $scripturl;

// Not much to see here, just a quick... "you're now registered!" or what have you.
echo '
<div id="registration_success">
<div class="cat_bar">
<h3 class="catbg">', $context['title'], '</h3>
</div>
<div class="windowbg">
<span class="topslice"><span></span></span>
<p class="content">', $context['description'], '</p>
<div class="register_error">
             <div align="center"><a href="http://www.test.com/"><strong><font color="#FF0000">Please read the rules</font></strong></a>
</div>
      </div>
<span class="botslice"><span></span></span>
</div>
</div>';
}


Replace the link to the rules page and text with your own. I added bold text, red color to call user attention and framed it.
Should look somerthing like this: Registration Success

[paypal][/paypal]



idesignSMF Team
Mick is an American theme designer for Simple Machines Forum software currently living in South Florida, USA. He runs idesignSMF.com and started tinkering with SMF in 2006 where he created several SMF forums of his own before he founded idesignSMF in 2009 to which he is dedicated full time.

idesignSMF.com | SimpleMachines.org



2 Comments

I am currently using this on my forum and it works a treat.
#1
Quote from: saffzuk on 19 Jan 2013
I am currently using this on my forum and it works a treat.
Awesome. This was a request over at SMF. I thought of sharing it.  ;)
#2

rocket_launch

Professional & Impressive. We provide top quality free SMF themes with awesome support.