![]() |
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'] |
You can also use $threadid and $thread['threadid'], I would personally use these variables instead of $vbulletin->GPC['threadid'].
|
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. |
$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. |
Thank you Dave.
Mick |
All times are GMT. The time now is 06:32 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:
|