View Full Version : How to make a popup to guests?
se_p800
04-16-2008, 04:29 PM
I want it so when a guest visits the webpage, a box or something opens with a message with 2 options. EG: Yes or No and depending on which one you click you get taken to somewhere else. Also the box should only show once were visit.
Or any similar mods. Thanks a bunch for reading and I hope you can help me out!
nighthalk
04-16-2008, 04:50 PM
<if condition="is_member_of($vbulletin->userinfo, 0)">
your code here
</if>
se_p800
04-16-2008, 05:15 PM
Thanks but I guess the bit im actually looking for is the "your code here" part as I dont know what code to put there.
nighthalk
04-16-2008, 05:22 PM
Your pop up code you can find on the net. Search google for "java popup".
Opserty
04-16-2008, 07:14 PM
There is no need to use that condition, you can do a simple one like:
<if condition="$show['guest']">
POP-UP CODE HERE
</if>
As stated in the above post there are loads of sites that already have examples of pop-up. Google for things like "Javascript Popup, Javascript alert" e.t.c. It shouldn't be hard to follow tutorials or examples that are returned.
RRicart
04-16-2008, 08:00 PM
Hello Everyone,
Where do we post this code for the pop up? In the PostBit? Please advise. Thanks!
se_p800
04-16-2008, 08:22 PM
Oh right ok thankyou guys
And yes RRicart god question, I would also like to know!
SEOvB
04-16-2008, 08:31 PM
Depending on what pages you want it to appear on you edit that template.
If you want it to appear on all pages, edit the headinclude template
cheat-master30
04-16-2008, 08:42 PM
Isn't this going to be incredibly annoying, and useless to anyone who blocks popups?
Opserty
04-16-2008, 08:43 PM
Instead of making a pop-up why don't you just make a kind of "splash"/"landing" page where users start browsing from, (like your site index.html file or something) then use that to redirect users to where-ever you need to.
se_p800
04-16-2008, 08:48 PM
what I want it not really a popup (it does not open another window) and its not an alert, its exactly what appears on this site: http://pspdownloadswitch.net/forums/forums.html any ideas?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.