PDA

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


Anbas
05 Aug 2007, 06:37
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
05 Aug 2007, 06:40
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Anbas
06 Aug 2007, 05:49
Hi Dismounted,

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

Anbas