Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks
Author Message
mordain
Regular
Regular


Joined: Jul 08, 2006
Posts: 77

PostPosted: Sun Jul 09, 2006 3:19 pm Reply with quote

I know that this subject has been brought up before on this website, but everything I looked at was either too confusing or too hard. I have a center forums block that I use on my site. You can see it in action here: Only registered users can see links on this board! Get registered or login!.

I like it a lot, but it completely hides any and all private forums. Is there a way to make it so that if I (the head admin) logged on I would be able to see a recent post in the private admins forums, but if a member logged on it would be as though it were never there. I hope this isn't to confusing. Thanks!

Edit: Basically I want to know if there is a way to see recent posts based on individual users' permissions.


Last edited by mordain on Sun Jul 09, 2006 11:56 pm; edited 1 time in total 
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6383

PostPosted: Sun Jul 09, 2006 5:26 pm Reply with quote

Welcome.

The key is in the SQL. One of the other forums blocks probably has code that lets admin users see private message. Check them and copy that code to your center block.

_________________
I google, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
mordain
PostPosted: Sun Jul 09, 2006 9:41 pm Reply with quote

My webhost came with an automatic installer for PHP-Nuke, so I have barely touched SQL. I dont even know where to begin Confused
 
gregexp
The Mouse Is Extension Of Arm


Joined: Feb 21, 2006
Posts: 1497
Location: In front of a screen....HELP! lol

PostPosted: Sun Jul 09, 2006 10:21 pm Reply with quote

Thats ok, we all started somewhere and you have found the best nuke resource out there!!!

Believe me when I say, You wont find a better group of people that are willing to spend time and extend the curtuosy like you will here. You should look at how many plain old members return to help and answer, Its cuz we love this site!!
RavensScripts

_________________
For those who stand shall NEVER fall and those who fall shall RISE once more!! 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
kguske
PostPosted: Sun Jul 09, 2006 10:58 pm Reply with quote

Which center block (i.e. what is the file name) are you using? One that came with your automatic installer version?
 
mordain
PostPosted: Sun Jul 09, 2006 11:53 pm Reply with quote

Wow nice to see people so enthusiastic about this stuff Cheers

I can't remember where I originally downloaded it from, but this is what is at the top of the file:

Code:
/************************************************************************************/

/*                                                                                  */
/* CENTER BLOCK: block-phpBB_Forums.php                                             */
/* For PHP-Nuke 6.5                                                                 */
/* v1.5  06-04-2003                                                                 */
/*                                                                                  */
/* by: Maty Scripts (webmaster@matyscripts.com)                                     */
/* http://www.matyscripts.com                                                       */
/*                                                                                  */
/* This program is free software. You can redistribute it and/or modify             */
/* it under the terms of the GNU General Public License as published by             */
/* the Free Software Foundation; either version 2 of the License.                   */
/*                                                                                  */
/************************************************************************************/


And yes, I tried the site it says but I couldn't find the file Neutral

I tried to post the entire script here but it said it wouldnt support the html tags (and I did put it in the code tabs Confused)
 
gregexp
PostPosted: Mon Jul 10, 2006 5:48 am Reply with quote

Well, can see that the block is not upto date so as for your problem with posting, try spacing out the html code like <test> would be <te st>
That should grant you the leeway to post your code, If I knew of a block code that uses permission, Id link you right to it,. For now though, were left with trying to show you how to edit it accordingly, a simple sql code in php is all thats in order.
 
mordain
PostPosted: Mon Jul 10, 2006 9:08 am Reply with quote

I tried to change the code so I could post it but nothing worked. Ao I ended up making a hidden page on my site where you can see the code: Only registered users can see links on this board! Get registered or login!
 
gregexp
PostPosted: Mon Jul 10, 2006 11:36 am Reply with quote

now I'm lost, the code allows you to use the permissions with $HideViewReadOnly

But I believe you want more, ok . What would you like the block to show
starting with users, then mods, then admins.
 
mordain
PostPosted: Mon Jul 10, 2006 11:49 am Reply with quote

Well basically I want to know if there is a way for it to show posts based on individual users' permissions. For example, I have a set of regular forums, a hidden members only set of forums, and a set of hidden admin forums.

So, if a new post was made in all three areas, and an admin got on, they would be able to see all three recent posts. If a member got on, they would see the recent post in the regular forums and the member only forums. If a visitor got on the site, they would see only the recent post that was posted in the regular forums.

I hope this isnt too confusing.
 
mordain
PostPosted: Tue Jul 11, 2006 6:21 pm Reply with quote

Ok well I abandoned this idea since I redid my site and am more focused in solving this problem: Only registered users can see links on this board! Get registered or login!
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks

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 ©