Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's Collapsing Forums Block
Author Message
molten2
New Member
New Member



Joined: Jun 27, 2004
Posts: 16

PostPosted: Sun Jun 27, 2004 7:25 am Reply with quote

Hallo,
I try to change
Code:
$HideViewReadOnly = TRUE;

to
Code:
$HideViewReadOnly = FALSE;


to display the messages of private forum...
but then I loose the visibility of the forumname...

What is my mistake?
 
View user's profile Send private message Send e-mail Visit poster's website
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sun Jun 27, 2004 7:56 am Reply with quote

No mistake. I never allowed for that because I've never allowed anyone to view the Private forums who wasn't authorized Shocked . I haven't tested this, but try it and let me know. On or about lines 81-95 find this code
Code:
   $skip_display = 0;

   if( $HideViewReadOnly)
   {
      $result1 = sql_query( "SELECT auth_view, auth_read, forum_name, cat_id FROM ".$prefix."_bbforums where forum_id = '$forum_id'", $dbi );
      list( $auth_view, $auth_read, $forum_name, $cat_id ) = sql_fetch_row( $result1, $dbi );
      if( ( $auth_view != 0 ) or ( $auth_read != 0 ) ) { $skip_display = 1; }
   }
and modify it to read
Code:
   $skip_display = 0;

   $result1 = sql_query( "SELECT auth_view, auth_read, forum_name, cat_id FROM ".$prefix."_bbforums where forum_id = '$forum_id'", $dbi );
   list( $auth_view, $auth_read, $forum_name, $cat_id ) = sql_fetch_row( $result1, $dbi );

   if( $HideViewReadOnly)
   {
      if( ( $auth_view != 0 ) or ( $auth_read != 0 ) ) { $skip_display = 1; }
   }

Did that fix it?
 
View user's profile Send private message
molten2







PostPosted: Sun Jun 27, 2004 8:14 am Reply with quote

Yes it works!
Thank you very much Raven!
Smile
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's Collapsing Forums Block

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©