Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Guest Register Message Box Details »»
Guest Register Message Box
Version: 1.4, by dominicricci dominicricci is offline
Developer Last Online: Oct 2009 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.8.2 Rating:
Released: 04-23-2009 Last Update: Never Installs: 10
Template Edits
Re-useable Code Code Changes  
No support by the author.

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

Screenshots

File Type: jpg Attachment.jpg (68.1 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 04-24-2009, 01:05 AM
kensaurus kensaurus is offline
 
Join Date: Apr 2009
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

useful thanks.

EDIT: registered members cannot login.
Reply With Quote
  #3  
Old 04-24-2009, 01:34 AM
dominicricci dominicricci is offline
 
Join Date: Jul 2008
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 04-24-2009, 02:09 AM
dominicricci dominicricci is offline
 
Join Date: Jul 2008
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Updating..... I almost got it and I will post tomorrow!
Reply With Quote
  #5  
Old 04-24-2009, 04:23 AM
rmxs rmxs is offline
 
Join Date: Apr 2006
Posts: 419
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 04-24-2009, 05:52 AM
brandonroy brandonroy is offline
 
Join Date: Dec 2008
Location: Louisiana
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 04-24-2009, 09:38 AM
vijayninel's Avatar
vijayninel vijayninel is offline
 
Join Date: Mar 2009
Posts: 537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very annoying. This mod is perfect for driving traffic away form your site
Reply With Quote
  #8  
Old 04-24-2009, 11:14 AM
dominicricci dominicricci is offline
 
Join Date: Jul 2008
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if you read my other posts I am updating to fix that.
Reply With Quote
  #9  
Old 04-24-2009, 11:40 AM
dominicricci dominicricci is offline
 
Join Date: Jul 2008
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #10  
Old 04-24-2009, 11:56 AM
vijayninel's Avatar
vijayninel vijayninel is offline
 
Join Date: Mar 2009
Posts: 537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Working nicely now!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:03 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.04484 seconds
  • Memory Usage 2,307KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete