Author |
Message |
mordain
Regular


Joined: Jul 08, 2006
Posts: 77
|
Posted:
Sun Jul 09, 2006 3:19 pm |
|
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 |
|
|
 |
kguske
Site Admin

Joined: Jun 04, 2004
Posts: 6437
|
Posted:
Sun Jul 09, 2006 5:26 pm |
|
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 search, therefore I exist...
Only registered users can see links on this board! Get registered or login! |
|
|
 |
mordain

|
Posted:
Sun Jul 09, 2006 9:41 pm |
|
My webhost came with an automatic installer for PHP-Nuke, so I have barely touched SQL. I dont even know where to begin  |
|
|
|
 |
gregexp
The Mouse Is Extension Of Arm

Joined: Feb 21, 2006
Posts: 1497
Location: In front of a screen....HELP! lol
|
Posted:
Sun Jul 09, 2006 10:21 pm |
|
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!!
 |
_________________ For those who stand shall NEVER fall and those who fall shall RISE once more!! |
|
 |
 |
kguske

|
Posted:
Sun Jul 09, 2006 10:58 pm |
|
Which center block (i.e. what is the file name) are you using? One that came with your automatic installer version? |
|
|
|
 |
mordain

|
Posted:
Sun Jul 09, 2006 11:53 pm |
|
Wow nice to see people so enthusiastic about this stuff
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
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 ) |
|
|
|
 |
gregexp

|
Posted:
Mon Jul 10, 2006 5:48 am |
|
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

|
Posted:
Mon Jul 10, 2006 9:08 am |
|
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

|
Posted:
Mon Jul 10, 2006 11:36 am |
|
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

|
Posted:
Mon Jul 10, 2006 11:49 am |
|
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

|
Posted:
Tue Jul 11, 2006 6:21 pm |
|
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! |
|
|
|
 |
|