![]() |
Get username from VB3 cookie...
... how do you do this? (read the username from the cookie).
Regards, Ben. |
Pseudo-Code:
$userid = intval($_COOKIE[COOKIE_PREFIX . 'userid']); if ($userid) { $res = mysql_query("SELECT username FROM " . TABLE_PREFIX . "user WHERE userid = $userid"); // Do smth. } |
Thanks! I actually realised something similar but your code did help!
Cheers, B. |
See this thread:
https://vborg.vbsupport.ru/showthread.php?t=61953 And if you actually want to use the usernames and passwords in the vb database, see: https://vborg.vbsupport.ru/showthread.php?t=66735 |
All times are GMT. The time now is 03:43 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:
|