ScrollForumsV2 - Hide specific forum by id

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   ScrollForumsV2 - Hide specific forum by id
alymay
CZ Newbie
 Codezwiz Site Donator
alymay has been a member for over 20 year's 20 Year Member
switzerland.gif
Occupation: Designer
Gender: Female
Status: Offline
Joined: Oct 23, 2004
0.00 posts per day
Posts: 14
Points: 6,914
   
Hello,
i have ScrollForumsV2 on my site,
and i ask if is possible hide a specific forum by a forum Id,
we have a reserved forum, access granted only for a group of user,
is possible prevent ScrollForumsV2 from showing last message from this forum ?

Thanks,
Ally



Back to top Reply with quote
#2   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
It works if there set to private via the admin panel. If you want them just to not show at all you can alter the sql query to look like this


//1 QUERY
$result = $db->sql_query("SELECT t.topic_id, t.topic_last_post_id, t.topic_title, f.forum_name, f.forum_id, u.username, u.user_id, p.poster_id, FROM_UNIXTIME(p.post_time,'%b %d, %Y at %T') as post_time FROM ".$prefix."_bbtopics t, ".$prefix."_bbforums f LEFT JOIN ".$prefix."_bbposts p ON (p.post_id = t.topic_last_post_id) LEFT JOIN ".$prefix."_users u ON (u.user_id = p.poster_id) WHERE t.forum_id=f.forum_id AND f.auth_view=0 AND f.forum_id !='1' ORDER BY t.topic_last_post_id DESC LIMIT $toshow");


Change the AND f.forum_id !='1' to the forum id that you don't want shown.



_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   
alymay
CZ Newbie
 Codezwiz Site Donator
alymay has been a member for over 20 year's 20 Year Member
switzerland.gif
Occupation: Designer
Gender: Female
Status: Offline
Joined: Oct 23, 2004
0.00 posts per day
Posts: 14
Points: 6,914
   


Originally posted by Telli @ Fri Nov 19, 2004 4:21 am:

It works if there set to private via the admin panel. If you want them just to not show at all you can alter the sql query to look like this


//1 QUERY
$result = $db->sql_query("SELECT t.topic_id, t.topic_last_post_id, t.topic_title, f.forum_name, f.forum_id, u.username, u.user_id, p.poster_id, FROM_UNIXTIME(p.post_time,'%b %d, %Y at %T') as post_time FROM ".$prefix."_bbtopics t, ".$prefix."_bbforums f LEFT JOIN ".$prefix."_bbposts p ON (p.post_id = t.topic_last_post_id) LEFT JOIN ".$prefix."_users u ON (u.user_id = p.poster_id) WHERE t.forum_id=f.forum_id AND f.auth_view=0 AND f.forum_id !='1' ORDER BY t.topic_last_post_id DESC LIMIT $toshow");


Change the AND f.forum_id !='1' to the forum id that you don't want shown.



it works perfectly,
Thanks a lot !! you are the Number One, as always icon_biggrin.gif icon_biggrin.gif

Thx again,
Ally


Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum