The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Looking for a variable - threadid
I am writing a small log script that will eventually give me details on threads that are read over a day, week, month.
I want to know who is reading what so we can make decisions based on this information. Anyway, I have almost all the data I want to collect on SHOWTHREAD COMPLETE plugin hook (i think that is the right location). I am guessing/hoping that I can use Code:
$vbulletin->thread[threadid] I know I can use Code:
$vbulletin->userinfo['userid'] --------------- Added [DATE]1488738917[/DATE] at [TIME]1488738917[/TIME] --------------- Found it $vbulletin->GPC['threadid'] |
#2
|
|||
|
|||
You can also use $threadid and $thread['threadid'], I would personally use these variables instead of $vbulletin->GPC['threadid'].
|
#3
|
|||
|
|||
Dave, It would not let me use the Like button again on you lol.
So thank you very much. Can I ask why you prefer those over the one I found; is there more process power used, or a security issue??? Thanks again Dave. |
#4
|
|||
|
|||
$threadid and $thread['threadid'] are pulled from the database and $vbulletin->GPC['threadid'] is a variable (but cast to an integer) that is supplied by the client.
Security wise there's no risk, for readability I would use $threadid though. |
#5
|
|||
|
|||
Thank you Dave.
Mick |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|