The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
dateline
Hi there.
I am trying to grab the dateline when someone closes a thread. I am using the showthreadopenclose hook. Would a variable such as "$post[dateline]" work in this case? Converting a dateline timestamp is fine. I just don't really know how I would get the timestamp when closing a thread? I was thinking using the $post[dateline] variable, it would get me the timestamp at that moment the thread is closed? I'm basically trying to store this dateline timestamp into a table in the database. |
#2
|
|||
|
|||
I the case of closing it from the thread tools menu, I think hook location threadmanage_openclose would work and it looks like you can check for $threadinfo['open'] == 0 (because the same code opens and closes, and the hook's called after the field is set to 0), and use $threadinfo['dateline'].
If the inline moderation is used, there's hook location inlinemod_closeopen and you can check for $_POST['do'] == 'close'. The dateline's not available so you'd have to query that yourself using $thread['threadid'] (or edit inline.php and add dateline to the list of fields, around line 448). I haven't tried any of this. Also, I don't know if these are the only two ways to close a thread. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|