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

Mick in Tutorials on Jun 12, 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]



Tagged with: rules registration tut 


Mick

Mick G

idesignsmf.com

    

Mick is an American theme designer for Simple Machines Forum software currently living in South Florida, USA. He runs idesignSMF 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 and has a weakness for Tacos and Pizza.


2 Comments

I am currently using this on my forum and it works a treat.
1

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




Latest Discussions

Join the conversation



  Responsive SMF Themes. We're currently working on brand spankin' new Responsive SMF themes for SMF 2.1