Guest Register Message Box
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 |
Similar Mods
Forum Home Enhancements Attention Guest: Please Register! | vBulletin 3.8 Template Modifications |