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! :)

saltedm8 04-24-2009 11:09 AM

is there a delay on this?... can we set it up so we have a delay of x seconds ?

Akademiks 04-24-2009 11:21 AM

dont install it will make guest close the windows is freaking annoying.

Rich 04-24-2009 01:15 PM

I have to agree. This is not a great tactic to use if you are looking to get people to register. I lasted one page on the demo site before I stopped looking around. This thing loads on every page load. It WILL drive away traffic!

djbaxter 04-24-2009 01:36 PM

Quote:

Originally Posted by vijayninel (Post 1798000)
Very annoying. This mod is perfect for driving traffic away form your site ;)

Quote:

Originally Posted by Akademiks (Post 1798067)
dont install it will make guest close the windows is freaking annoying.

Quote:

Originally Posted by Rich (Post 1798148)
I have to agree. This is not a great tactic to use if you are looking to get people to register. I lasted one page on the demo site before I stopped looking around. This thing loads on every page load. It WILL drive away traffic!

Agreed.

Additionally, have you considered what this will do to search engine spiders? Spiders can't click message boxes...

smnet 04-24-2009 03:34 PM

Quote:

Originally Posted by djbaxter (Post 1798168)
Agreed.

Additionally, have you considered what this will do to search engine spiders? Spiders can't click message boxes...

This wont affect spiders since as you pointed out they cant click buttons - they also dont run javascript so this will not affect anything in any way.

However, I have to agree this mod is ultra annoying - this will seriously harm the growth of any website.

If it popped up just the one time per visit, and only after so many seconds or perhaps so many page views then I could see the value in it... but as it stands it's only useful to annoy the crap outta people.

Good idea, nice effort, but needs more thought and work :up:

dominicricci 04-25-2009 01:31 PM

Feel free to add it to other templates then besides the footer. Try the index so it's on the front page. I have gotten more members to join within the next few days though. It's a work in progress, thank you for the constructive criticism. I am doing the best I can.

dominicricci 04-26-2009 07:10 PM

I am now making it show up 15% of the time a guest loads the page. So If a guest visits your site 100 times, than the message will pop up APROX. 15 times. I may change the percentage, I am not sure yet. Pleaes give it a chance though it's a work in progress :)

dominicricci 04-26-2009 08:16 PM

Updated!!!! Please Test Works Great!

ZuFett 05-21-2009 06:00 AM

how i can open the reg. in a new tab?
Nice work!

ZuFett 05-22-2009 07:10 PM

anyone can help me pls?

Niner1000RR 05-24-2009 10:03 PM

Installed and I like!

ITDarasgah 05-25-2009 03:38 PM

Its work with Internet Explorer nice but not work in Mozilla Firefox..so how can set for Firefox tell me please.

ITDarasgah 05-26-2009 06:04 AM

Does anyone have any idea how I can solve this?


All times are GMT. The time now is 04:58 PM.

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.02039 seconds
  • Memory Usage 1,758KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (23)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete