The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Hi,
I've just had one of my site sponsors in discussion and they want to run a competition where if a guest registers on the site, they are entered to win a T-Shirt during that month. To aid in this, it would be great if someone could help me code up a pop-up that appears when a guest appears on the forums. There would be some criteria though (this can be done through JavaScript I believe):
Thanks In Advance! |
#2
|
||||
|
||||
The first and last criterions are very easy, but since guests are not registered, and thus don't have any record in the database except for their session (which disappear 15 minutes after they leave), you can't check to see if the pop up was already displayed for a guest in the last week.
|
#3
|
||||
|
||||
Chen,
Thanks! I suppose the only other way is to set a cookie via JS that is valid for 7 days. Hmmmm... I suppose I could live with only being displayed once per session. So I suppose the next question is if anyone can help me do it? Thanks... |
#4
|
||||
|
||||
You can set a cookie using PHP, it's easy, and you can easily use it (unless someone deletes their cookie because they really really really like pop-ups ).
|
#5
|
||||
|
||||
Well, suppose that shows how much I really know about coding in PHP
|
#6
|
||||
|
||||
Been away so haven't followed this up...
Anyone possibly be able to code this for me? Thanks!! |
#7
|
||||
|
||||
i would like to see this too ... any progress on it ?
|
#8
|
||||
|
||||
Nobody has replied i'm afraid - I know it's easy but I don't have the necessary skills to be able to do it
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|