Welcome, Guest. Please Login or Register.
November 28, 2024, 10:45:40 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.5.1] Global Moderator Category Fix « previous next »
Pages: [1] 2 Reply Ignore Print
Author Topic: [Done 1.5.1] Global Moderator Category Fix  (Read 5812 times)
Big P
Mod Team
YaBB God
*****
Posts: 1462


"Back in '68, I don't like you, The End."

ICQ - 76064555pierceward@hotmail.com WWW
[Done 1.5.1] Global Moderator Category Fix
« on: March 01, 2003, 06:03:32 PM »
Reply with quote

Basically the point of this mod is to prevent Global Moderators from 'seeing' Administrator-only categories. This allows you to choose exactly who can see each category.

This was discussed in this thread in the PHP Scripting Help forum.

Written for YaBB SE 1.5.1RC1(43) - Although it should work with earlier/later Beta versions - under the TOS which you can read here.

Let me know if you run into any problems, but I tested this and didn't find any.  ;)

*mod attached*
« Last Edit: March 03, 2003, 08:41:48 PM by Big P » Logged

PHPNews has been released!!! Download it now!!!
mephisto_kur
Sr. Member
****
Posts: 308


Hi ho.

WWW
Re:[Done 1.5.1] Global Moderator Category Fix
« Reply #1 on: March 01, 2003, 08:21:10 PM »
Reply with quote

Yay!  I'll give it a try!
Logged



Awmp, ding, soo googoongee doop, dee
Googoo Fleegoogeegoo
Goo Fleegoogeegoo
Duht, Deeheeh
Oogoogoog Dtee
Oogoogagoo oogoogweee
Fleegoogeegoo, fleegow
Go go mah mah mefs sufh yeah...
mephisto_kur
Sr. Member
****
Posts: 308


Hi ho.

WWW
Re:[Done 1.5.1] Global Moderator Category Fix
« Reply #2 on: March 01, 2003, 08:21:48 PM »
Reply with quote

You mind if I push to get this added to PfaBB?
Logged



Awmp, ding, soo googoongee doop, dee
Googoo Fleegoogeegoo
Goo Fleegoogeegoo
Duht, Deeheeh
Oogoogoog Dtee
Oogoogagoo oogoogweee
Fleegoogeegoo, fleegow
Go go mah mah mefs sufh yeah...
Big P
Mod Team
YaBB God
*****
Posts: 1462


"Back in '68, I don't like you, The End."

ICQ - 76064555pierceward@hotmail.com WWW
Re:[Done 1.5.1] Global Moderator Category Fix
« Reply #3 on: March 01, 2003, 08:43:52 PM »
Reply with quote

Quote from: mephisto_kur on March 01, 2003, 08:21:48 PM
You mind if I push to get this added to PfaBB?
Nope, fire away.
Logged

PHPNews has been released!!! Download it now!!!
mephisto_kur
Sr. Member
****
Posts: 308


Hi ho.

WWW
Re:[Done 1.5.1] Global Moderator Category Fix
« Reply #4 on: March 01, 2003, 09:46:40 PM »
Reply with quote

Sweet, I'll pass word to Michele.
Logged



Awmp, ding, soo googoongee doop, dee
Googoo Fleegoogeegoo
Goo Fleegoogeegoo
Duht, Deeheeh
Oogoogoog Dtee
Oogoogagoo oogoogweee
Fleegoogeegoo, fleegow
Go go mah mah mefs sufh yeah...
mephisto_kur
Sr. Member
****
Posts: 308


Hi ho.

WWW
Re:[Done 1.5.1] Global Moderator Category Fix
« Reply #5 on: March 02, 2003, 05:25:44 AM »
Reply with quote

Okay, the issue I am having is this:
I set permissions sor three categories.
My adult section - Admins\Global Mods\"Grown-ups" member groups.
result - Admins and Grown-ups can see the forums, Global mods cannot.

Admin section - Admins\Global mods
result - admins can see it, gms cannot

Super Secret Admin stuff - Admins only
result - Admins can see it, no one else can.

When I do a search with a Global Mod, the Admin\GM only messages show fine, but when I click on the link, GMs get a "you are not allowed blah blah" message.  Recent posts work the same way.  Thread shown, click and get access denied.  I don't think this is because of PfaBB since the lines your mod works with are all present and used by PfaBB without change, but I'll post this message over there, as well.  Maybe I'm missing something...

Update:  I've played with it a bit more, what is happening is that my GM is being reduced to a normal user with Moderator abilities in any forum that a normal user can get to.  GMs cannot see any forum that I allow them specifically to see.
« Last Edit: March 02, 2003, 05:39:38 AM by mephisto_kur » Logged



Awmp, ding, soo googoongee doop, dee
Googoo Fleegoogeegoo
Goo Fleegoogeegoo
Duht, Deeheeh
Oogoogoog Dtee
Oogoogagoo oogoogweee
Fleegoogeegoo, fleegow
Go go mah mah mefs sufh yeah...
Big P
Mod Team
YaBB God
*****
Posts: 1462


"Back in '68, I don't like you, The End."

