Hi
First would like to say sorry this is in the wrong area.
Now for my reasons i have a spam/junk subforum for an alliance forum to a game I play.Now i would very much like to exclude any post/topics made in this forum from the recent disscusions area so that the more important information will show and stay around a little longer for my members that only wish to view the other areas.
Now i have come up with a possiable solution but it only seems to work for the admin account and removes the recent disscusions from all other account types.
This is what i did to get this fair in bb_func_ldisc.php the follow line of code:
if($cols=db_simpleSelect(0, $Tt, 'topic_id, topic_title, topic_poster, topic_poster_name, topic_time, forum_id, posts_count, topic_last_post_id, topic_views, topic_last_post_time, topic_last_poster','','','',$orderBy,$viewlastdiscussions)){
i change to:
if($cols=db_simpleSelect(0, $Tt, 'topic_id, topic_title, topic_poster, topic_poster_name, topic_time, forum_id, posts_count, topic_last_post_id, topic_views, topic_last_post_time, topic_last_poster','forum_id','!=','4',$orderBy,$viewlastdiscussions)){
now from my understanding of the db_simpleSelect statement the very small change i made should add to the query where forum_id!=4 which is works for admin accoutn but not others.
I cant seem to find anyway to move on from here so would this require custom work by you guys or is it a simple mistake by me.
thanks for your time |