Welcome, Guest. Please Login or Register.
April 27, 2025, 07:45:20 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.4.0][Code] Global Moderators can no longer see Administor forums « previous next »
Pages: [1] 2 Reply Ignore Print
Author Topic: [Done 1.4.0][Code] Global Moderators can no longer see Administor forums  (Read 3547 times)
UNICRON
Noobie
*
Posts: 19


[Done 1.4.0][Code] Global Moderators can no longer see Administor forums
« on: July 10, 2002, 04:50:47 AM »
Reply with quote

Simple hack of BoardIndex.php and Recent.php that allows administrators to have a forum away from those pesky Global Moderators ;) Now we call 'em "Almost Global" moderators.

BoardIndex.php:

lines 45, 152, 577

and Recent.php:

lines 36, 65, 147, 200, 203

In all cases remove the reference to Global Moderator so that
.....WHERE('$settings[7]'='Administrator' || 'settings[7]'='Global Moderator' || ......
Becomes
.....WHERE('$settings[7]'='Administrator' || ......

Nothin to it.

http://www.wilderssecurity.com
« Last Edit: August 13, 2002, 08:34:07 AM by Nemesis » Logged
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:[CODE] Global Moderators can no longer see Administor forums
« Reply #1 on: July 11, 2002, 02:00:18 AM »
Reply with quote

pointer:  don't make a mod by line numbers.  1/2 the people have different line numbers than you.

nice work though :)
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
UNICRON
Noobie
*
Posts: 19


Re:[CODE] Global Moderators can no longer see Administor forums
« Reply #2 on: July 11, 2002, 02:18:12 AM »
Reply with quote

Quote from: groundup on July 11, 2002, 02:00:18 AMpointer:  don't make a mod by line numbers.  1/2 the people have different line numbers than you.

True.

I assumed everyone had access to the original version. I guess I should have specified that these line numbers were based on the original 1.4 version. The hack is so simple, I think everyone is capable of figuring out where the chanfes go.
« Last Edit: July 11, 2002, 02:20:34 AM by UNICRON » Logged
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:[CODE] Global Moderators can no longer see Administor forums
« Reply #3 on: July 11, 2002, 02:46:11 AM »
Reply with quote

you would be suprised ;)
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
Tha Master
Full Member
***
Posts: 201


G€€N G€KL!€R, !K B€N H!€R

vermeulen_yves@hotmail.com WWW
Re:[CODE] Global Moderators can no longer see Administor forums
« Reply #4 on: August 12, 2002, 11:53:26 AM »
Reply with quote

oke, but in that recent.php file there are chanches with the scripts
Logged

« Last Edit: Next Week at 23:59:59 pm by Tha Master »
_________________________________________________________________________________________________________
tha master was here ;)
http://www.forumekes.tk
mephisto_kur
Sr. Member
****
Posts: 308


Hi ho.

WWW
Re:[CODE] Global Moderators can no longer see Administor forums
« Reply #5 on: August 12, 2002, 02:41:30 PM »
Reply with quote

Excellent!  I even posted asking for this.
One issue is that I get a parse error when I edit the first entry in Recent.php...  I put it back to default and the mod works great!
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...
UNICRON
Noobie
*
Posts: 19


Re:[CODE] Global Moderators can no longer see Administor forums
« Reply #6 on: August 12, 2002, 04:06:37 PM »
Reply with quote

check the "recent posts" section of the main board index and see if a global mod can see an admin thread if it was the last one posted in. We had missed that at first.
Logged
mephisto_kur
Sr. Member
****
Posts: 308


Hi ho.

WWW
Re:[CODE] Global Moderators can no longer see Administor forums
« Reply #7 on: August 12, 2002, 05:44:10 PM »
Reply with quote

Yeah, yer right.  I'll have to see if I can get that line to work.  I must have fubbed it somehow, it works everywhere else I edited.
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:[CODE] Global Moderators can no longer see Administor forums
« Reply #8 on: August 13, 2002, 01:02:14 AM »
Reply with quote


EDIT: Update
If you are using the Recent Posts block in YaPP, remember to remove these references is Blocks.php...
« Last Edit: August 13, 2002, 01:18:55 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...
UNICRON
Noobie
*
Posts: 19


Re:[CODE] Global Moderators can no longer see Administor forums
« Reply #9 on: August 13, 2002, 03:42:03 AM »
Reply with quote

If your recent.php hack is done right a global mod cannot see admin "recent posts". However if he guessed the thread id (not too dificult) he could read and post in an admin thread. I'll fix that tonight. no biggie.
Logged
mephisto_kur
Sr. Member
****
Posts: 308


Hi ho.

WWW
Re:[CODE] Global Moderators can no longer see Administor forums
« Reply #10 on: August 13, 2002, 05:08:48 AM »
Reply with quote

That fix would be nice, yes.  I fixed my recent.php hack.  It works now.  I just had to take extra steps because of YaPP.  Of course, if I catch my Mods doing something like trying to find admin threads, I'll ban 'em.
« Last Edit: August 13, 2002, 05:09:37 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...
UNICRON
Noobie
*
Posts: 19


Re:[CODE] Global Moderators can no longer see Administor forums
« Reply #11 on: August 13, 2002, 07:58:19 AM »
Reply with quote

Quote from: mephisto_kur on August 13, 2002, 05:08:48 AMOf course, if I catch my Mods doing something like trying to find admin threads, I'll ban 'em.

That was my thinking. It's not like they could hide it from me.
Logged
Surfy
Sr. Member
****
Posts: 458


I'm a llama!

Re:[Done 1.4.0][Code] Global Moderators can no longer see Administor forums
« Reply #12 on: September 24, 2002, 08:34:53 AM »
Reply with quote

is a Mod File for Boardmod Arround here?

I dont get it to work with this Linenumbers :-(

Surfy
Logged
Surfy
Sr. Member
****
Posts: 458


I'm a llama!

Re:[Done 1.4.0][Code] Global Moderators can no longer see Administor forums
« Reply #13 on: September 25, 2002, 03:04:18 PM »
Reply with quote

Quoteif (!$result) { echo "memcount SQL failed";}
   $condition = $settings[7]=='Administrator' || $settings[7]=='Global Moderator' ? '' : "&& (FIND_IN_SET('$settings[7]',c.memberGroups)!=0 || c.memberGroups='')";
   $result = mysql_query("SELECT COUNT(*) as totalm FROM {$db_prefix}messages as m,{$db_prefix}boards as b,{$db_prefix}topics as t,{$db_prefix}categories as c WHERE (m.ID_TOPIC=t.ID_TOPIC && t.ID_BOARD=b.ID_BOARD && b.ID_CAT=c.ID_CAT$condition)");

Please show me a sample! Please Post a prepared Line!

thx a lot, Surfy
Logged
Surfy
Sr. Member
****
Posts: 458


I'm a llama!

Re:[Done 1.4.0][Code] Global Moderators can no longer see Administor forums
« Reply #14 on: October 16, 2002, 11:50:29 AM »
Reply with quote

This Mod has a Security-Hole!!!!

The Global Mod can view all Posts Postet by a Admin, if he Click "View the last Posts" funktion!!!!

How can i fix this?

Surfy
« Last Edit: October 16, 2002, 11:50:54 AM by Surfy » Logged
Pages: [1] 2 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.4.0][Code] Global Moderators can no longer see Administor forums « 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.037 seconds with 16 queries.