Back to vBulletin 3.8 Add-ons

Guest Register Message Box
Mod Version: 1.4, by dominicricci

vB Version: 3.8.2 Rating: (1 vote - 5.00 average) Installs: 11
Released: 24 Apr 2009 Last Update: Never Downloads: 2
Not Supported Template Edits Code Changes Re-usable Code  

Guest Register Message Box


What it Does:
This modification will have anyone not logged in/Guests navigate anywhere on your site and a Message box will appear asking them to login or to register and it redirects them to your registration page where than can do either of those things.

Features:
-Easy Redirects
-Easy Coding
-Does not loop
-The message box does not appear on the Register pages
-You can edit to your own message

DEMO>>>>http://we-cheat.com<<<<DEMO

Installation:

1. Go to AdminCp>>Styles and Templates>>Edit Templates>>"footer"

2. Go to the very last bit of your footer and add this to the end:

Code:
<if condition="$show['guest']">  { 
<script type="text/javascript">
if(document.location != "http://we-cheat.com/register.php" && document.location != "http://we-cheat.com/register.php?do=register" &&
   	"http://we-cheat.com/register.php?do=addmember") {
if((Math.round((Math.random()*1))) == 1) {
var r=confirm("Welcome Guest, please click OK to Register or Cancel to Login or continue."); 
if (r==true){
document.location = "http://we-cheat.com/register.php"; 
}
else
{
alert("Feel free to login, if you are a Guest you will continue to see this message");
}
}
}
</script>
</if>

3. Change the URLS within the code to YOUR URLS

4. Edit the Message in Green to your liking!

5. YOUR DONE!

*****NOTES: Please if your forum is in a subdirectory like http://example.com/forums/ Than be sure to set your URL like that.*****


Don't forget to mark as installed

Download

No files for download.

Screenshots

Click image for larger version
Name:	Attachment.jpg
Views:	1451
Size:	68.1 KB
ID:	98260  

Similar Mods

Forum Home Enhancements Attention Guest: Please Register! vBulletin 3.8 Template Modifications

vblts.ru supports vBulletin®, 2022-2024