PDA

View Full Version : Question about using of variables in "global_start"


Anbas
08-05-2007, 05:37 AM
Hi,

I want to code an if-condition in hook "global_start". It has to look somewhat like this

if ($groupid==15 AND $thread_is_sticky AND $userid==$creator_id_of_the_thread)

But I don't know which variables to use.

$userid (id of the user)
$groupid (groupid of the user)
$thread_is_sticky (is the actual opened thread a stick one?)
$creator_id_of_the_thread (id of the user who created the actual opened thread)


Thank You..

Dismounted
08-05-2007, 05:40 AM
if (is_member_of($vbulletin->userinfo, 15) AND $threadinfo['sticky'] AND $vbulletin->userinfo['userid'] == $threadinfo['postuserid'])

Anbas
08-06-2007, 04:49 AM
Hi Dismounted,

You answered after 3 Minutes - and it works fine. Thank you very much.

Anbas