The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
A hack that disables posts made in private forums from showing up in "newest threads"
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? |
#2
|
||||
|
||||
it should only show these private threads too u and other people who are able too view them anyway...
|
#3
|
||||
|
||||
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
|
#4
|
|||
|
|||
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?
|
#5
|
||||
|
||||
This is the code that I use on my homepage.
Code:
<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=\"\"> </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> |
#6
|
|||
|
|||
Quote:
|
#7
|
||||
|
||||
Why not speak to the inventor of the original hack?
Satan |
#8
|
||||
|
||||
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 ) |
#9
|
|||
|
|||
hellsatan - Is there a hack for this already?
|
#10
|
|||
|
|||
Broekie - Ill try that right now thanks!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|