PDA

View Full Version : A hack that disables posts made in private forums from showing up in "newest threads"


Velocd
04-05-2002, 01:21 AM
I have an area on my home forum page, in the welcome box, that shows the newest thread/reply made. I also have an area for the staff members, a private forum. When a staff member posts in this private forum, the thread appears in the "newest thread/reply" area. But then when a regular member clicks on it, they get an error ofcourse.

Is there any way to make it so when somebody posts in a private forums it wont show up in the newest thread/repy area?

E
04-05-2002, 01:33 AM
it should only show these private threads too u and other people who are able too view them anyway...

Velocd
04-07-2002, 05:49 AM
Yeah i know, but say you have a staff member area, where only staff of the forum can post. Well, If I posted a topic about a member, titled "I think we should ban Bob", it will appear on the main forum page under the "newest post area" that I have in my welcome panel. Even though if a user clicks on this, it will give them that error message, but the fact that they can read the title of the thread is alittle annoying, especially if others read it, like bob ;)

TaP
04-07-2002, 06:44 AM
i think what e is saying is that if you dont have access to those threads it wont show up in most recent 5 messages.... but im not sure can anyh one clear this up?

cditty
04-07-2002, 06:59 AM
This is the code that I use on my homepage.


<table width="100" cellspacing="0" cellpadding="0" border="0">
<?
require("/path/to/vb/config.php3");
$db = mysql_connect("localhost", "userid", "password");
mysql_select_db("forum_db", $db);
$num_active = 10;

$twentyfourhours= 24*60*60;
$date1 = time() - $twentyfourhours * 1;
$myselect = "select threadid, title from thread where lastpost > $date1 and forumid <> 34 order by lastpost desc limit $num_active";
$result = mysql_query($myselect);
if ($row = mysql_fetch_array($result)) {
do {
printf("<tr valign=\"top\">\n<td valign=\"top\" align=\"center\"><img src=\"/images/square.gif\" alt=\"\">&nbsp;&nbsp;</td>\n<td><font class=\"forum\"><a href=\"http://www.redhotsweeps.com/forum/showthread.php3?threadid=%d\" target=\"_blank\">$row[title]</a></font></td>\n</tr>\n", $row[threadid], $row[title]);
}while ($row = mysql_fetch_array($result));
}
?>
</table>


Chris

jeo
06-18-2002, 06:36 PM
Originally posted by Velocd
I have an area on my home forum page, in the welcome box, that shows the newest thread/reply made. I also have an area for the staff members, a private forum. When a staff member posts in this private forum, the thread appears in the "newest thread/reply" area. But then when a regular member clicks on it, they get an error ofcourse.

Is there any way to make it so when somebody posts in a private forums it wont show up in the newest thread/repy area?

I need this also! Velocd, did you find any solution for this????

Chris M
06-18-2002, 06:56 PM
Why not speak to the inventor of the original hack?

Satan

Broekie
06-18-2002, 07:02 PM
Access Masks. Just deselect "Can view forum" for those who aren't allowed to see anything of that forum

works fine at my board (heavely tested it ;))

jeo
06-18-2002, 07:03 PM
hellsatan - Is there a hack for this already?

jeo
06-18-2002, 07:04 PM
Broekie - Ill try that right now thanks!