The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Okay Guys,
Here is the query. I am having my forum on vbulletin & I am trying to run a javascript on the showthread page. All i want is that the javascript should execute only ONCE per user session & should repeat itself in sometime like 7 days or so. What can be done..?? I need some kind of COOKIE solution for this..!! Help me on this. Regards |
#2
|
|||
|
|||
![]()
Javascript has full access to document cookies. Here's an articles about cookies and Javascript:
http://www.elated.com/articles/javascript-and-cookies/ You can set the cookie in your script, and do a conditional too see if the browser has a valid, unexpired cookie before evaluating the rest of the code. You have to be careful though because cookies aren't that reliable; for instance if the user uses a different browser the code will run. |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|