Welcome, Guest. Please Login or Register.
October 01, 2024, 09:18:20 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  English User Help  |  English Help  |  Hidden board but not hidden thread titles! « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Hidden board but not hidden thread titles!  (Read 336 times)
Dr_Michael
Sr. Member
****
Posts: 317


Hellenic web

WWW
Hidden board but not hidden thread titles!
« on: May 09, 2003, 07:09:02 PM »
Reply with quote

I have created a hidden board in order to discuss there with all my moderators, problems and issues regarding the moderating of my forum. But unfortunately I just discovered that in the "more stats" option, some titles of threads of the hidden board, ARE VISIBLE there, as they have become very popular in replies or views. However (fortunately) the members cannot access them by clicking on them. Anyway the problem is problem, I wouldnt like those titles to be visible there. Any solution to this?
Logged

fractalbit
Noobie
*
Posts: 18


I'm a llama!

Re:Hidden board but not hidden thread titles!
« Reply #1 on: May 10, 2003, 12:39:11 PM »
Reply with quote

Hi, i am coadmining this site with Dr_Michael. I have modified the querys needed to not display threads from the hidden boards. Here are the modified querys in case someone is interested, the changes are in bold :

$boards_result = mysql_query("SELECT * FROM {$db_prefix}boards WHERE ID_BOARD!=21 AND ID_BOARD!=23 ORDER BY numPosts DESC LIMIT 10");

$topic_reply_result = mysql_query("SELECT {$db_prefix}topics.*,m.* FROM {$db_prefix}topics,{$db_prefix}messages as m, {$db_prefix}messages as mes WHERE (m.ID_MSG={$db_prefix}topics.ID_FIRST_MSG && mes.ID_MSG={$db_prefix}topics.ID_LAST_MSG && ID_BOARD!=21 && ID_BOARD!=23) ORDER BY {$db_prefix}topics.numReplies DESC LIMIT 10");

$topic_view_result = mysql_query("SELECT {$db_prefix}topics.*,m.* FROM {$db_prefix}topics,{$db_prefix}messages as m, {$db_prefix}messages as mes WHERE (m.ID_MSG={$db_prefix}topics.ID_FIRST_MSG && mes.ID_MSG={$db_prefix}topics.ID_LAST_MSG && ID_BOARD!=21 && ID_BOARD!=23) ORDER BY {$db_prefix}topics.numViews DESC LIMIT 10");

Of course you should change the numbers 21 and 23 with the ids of your hidden boards. You can also add more "&& ID_BOARD!=X", if you have more than 2 hidden boards.
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Hidden board but not hidden thread titles!
« Reply #2 on: May 10, 2003, 09:27:25 PM »
Reply with quote

There's a better way to do this, and it's already been addressed in the next version.

-[Unknown]
Logged
fractalbit
Noobie
*
Posts: 18


I'm a llama!

Re:Hidden board but not hidden thread titles!
« Reply #3 on: May 10, 2003, 11:20:16 PM »
Reply with quote

Quote from: [Unknown] on May 10, 2003, 09:27:25 PM
There's a better way to do this, and it's already been addressed in the next version.

-[Unknown]

I was too lazy to implement something better. Care to enlighten us?
« Last Edit: May 10, 2003, 11:27:02 PM by fractalbit » Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Hidden board but not hidden thread titles!
« Reply #4 on: May 10, 2003, 11:42:01 PM »
Reply with quote

I'm equally too lazy to type it out for 1.5.1's code base....

Look at $condition used for the top boards.

-[Unknown]
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Hidden board but not hidden thread titles! « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.098 seconds with 21 queries.