ICQ - 76064555pierceward@hotmail.com WWW
Re:[Done 1.5.1] Global Moderator Category Fix
« Reply #6 on: March 02, 2003, 12:32:26 PM »
Reply with quote

Very odd. When I was testing it it all seemed to work. Perhaps I searched for a line that appeared more than once in the file? I'll look into it anyway.  ;)
Logged

PHPNews has been released!!! Download it now!!!
Big P
Mod Team
YaBB God
*****
Posts: 1462


"Back in '68, I don't like you, The End."

ICQ - 76064555pierceward@hotmail.com WWW
Re:[Done 1.5.1] Global Moderator Category Fix
« Reply #7 on: March 02, 2003, 01:24:47 PM »
Reply with quote

Can you do me a favour and test this on a normal YaBB SE install? I have just tested it like you did, and I didn't find a single problem. It might have something to do with PfaBB. Or at least it doesn't affect my board at all....
Logged

PHPNews has been released!!! Download it now!!!
mephisto_kur
Sr. Member
****
Posts: 308


Hi ho.

WWW
Re:[Done 1.5.1] Global Moderator Category Fix
« Reply #8 on: March 02, 2003, 06:08:55 PM »
Reply with quote

It works fine on a standard install of YaBBSE.  I need to pick people's brains over there...

Any ideas what could cause the behavior?  Just to get me looking the right way?
Logged



Awmp, ding, soo googoongee doop, dee
Googoo Fleegoogeegoo
Goo Fleegoogeegoo
Duht, Deeheeh
Oogoogoog Dtee
Oogoogagoo oogoogweee
Fleegoogeegoo, fleegow
Go go mah mah mefs sufh yeah...
Big P
Mod Team
YaBB God
*****
Posts: 1462


"Back in '68, I don't like you, The End."

ICQ - 76064555pierceward@hotmail.com WWW
Re:[Done 1.5.1] Global Moderator Category Fix
« Reply #9 on: March 02, 2003, 07:14:50 PM »
Reply with quote

You'll have to ask Michele, as I'm not at all familiar with PfaBB. It most likely has something to do with members groups in some way or another. Perhaps a mod that is included in the package?

Good luck anyway.  ;)
Logged

PHPNews has been released!!! Download it now!!!
Henk
Noobie
*
Posts: 8


Re:[Done 1.5.1] Global Moderator Category Fix
« Reply #10 on: March 03, 2003, 09:45:19 AM »
Reply with quote

I´ve installed this mod on a fresh build 43 board this morning and on a build 44 with a lot of mods.

Both have the same problem with this mod. Global mods can still see the admins only messages, if they use the "show xx recents posts of this member" on the profile page of an administrator.
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:[Done 1.5.1] Global Moderator Category Fix
« Reply #11 on: March 03, 2003, 09:49:42 AM »
Reply with quote

Profile.php...

Find:
   $permit = 0;
   if ($settings[7] == 'Administrator' || $settings[7] == 'Global Moderator')
      $permit = 1;


Replace:
  $permit = $settings[7] == 'Administrator' ? '1' : '0';

Fixes that hole.

-[Unknown]
Logged
Henk
Noobie
*
Posts: 8


Re:[Done 1.5.1] Global Moderator Category Fix
« Reply #12 on: March 03, 2003, 10:01:50 AM »
Reply with quote

Thanks, you´re fast! The hole is fixed.

As far as I can tell, this was the only hole I could find. The mod works great on a build 44 board.
Logged
mephisto_kur
Sr. Member
****
Posts: 308


Hi ho.

WWW
Re:[Done 1.5.1] Global Moderator Category Fix
« Reply #13 on: March 03, 2003, 07:31:21 PM »
Reply with quote

Quote from: Big P on March 02, 2003, 07:14:50 PM
You'll have to ask Michele, as I'm not at all familiar with PfaBB. It most likely has something to do with members groups in some way or another. Perhaps a mod that is included in the package?

Good luck anyway.  ;)

Its something with my install.  It works perfectly on a standard PfaBB install (tried on the PfaBBs based on RC39-41), and even works on a fresh install with all of my mods added.  Just something about my production site that is screwy.  <shrug>  I'll reinstall completely with the next PfaBB release.
Logged



Awmp, ding, soo googoongee doop, dee
Googoo Fleegoogeegoo
Goo Fleegoogeegoo
Duht, Deeheeh
Oogoogoog Dtee
Oogoogagoo oogoogweee
Fleegoogeegoo, fleegow
Go go mah mah mefs sufh yeah...
Big P
Mod Team
YaBB God
*****
Posts: 1462


"Back in '68, I don't like you, The End."

ICQ - 76064555pierceward@hotmail.com WWW
Re:[Done 1.5.1] Global Moderator Category Fix
« Reply #14 on: March 03, 2003, 08:41:14 PM »
Reply with quote

Quote from: Henk on March 03, 2003, 10:01:50 AM
Thanks, you´re fast!
Thanks [Unknown]. (And yes, that was fast!)

Anyway, I've reuploaded the mod for anyone else who wants it.

Glad you're able to get it to work anyway mephisto_kur.  ;)
Logged

PHPNews has been released!!! Download it now!!!
Pages: [1] 2 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.5.1] Global Moderator Category Fix « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.063 seconds with 20 queries.