PDA

View Full Version : Thread id Variable


Konstantinos
10-01-2011, 11:30 PM
I am using a custom plugin with hook newpost_complete but while $forumid = $foruminfo['forumid']; returns the correct forum id, $threadinfo['threadid']; doesnt work
, any idea why ?

kh99
10-02-2011, 12:18 AM
Try using $threadinfo['threadid'], I think that will work.

Konstantinos
10-02-2011, 12:23 AM
i did a typo. i am using $threadinfo['threadid'] and it doesnt work. edited the first post too

--------------- Added 1317518755 at 1317518755 ---------------

hmm ok i got it

kh99
10-02-2011, 12:32 AM
I see you got it. You were trying to get the id of a newly created thread? I think it's $post[threadid] (in case someone else reads this some day).