Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jun 2006
Posts: 956
Old Hand
Old Hand
Joined: Jun 2006
Posts: 956
Here is a little picture story from one of my moderators. The story contains two different problems. One is the new post indicator and one is that he can see hidden boards. Let's begin:

This is the view to the first board in a category. This board contains only subdirectories and no postings. The writing access is limited to Admins to post urgend messages here.
As you see the green LED indicate new postings and the last post show on the right. The Moderator hase NO access to 'World of Warcraft - Core' but it show up in the sub board listing of the red marked board. The core is the third sub level, horde pvp is second sublevel and we are now in the first level.
[Linked Image from dragonclan-forum.de]

Now we enter 'World of Warcraft - Horde PvP to look to the new posting.

[Linked Image from dragonclan-forum.de]

You see that only 2 more sub boards exits, the core board don't show up, that correct because the user have no access to this board. But you see also that the green LED is off now. Lets enter the red highlighted board:

[Linked Image from dragonclan-forum.de]

Here you can see that this posting not triggered the LED on the top level. So my Idea is, that a posting in a board, that the user cant see because he have no access trigger the indicator of new postings and thats wrong.

Can you follow?

Last edited by Rick; 10/10/2006 10:42 PM.

my board: http://www.dragonclan-forum.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Yep, I was able to follow. A couple of checks for read permissions to subforums. The fix can easily bust cfrm if not done right , so only attempt this if you really need the subforum fix. wink

Edit scripts/cfrm.inc.php. About line 327 you'll see this

Code
foreach($subforums[$Keyword] as $k => $v) {

Right after that, add this:

Code
if (!isset($userob->access[$v]['read'])  || $userob->access[$v]['read'] == 0) {
    continue;
}

Then about line 355, you'll find this:

Code
foreach($tree['kids'][$Keyword] as $k => $sub_id) {

Right after that, add this:

Code
if (!isset($userob->access[$sub_id]['read']) || $userob->access[$sub_id]['read'] == 0) {
    continue;
}

Last edited by Rick; 10/10/2006 10:51 PM.

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
1 members (Nightcrawler), 639 guests, and 217 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)