The Arcive of vBulletin Modifications Site. |
|
Details »»
|
|||||||||||||||||||||||||
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
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Thanks man
![]() Excellent hack
|
|
#3
|
|||
|
|||
|
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!
|
|
#4
|
||||
|
||||
|
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... )
|
|
#5
|
||||
|
||||
|
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.
|
|
#6
|
||||
|
||||
|
voogru
just visited your site - nice, and good hack too but i do have to agree with xiphoid , the pop up is very annoying |
|
#7
|
||||
|
||||
|
thats kinda the point, new feature when you sign up:
No more sign up "nag" pop-ups!
|
|
#8
|
||||
|
||||
|
setcookie(); <- php to set a cookie
www.webmonkey.com and search javascript cookie to try get the js way
|
|
#9
|
||||
|
||||
|
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>
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 |
|
#10
|
||||
|
||||
|
I went to your site but didn't get the popup
|
![]() |
|
|