The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
I need to add something to the cookies that vB makes, a new field, say, section=Games or section=Books, etc. Now, I looked around and in functions.php, I found vbsetcookie, which may do what I want, I can't say that I can figure out the coding.
I've poked around forumdisplay.php, and found various usages... Code:
vbsetcookie('lastvisit', TIMENOW);
set_bbarray_cookie('forum_view', $forumid, TIMENOW);
$bb_cache_forum_view = unserialize(convert_bbarray_cookie($_COOKIE[COOKIE_PREFIX . 'forum_view']));
Thanks
|
|
#2
|
|||
|
|||
|
After doing some poking around, I see that this is probably what I'll need...
Code:
setcookie("fieldname","fieldvalue");
|
|
#3
|
|||
|
|||
|
Got it... it's basically these two lines:
Code:
$_COOKIE[COOKIE_PREFIX . 'field_name']; Code:
vbsetcookie('field_name', 'field_value', 0);
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|