Contribute to the development of SMF. Follow the coding discussions taking place on >> Github.

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

Mick in Tutorials
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

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.

Website: https://www.idesignsmf.com/

    


2 Comments

saffzuk
Jan 19, 2013
I am currently using this on my forum and it works a treat.
1

Mick
Jan 19, 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



Connect with us:


Improve SMF

If you wish to contribute to the development of SMF you can contribute to the coding discussions taking place on Github. You are also welcome to suggest features which you would like to see added to the software in the Feature Requests board.

  Receive our monthly newsletter right in your inbox.


Advertisement  




 Tutorials
In this section you will find in-depth how-to's involving common SMF development and design techniques.



go up