The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
... how do you do this? (read the username from the cookie).
Regards, Ben. |
|
#2
|
||||
|
||||
|
Pseudo-Code:
$userid = intval($_COOKIE[COOKIE_PREFIX . 'userid']); if ($userid) { $res = mysql_query("SELECT username FROM " . TABLE_PREFIX . "user WHERE userid = $userid"); // Do smth. } |
|
#3
|
|||
|
|||
|
Thanks! I actually realised something similar but your code did help!
Cheers, B. |
|
#4
|
||||
|
||||
|
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 |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|