![]() |
need a new cookie field
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); Thanks https://vborg.vbsupport.ru/external/2009/06/7.gif |
After doing some poking around, I see that this is probably what I'll need...
Code:
setcookie("fieldname","fieldvalue"); |
Got it... it's basically these two lines:
Code:
$_COOKIE[COOKIE_PREFIX . 'field_name']; Code:
vbsetcookie('field_name', 'field_value', 0); |
All times are GMT. The time now is 07:33 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|