ok so i have the column mod installed tweak so users can enable or disable it, but for guests its automatically disabled, i want it to be enabled for guests by default.
Code:
if ($vbulletin->userinfo['field5'] == 'yes' OR GUEST AND THIS_SCRIPT == 'index' AND $forum['subforumcolumns'] != 1 AND ($subsonly OR $depth < MAXFORUMDEPTH))
the red part is where im thinking this should go i have tried a couple codes exactally where the red code is including:
$show['guestuser']
$userinfo['guestuserid']
$vbulletin->$userinfo['guestuserid']
and a few other ways like adding == 1
i cant seem to get it right though any help would be greatly appreciated
--------------- Added [DATE]1374837552[/DATE] at [TIME]1374837552[/TIME] ---------------
UPDATE*
i seem to got it working by using
Code:
if ($vbulletin->userinfo['field5'] == 'yes' OR is_member_of($vbulletin->userinfo, 1) AND THIS_SCRIPT == 'index' AND $forum['subforumcolumns'] != 1 AND ($subsonly OR $depth < MAXFORUMDEPTH))
but even though its working like that, i have this feeling that isn't the correct way to go about it, could some one please confirm =)