Support Forum

Display specific group

17 Answers

New Answer

MP Mr Papa
Mr Papa
Member

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…

MO Moggle
Moggle
Member

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 ) :  
MP Mr Papa
Mr Papa
Member

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…