![]() |
Quote:
|
Quick fix for private forums:
Look around line 108, and change the query to: $posts = $DB_site->query("SELECT post.threadid, post.postid, thread.title FROM thread, post WHERE post.threadid=thread.threadid AND thread.forumid <> '2' AND thread.forumid <> '7' AND post.userid='".intval($split[0])."' ORDER BY post.dateline DESC LIMIT 5"); Where '2' and '7' should be replaced with private forum numbers. If you have more than two, just diplicate the "AND...'7'" format. If you only have one, just drop that part of the query. More later. |
you rule Stallion, thanks :)
|
Great hack you guys. Works great on my site.
I would like it to where those with administrator status are still able to see the messages in the private area though. Thanks, Parker |
Quote:
|
Better fix(:)):
Use the built-in VB function to dynamically decide whether or not a user can see a forum (and subsequently a thread in that forum): Code:
$getperms = getpermissions( $bbuserid, $bbusergroupid, $forumid ); [Edited by mrogish on 08-29-2000 at 10:29 PM] |
Quote:
|
Quote:
Code:
if ($split[1]) { Code:
if ($split[1]) { Next replace: Code:
while ($post=$DB_site->fetch_array($posts)) { to this: Code:
if( $posts ) { According to my PHP parsing mind, this should work. However, we don't run this hack so I haven't tested it -- check it out and let me know. BTW: Buddy.php contains a lot of ugly code. :) |
Quote:
|
I didn't mean to imply that you guys are bad programmers or anything, but it hurt my eyes to look at this code!! :)
And hey, don't read my "online user listing" thread -- talk about the pot calling the kettle black!! :) |
All times are GMT. The time now is 08:29 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|