Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: 1.00, by voogru voogru is offline
Developer Last Online: Apr 2014 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 02-04-2002 Last Update: Never Installs: 2
 
No support by the author.

Very simple hack, just like the one requested here

but its not a stripped down version of the register, it will open the sign up form in another window.

so it works like this:

Unregisterd user visits your forum

User will get prompt to register, they can either click OK or Cancel

if they click ok a new window will pop-up with the sign up form. of course mine puts the forum rules first. the way it should be.

even if its not a express reg the user will most likly be annoyed with the pop-up message everytime he goes to the forum, so he will sign up

this is my first hack (sorta). go easy on me

thanks to FireFly some of the code he posted in a thread (the part that goes in global.php i simply modded it) what i would like is if they click cancel or add another button (if possible) to allow them to login. how would i go about doing this?

enjoy

Demo: http://forums.voogru.com

Show Your Support

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

Comments
  #2  
Old 02-05-2002, 06:35 PM
Dade's Avatar
Dade Dade is offline
 
Join Date: Jan 2002
Location: California
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks man

Excellent hack
Reply With Quote
  #3  
Old 02-05-2002, 07:49 PM
Floris Floris is offline
 
Join Date: Jan 2002
Posts: 1,898
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry
If I visit a place, and they annoy me with registration popups, my natural instinct tells me to get the hell outtah there. Sorry!
Reply With Quote
  #4  
Old 02-05-2002, 08:01 PM
MarkB's Avatar
MarkB MarkB is offline
 
Join Date: Oct 2001
Location: London, UK
Posts: 324
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would it be possible to delay it for perhaps 5 or 10 minutes, then pop-up - if they cancel, it sets a cookie so it won't display again for 7 days or something?

(I know, that's asking a lot, but I'm just thinking...)
Reply With Quote
  #5  
Old 02-05-2002, 08:05 PM
voogru's Avatar
voogru voogru is offline
 
Join Date: Dec 2001
Location: Miami, FL
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thats what i really wanted to do but i dont know how to set a cookie, basicly what i wanted to do is whe nthe user firs goes to the forum they get the message, if the click cancel with wont show for another 60 mins.
Reply With Quote
  #6  
Old 02-05-2002, 09:39 PM
fonzerelli_79's Avatar
fonzerelli_79 fonzerelli_79 is offline
 
Join Date: Nov 2001
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

voogru
just visited your site - nice, and good hack too
but i do have to agree with xiphoid , the pop up is very annoying
Reply With Quote
  #7  
Old 02-05-2002, 09:44 PM
voogru's Avatar
voogru voogru is offline
 
Join Date: Dec 2001
Location: Miami, FL
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thats kinda the point, new feature when you sign up:

No more sign up "nag" pop-ups!
Reply With Quote
  #8  
Old 02-05-2002, 09:47 PM
XiXora's Avatar
XiXora XiXora is offline
 
Join Date: Nov 2001
Location: Birmingham, UK
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

setcookie(); <- php to set a cookie
www.webmonkey.com and search javascript cookie to try get the js way
Reply With Quote
  #9  
Old 02-05-2002, 10:03 PM
voogru's Avatar
voogru voogru is offline
 
Join Date: Dec 2001
Location: Miami, FL
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is prolly all wrong but heres my try:

Code:
<script language="javascript">
{
	if document.cookie = useralreadycanceled;
    }
	} else {
	input_box=confirm("You have not registered on the forums, or are not logged in. Click OK to register, or cancel to hide this prompt.");
	if (input_box==true) { // Output when OK is clicked
		second_box=confirm("Open in new window?\n\n(Press cancel to open in the current window.)");
		if (second_box==true) {
			window.open('register.php?s=$session[sessionhash]','register','width=750,height=500,menubar=no,scrollbars=yes,toolbar=no,location=no,directories=no,resizable=yes,top=50,left=50'); 
		} else {
			window.location="register.php?s=$session[sessionhash]";
		}
	} else {
	}
}
function setCookie()
{
    var timeout=60*60*24;
	document.cookie = useralreadycanceled;

}
-->
</script>
what im trying to do is create a cookie, make the cookie expire in 24 hours. if the user comes back 24 hours later it will show him the message. so basicly it looks like this

User clicks cancel
cookie gets written
if the cookie exists it doesnt execute the pop-up code
user comes back 24 hours later he gets the pop-up again
Reply With Quote
  #10  
Old 02-06-2002, 02:56 AM
Destee's Avatar
Destee Destee is offline
 
Join Date: Oct 2001
Location: destee.com
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I went to your site but didn't get the popup
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 04:30 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.04811 seconds
  • Memory Usage 2,290KB
  • Queries Executed 23 (?)
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
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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
  • (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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete