View Full Version : vbPopup for vB3
LordJMann
02-16-2004, 10:00 PM
What does this hack do?
This hack will display a dhtml popup box with a message for unregistered users.
You can adjust the length of time that the popup box appears and the chance that the box will appear.
A dhtml popup is not a new window. It stays in the current window but acts like a popup box, it will disappear after a set amount of time and is not affected by popup stoppers. The popup box appears for all unregistered users and can be re-designed to your liking.
Hack Details
Version: 1.1
Installation Overview
Files to edit: 1
Files to upload: 1
Templates to edit: 2
Install time: 2 minutes
I would personally like to hand all credit to the original author of this hack in vB 2.x, TECK. Again, this hack is inspired by a dhtml script located here (http://www.dynamicdrive.com/dynamicindex11/dhtmlad.htm).
Check out the original thread here (https://vborg.vbsupport.ru/showthread.php?t=35277).
Updates
2-17-04
Converted the popup box code into a template.
PLEASE CLICK INSTALL IF YOU LIKE THIS HACK!
mello_mike
02-17-2004, 03:53 AM
This was a great hack!! Great Job.. I just installed it on my forum and I love it.
dirtymerc
02-17-2004, 04:35 AM
awesome hack, I just did as well
colicab-d
02-17-2004, 05:40 AM
a screenshot would be nice :D
Dark Shogun
02-17-2004, 06:02 AM
Hope you don't mind mello mike but someone asked for a screen and I was too busy to make one so I am just linking to your board.
Example: http://www.showtimemag.com/forum/index.php
Dark Shogun
LordJMann
02-18-2004, 12:44 AM
a screenshot would be nice :DHello,
http://www.dynamicdrive.com/dynamicindex11/dhtmlad.htm
This is basically how it will function, though the box is smaller and only appears for unregistered users.
mello_mike
02-18-2004, 01:01 AM
Oh it's kool Dark Shogun! :-)
But I do have a question...
How can I use this for all members?
I want to make a popup that I can use to advertise different things.
LordJMann
02-18-2004, 01:07 AM
Oh it's kool Dark Shogun! :-)
But I do have a question...
How can I use this for all members?
I want to make a popup that I can use to advertise different things.mello_mike,
If you want this popup to show up for everybody, simply change this:
<if condition="$show['guest']"><script type="text/javascript" src="clientscript/vbulletin_vbpopup.js"></script></if>
To this:
<script type="text/javascript" src="clientscript/vbulletin_vbpopup.js"></script>
Edit: If you are using version 1.0 then just use the original javascript file name of vbulletin_adbox.js
i don't see why is this so awansome ! It's a POPUP ! USERS HATE POPUP's...
LordJMann
02-18-2004, 01:38 AM
i don't see why is this so awansome ! It's a POPUP ! USERS HATE POPUP's...
Yes, it is a popup but it only lasts for a very short period of time and is a quite small box that just reminds the user to signup. This is mainly efficient to users who have never used a forum before and can simply be avoided by signing up in order to access the full features of a forum. Plus, this DHTML popup only affects the forum homepage. So it isn't as big of a nuisance as it could be and can sometimes be an effective way to get a message across.
gmarik
02-18-2004, 12:39 PM
I like to like it!
mello_mike
02-18-2004, 09:46 PM
i don't see why is this so awansome ! It's a POPUP ! USERS HATE POPUP's...
Speak for your own users. My users actually made a topic saying how kool it was.
enginethatcan't
02-22-2004, 06:26 PM
nice hack! *installs* works fine
ryancooper
02-22-2004, 06:44 PM
Installed and works nicely. 2 Questions.
1- How can I put the box in the middle of the page instead of at the top. I tried to play with the settings in 'FORUMHOME' top:0; left:0; } but it didn't work? Right now I added some <p> before the table to push it down.
2- Is it possible to ad a countdown like "This window will close in 10 - 9 -8 etc seconds" ?
Thanks for the great hack!
If anyone is interested in doing a 10 sec. countdown I made a small animated gif you can use for the countdown.
and change the template to something like
<font class="smallfont">(This window will close automaticly in <img src="images/countdown.gif"> seconds)</font>
LordJMann
02-22-2004, 10:48 PM
Installed and works nicely. 2 Questions.
1- How can I put the box in the middle of the page instead of at the top. I tried to play with the settings in 'FORUMHOME' top:0; left:0; } but it didn't work? Right now I added some <p> before the table to push it down.
2- Is it possible to ad a countdown like "This window will close in 10 - 9 -8 etc seconds" ?
Thanks for the great hack!
If anyone is interested in doing a 10 sec. countdown I made a small animated gif you can use for the countdown.
and change the template to something like
<font class="smallfont">(This window will close automaticly in <img src="images/countdown.gif"> seconds)</font>
Hello ryan,
1. If you absolutely wanted it in the middle of the page there are CSS tutorials out there that allow for this. Though using <br> or <p> should work fine.
2. I have tried this and it did not turn out well in conjunction with the original javascript. So its up to you on this one.
Thanks for the questions.
Boofo
02-22-2004, 10:54 PM
Installed and works nicely. 2 Questions.
1- How can I put the box in the middle of the page instead of at the top. I tried to play with the settings in 'FORUMHOME' top:0; left:0; } but it didn't work? Right now I added some <p> before the table to push it down.
2- Is it possible to ad a countdown like "This window will close in 10 - 9 -8 etc seconds" ?
Thanks for the great hack!
If anyone is interested in doing a 10 sec. countdown I made a small animated gif you can use for the countdown.
and change the template to something like
<font class="smallfont">(This window will close automaticly in <img src="images/countdown.gif"> seconds)</font>
Where's the thumbnail? All I see is a 0 where the thumbnail should be. ;)
ryancooper
02-23-2004, 12:29 AM
Hello ryan,
1. If you absolutely wanted it in the middle of the page there are CSS tutorials out there that allow for this. Though using <br> or <p> should work fine.
2. I have tried this and it did not turn out well in conjunction with the original javascript. So its up to you on this one.
Thanks for the questions.
Thanks,
The animated gif works perfectly. It hits "0" and then closes. If you change the timer, however, it obviously will not work :-)
Thanks for a great hack
ryancooper
02-25-2004, 01:32 AM
Where's the thumbnail? All I see is a 0 where the thumbnail should be. ;)
The 0 is the thumbnail. It counts from 10 - 0 then stops so if you reload the page and scrool down you will see it counting down. ;)
himerus
03-23-2004, 10:08 PM
Installed...
However, if I try to change the chance of it popping up, the window appears in the upper left hand corner, and never closes...
I tried values 1-10, and 1 was the only one that worked.
himerus
03-23-2004, 10:16 PM
And how can I make the window semi-transparent?
oliwood
03-24-2004, 08:41 AM
hy guys,
i need this script,
but it sholud open on each site, because users should also see this, if they enter the board direct via a mailnotification or a profile ore something else.
How cann i arrange to appeare this popup on every site, but only once per browsersession to everyone???
Please help me!!!
noreturn
04-08-2004, 11:08 PM
I wouldlike to use this as a "technician is now online" when one of us are on the site. And to turn if off when none of use techs are on line. Id there a way to just turn the pop up on or off?
Gordon
neocorteqz
04-09-2004, 12:24 AM
this would be cool to use after registration is complete, reminding them to read the rules. :)
GamerJunk.net
04-10-2004, 06:44 PM
Could you set the variables to maybe do this for different usergroups rather than just unregistered users?
I mean that would be easy right?
neocorteqz
04-11-2004, 06:16 AM
Could you set the variables to maybe do this for different usergroups rather than just unregistered users?
I mean that would be easy right?
sure.
I would think if you change
$show['guest']
to
$bbuserinfo[usergroupid]==X
where x is your usergroup. I think that would work. I'm not sure though.
SaN-DeeP
04-12-2004, 03:54 PM
nice mod ;)
* SaN-DeeP installed it ;0
calvinnguyen
04-14-2004, 02:31 AM
I love this hack, thanks LordJMann
cuerty
04-22-2004, 03:10 AM
Exelent work dude, thanks.
himerus
04-22-2004, 03:15 AM
hy guys,
i need this script,
but it sholud open on each site, because users should also see this, if they enter the board direct via a mailnotification or a profile ore something else.
How cann i arrange to appeare this popup on every site, but only once per browsersession to everyone???
Please help me!!!
I would like to see something of the same nature... only appearing once per session... but I'm not familiar with the way vBulletin stores or uses guest sessions.
RichieBoy67
04-26-2004, 10:48 AM
Great Hack!
Thanks! I've been looking for something like this. Too many guests but not enough members on my site...
Works great! Check it out on my site if you like
www.speakoutonline.net
Drile
04-26-2004, 04:31 PM
And how can I make the window semi-transparent?
Yah, that would be great.
Any way to easily make this just pop up in a certain forum?
Envy-UK
05-02-2004, 06:35 PM
Great hack. *Clicks install. :)
dynamite
05-10-2004, 06:36 PM
How can you make this appear on every displayed page until they register? I tried adding the header info and </body> info on the Forum Display and Show Threads templates but it doesn't appear. I even tried changing the filepath to the full file path and still no luck.
I need this on all the pages since the majority of my hits come from search engines, so they typically don't see the first page from the start. This has been very productive for getting people to register and participate on my site since adding it just to the main page, so I could only imagine what it would do if it were on all pages!
luck777jojo
06-04-2004, 02:19 AM
bump ^^^
sorry to do this but.... I think everyone missed this
----edit----
++++ just figured out how to do this myself.... just goes to show you people think better when slightly drunk :p I'll post the modifications you have to do here in 5 mins
----edit #2----
okay I attached the modified instructions txt file hope this help anyone who was having the same problem as I was ;)
himerus
06-15-2004, 03:29 PM
My users are complaining about waiting 10 seconds to log in because on a smaller resolution, it is blocking that section of the navbar....
Is there anyway to create a link in the popup to click on to close it??? rather than the countdown????
I really need it to be more friendly, or I'll have to take it off for now until this has more features.
TheRayden
07-13-2004, 04:57 PM
Any chance this can be set for specific usergroups only?
Bro_Joey_Gowdy
07-22-2004, 11:55 AM
clicls install
glenvw
08-05-2004, 04:07 PM
Hi everyone. This is a great feature and I want to use it but it is imperative I can set it up to only show up ONCE per session.
PLEASE, if there are directions to do so, please tell us.
I read the edited hack a couple posts above but do not see that addressed there.
Ryan McBain
08-15-2004, 07:42 PM
bump ^^^
sorry to do this but.... I think everyone missed this
----edit----
++++ just figured out how to do this myself.... just goes to show you people think better when slightly drunk :p I'll post the modifications you have to do here in 5 mins
----edit #2----
okay I attached the modified instructions txt file hope this help anyone who was having the same problem as I was ;)
Great mod, but how do I turn off the pop up when people go to register?
Wential
08-22-2004, 03:09 PM
Great mod, but how do I turn off the pop up when people go to register?
Any chance of a VB 3.0.3 version?
djjeffa
10-25-2004, 01:26 AM
Any chance of a VB 3.0.3 version?
bump taht i just installed it and relized why it didnt work lol
Latic
10-31-2004, 10:13 PM
so this doesnt work for 3.0.3 ?
Wential
10-31-2004, 11:09 PM
It works very well in 3.0.3!
mikehawk
12-16-2004, 09:01 AM
Perfect addition to my board, thanks for the hack.
Works great. :)
mikehawk
12-16-2004, 08:28 PM
Hey all -
I usually get loads of guests to certain threads in my site. Is there anyway I can add this to all pages of my board; not just the forumhome? Or can I designate it to pop-up only on certain threads?
thx
boo.3
12-20-2004, 12:26 PM
wow thanks pretty neat!
Installed :)
http://www.b3playground.com/forums
jluerken
12-30-2004, 12:53 AM
At the moment its only poping up on the forumhome page.
I want this to work on all forumpages AND on my portal page of CMPS.
Can anyone help me?
shadiguy1
12-30-2004, 01:01 AM
works great
jluerken
12-30-2004, 03:35 PM
At the moment its only poping up on the forumhome page.
I want this to work on all forumpages AND on my portal page of CMPS.
Can anyone help me?
While not logged in my users get an error on the CMPS Portal page when this hack is installed.
Can anyone tell me what to do that CMPS loads the popup also?
SHANE-D-PAIN
12-31-2004, 10:55 PM
kewl, was just going to attempt make something like this myself then i saw this thread!
thank you so much!
saree
01-12-2005, 03:26 AM
The box work great thank you I installed it in my forum. The problem that I found is the look of the box it came fanny not a square box it came like vertically long box. Any advice in how to fix that or where to look for numbers to fix.
Thank you for that great hack. And the easy organized tutorial
mikehawk
01-21-2005, 05:16 AM
Can someone please help me by telling me how to get to pop-up on all threads... i direct alot of guests to individual threads on my site and they never end up going to the forumhome... please please please help... i've asked this in multiple threads but none of the solutions works. :ermm:
crocket
01-21-2005, 06:05 PM
Hey!
Ive installed this however, it doesnt work! I do have a custom skin, and ive checked and rechecked ive done every step but it doesnt show.
If someone would check over my installation, i would be greatful, and paypal you a bit of cash too as its annoying me now!
MSN / Email: P{AT}TEL.VU
The site is: http://forums.addictedtogaming.com (You can check it out to see if you can figure out why it aint working?)
mikehawk gave this a try but couldnt fix it, he even double checked everything! Help still needed :)
mikehawk
01-21-2005, 07:26 PM
Can someone please help me by telling me how to get to pop-up on all threads... i direct alot of guests to individual threads on my site and they never end up going to the forumhome... please please please help... i've asked this in multiple threads but none of the solutions works. :ermm:
Anyone? Please help thy sovereign coders!
MajorFm.com
01-22-2005, 11:46 AM
Great hack, installed... modified the pop up a bit to include the login form... let me know if u need it...
mikehawk
01-22-2005, 10:08 PM
Great hack, installed... modified the pop up a bit to include the login form... let me know if u need it...
..is there anyway you could modify it to pop up on showthread???? :nervous:
dave kaye
01-22-2005, 10:46 PM
Clicks Install
mikehawk
01-23-2005, 06:11 PM
I'll paypal someone if they can make this damn vbpopup show on SHOWTHREAD.
PM or e-mail me.
puckfans(at)mts.net
Sweet Evil
01-27-2005, 05:33 PM
I got it to also show under froumdisplay, but not showthread yet.. let me know if you figure it out!
MajorFm.com
01-29-2005, 06:49 PM
I got it to also show under froumdisplay, but not showthread yet.. let me know if you figure it out!
Ok, theory tells me this should work, but i can't actually get it to work on mine yet, can a coder please let me know what im doing wrong to get it to popup in showthread...
i did this...
opened showthread.php
found:
'pollresults_table',
and replaced with
'pollresults_table',
'forumhome_vbpopup',
found:
eval('$navbar = "' . fetch_template('navbar') . '";');
Above that put:
eval('$vbpopup = "' . fetch_template('forumhome_vbpopup') . '";');
I opened SHOWTHREAD template:
replaced:
</head>
with
<style type="text/css">
#vbpopup { position:absolute; height:1; width:1px; top:0; left:0; }
</style>
<if condition="$show['guest']"><script type="text/javascript" src="clientscript/vbulletin_vbpopup.js"></script></if>
</head>
Found:
</body>
Replaced with:
$vbpopup
</body>
Theory tells me this should work as its the same hack but for showthread... but it doesnt seem to pop up...
MajorFm.com
01-29-2005, 07:11 PM
Incase anyone want a login box on the popup for existing members so it doesn't become annoying for members who simply are not logged in... u may use my form which i slightly edited...
forumhome_vbpopup
<div id="vbpopup" style="visibility:hidden">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="400" align="center">
<td align="center" valign="middle" class="alt2">
<!-- Start Announcement Message -->
<p style="margin-top: 0; margin-bottom: 0"><b>Please take some time
to register at our forum</b></p>
<p style="margin-top: 0; margin-bottom: 0"><b>Takes less them a
minute...</b></p>
<p style="margin-top: 0; margin-bottom: 0"> </p>
<p style="margin-top: 0; margin-bottom: 0"><b>This pop up does not
show for members logged in!<br><br>
Click <a href="register.php?$session[sessionurl]">here</a> to
<a href="register.php?$session[sessionurl]">$vbphrase[register]</a></b></p>
<p style="margin-top: 0; margin-bottom: 0"> </p>
<p style="margin-top: 0; margin-bottom: 0"><b>or if you are a member
already, login below...</b></p>
<p style="margin-top: 0; margin-bottom: 0"> </p>
<p style="margin-top: 0; margin-bottom: 0"> <!-- login form -->
<form action="login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password,vb_ login_md5password_utf)">
<script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td class="smallfont">$vbphrase[username]</td>
<td><input type="text" class="button" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="1" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
<td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="3" id="cb_cookieuser_navbar" accesskey="c" checked="checked" />$vbphrase[remember_me]</label></td>
</tr>
<tr>
<td class="smallfont">$vbphrase[password]</td>
<td><input type="password" class="button" name="vb_login_password" size="10" accesskey="p" tabindex="2" /></td>
<td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="4" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
</tr>
</table>
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="forceredirect" value="1" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>
<!-- / login form --></p>
<p style="margin-top: 0; margin-bottom: 0"> </p>
<p style="margin-top: 0; margin-bottom: 0">
<font class="smallfont">(This window will self close shortly)</font></td>
</tr>
</table>
</div>
MajorFm.com
01-29-2005, 07:15 PM
Hey!
Ive installed this however, it doesnt work! I do have a custom skin, and ive checked and rechecked ive done every step but it doesnt show.
If someone would check over my installation, i would be greatful, and paypal you a bit of cash too as its annoying me now!
MSN / Email: P{AT}TEL.VU
The site is: http://forums.addictedtogaming.com (You can check it out to see if you can figure out why it aint working?)
mikehawk gave this a try but couldnt fix it, he even double checked everything! Help still needed :)
add me to your msn, i will take a look at this for you.
gembels
01-31-2005, 07:05 PM
on vb 3.0.6 cannot do $vbpopup on above </body> get error on templates message.. maybe i suggest it do at above </head> .. and in my forums it well done.. tq
oldfan
02-01-2005, 01:27 AM
/me clicks install, works great on 3.06
SpankMe
03-14-2005, 05:49 AM
Great hack. Helps when I'm doing a site shirt sale (http://www.kiwibiker.co.nz).
What this hack needs is a "close popup" link so members don't have to wait for it to close.
SpankMe
03-14-2005, 07:06 AM
Never mind. Figured it out.
<a href="javascript:closeAd();">close</a>
xtreme-mobile
03-14-2005, 07:52 AM
will this work on vb 3.0.6
regards
slinky
03-19-2005, 09:16 PM
This doesn't seem to work for me in vb 3.0.7. The window doesn't close and the addition above to provide a close link doesn't close the window. I get a javascript error. In order to get it to work I had to change the visibility from "hidden" to "visible" - which would make sense.
slinky
03-19-2005, 10:09 PM
Figured it out but there are still issues. The "if " regarding a guest didn't work. Once I took out the if statement it works fine BUT it hits all users all the time.
(1) This should only show up only once per session. I haven't seen any mod to do this.
(2) This hack does not automatically close in Mozilla/Firefox.
slinky
03-19-2005, 10:11 PM
Installed and works nicely. 2 Questions.
1- How can I put the box in the middle of the page instead of at the top. I tried to play with the settings in 'FORUMHOME' top:0; left:0; } but it didn't work? Right now I added some <p> before the table to push it down.
2- Is it possible to ad a countdown like "This window will close in 10 - 9 -8 etc seconds" ?
Thanks for the great hack!
If anyone is interested in doing a 10 sec. countdown I made a small animated gif you can use for the countdown.
and change the template to something like
<font class="smallfont">(This window will close automaticly in <img src="images/countdown.gif"> seconds)</font>
I'm interested in the countdown and would be nice to see it. To change the location, change the variables in the vbpopup template of "top" and "left."
slinky
03-20-2005, 05:11 AM
<a href="http://www.dynamicdrive.com/dynamicindex11/abox2.htm" target="_blank">http://www.dynamicdrive.com/dynamicindex11/abox2.htm</a>
This is an even better popup box. It features an attractive close window button and MOST IMPORTANTLY an ability to have it display only once per session. I use this as a "latest news" popup or important announcements. It's simple -- just add the code as stated on the page above into the forumhome template. Make sure that the path to the popup javascript in step one is correct src="clientscript/popup.js" and also that you don't have any return characters in your box.
Enjoy.
xtreme-mobile
03-20-2005, 03:47 PM
i cant seem to get this hack to work :(
im not getting any pop ups :(
at the bottom left of my browser it says, error on page, when i click it says something about vbpoup template is NULL and not an object
any ideas?
xtreme-mobile
03-20-2005, 03:51 PM
problem solved :)
detalhe
03-24-2005, 03:21 PM
problem solved :)
What was wrong? Just installed it and it doesn't show either :ermm:
buffness
05-21-2005, 07:42 PM
is this suppost to work for vb 3.0.6 as well?
BillyD
07-15-2005, 10:34 PM
Any success in 3.0.7? I have not yet tried it.
jluerken
07-16-2005, 08:51 AM
Any success in 3.0.7? I have not yet tried it.
Working fine with 3.0.7
NiROE
07-16-2005, 10:50 AM
Really nice hack :nervous:
Thanks :) :)
how can i get this hack to follow the guest down the screen,like it moves down with the scroller?
also how do i center it?
dashaka2
09-25-2005, 06:18 PM
***Clicks Install***
I used the modified install and it worked perfectly...
Thanks guys
You can check it out www.gpks.net when u try to view threads it should pop up
Unreal Player
09-26-2005, 09:01 PM
This doesn't work.
Pain86
09-27-2005, 04:08 PM
how do i add an image to the pop up box?
jluerken
10-12-2005, 05:09 AM
Hi, I would like to see this ported to vB 3.5
Can someone do this please?
rex_b
11-08-2005, 12:38 AM
bump ^^^
sorry to do this but.... I think everyone missed this
----edit----
++++ just figured out how to do this myself.... just goes to show you people think better when slightly drunk :p I'll post the modifications you have to do here in 5 mins
----edit #2----
okay I attached the modified instructions txt file hope this help anyone who was having the same problem as I was ;)
People need to find this post and use it's attached install to have the popups in the showthread and forumhome pages... :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.