vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Add-On Releases - Guest Register Message Box (https://vborg.vbsupport.ru/showthread.php?t=212041)

dominicricci 04-23-2009 09:00 PM

Guest Register Message Box
 
1 Attachment(s)
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 :D

kensaurus 04-24-2009 12:05 AM

useful thanks.

EDIT: registered members cannot login.

dominicricci 04-24-2009 12:34 AM

I am currently editing this. My template allows users to login at any page. I have found for others users this is not so. So I am going to make the box exitable so people can still navigate. For other users who want to login they just have to click cancel and login. Let me do that and I will post the update ;)

dominicricci 04-24-2009 01:09 AM

Updating..... I almost got it and I will post tomorrow!

rmxs 04-24-2009 03:23 AM

this popup loop over and over and when use try to registerat your site this popup loop at register.php also till user click CANCEL ..

No good mod.

brandonroy 04-24-2009 04:52 AM

It would be ok if it showed the popup only once per browser session. It even pops up on the register pages, which is EXTRA annoying.

vijayninel 04-24-2009 08:38 AM

Very annoying. This mod is perfect for driving traffic away form your site ;)

dominicricci 04-24-2009 10:14 AM

if you read my other posts I am updating to fix that.

dominicricci 04-24-2009 10:40 AM

UPDATED!!!!!!! No longer shows on register pages. USERS now have the option to cancel and close the box to continue or login. It will just show up if they don't register! Please anymore issues and problem let me know I can edit and fix!

vijayninel 04-24-2009 10:56 AM

Working nicely now! :)


All times are GMT. The time now is 05:34 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02418 seconds
  • Memory Usage 1,732KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete