did you consider what I said about checking the group id value too soon?
try putting this before it:
vshow($spThisForum->group_id);
and see what is reported…
did you consider what I said about checking the group id value too soon?
try putting this before it:
vshow($spThisForum->group_id);
and see what is reported…
thank you for the reply.
I’ve added the code above after
if (sp_this_forum()):
and it displays the correct group ID for the forum i am looking at.
However, it would not display anything if I place it before
if( $spThisForum->group_id == $spThisGroup->group_id ) :
thats my point… $spThisForum is not defined UNTIL you execute this function sp_this_forum()…
so you will need to do a bit more to get it… take a look (data inspector) at the $spGroupView… it contains all the forums in group… see if you can index directly into it…