The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Need Help with a Hack
I have created a template based tip of the day module and it's fully functional, but I need help with one finishing touch. I only want it to launch once per day or once per session.
I've tried to use $bbuserinfor['lastvisit'], but that won't update until you go inactive for awhile. I only want one launch per visit. How? |
#2
|
||||
|
||||
did u try using the cookies left by vb?
|
#3
|
||||
|
||||
try the lastactivity value instead of lastvisit
|
#4
|
||||
|
||||
I think last activity gets reset before PHPINCLUDE_START gets to parse.
Anyway, I think I've thought up a solution - use a cookie to store the date of the last time it launched the pop-up. I would like to store the cookie using vbulletin's inbuilt functions for handling cookies: fetch_bbarray_cookie($cookiename, $id) set_bbarray_cookie($cookiename, $id, $value, $permanent = 0) What should I know about these functions before calling them? |
#5
|
||||
|
||||
Solved the problems, I'll get the writeup ready and release this puppy later tonight.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|