Customizing SMF > SMF Coding Discussion
[TIP/TRICK] Adding a link to the end of the "Registration Successful" page
Vahid Damanafshan:
How to add my forum rules link to the end of the "Registration Successful" page in SMF 2.0.2?
K@:
As things are, the rules appear before you register.
Would it not be easier to edit those rules, to include yours?
Vahid Damanafshan:
--- Quote from: K@ on June 11, 2012, 03:56:53 PM ---As things are, the rules appear before you register.
Would it not be easier to edit those rules, to include yours?
--- End quote ---
You're right. But I just want to put a link to my rules at the end of the "Registration Successful" page.
K@:
Shame. ;)
You'll have to wait for a coder, then. Hopefully, there'll be one along, soon. :)
Mick.:
Look in themes/default/Register.template.php
Add your link there to your rules page.
Find:
--- Code: ---// 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>';
}
--- End code ---
...and add your link after:
--- Code: ---<p class="content">', $context['description'], '</p>
--- End code ---
Something like this:
--- Code: ---<p>your link</p>
--- End code ---
Navigation
[0] Message Index
[#] Next page
Go to full version