php forum
php mysql forum
php mysql smarty
 
Topic Options
#222414 - 08/14/02 07:33 PM Make sticky posts admin only.
Aglavalin Offline
Enthusiast

Registered: 06/18/02
Posts: 394
Loc: Southern California

   Make sticky posts admin only. to Del.icio.us Add to del.icio.us
  Digg Make sticky posts admin only. Digg it
Recently I discovered that moderators can make sticky posts in their moderated forums. I had thought it was admin only due to a post over at infopop, so I had wondered how a mod had done it on my board. I didn't like this, so I have tracked down the code to change this. I think it is just this one line, and it is real simple to make sticky posts admin only if you so choose.<br /><br />In the editpost.php file, find this:<br /><br /> elseif ( ( ( ($user['U_Status'] == "Moderator") && $check) || ($user['U_Status'] == "Administrator") ) && ($Number == $Main) && (!$Sticky) ) {<br /><br />and REMOVE this part:<br /><br />( ($user['U_Status'] == "Moderator") && $check) ||<br /><br />so it looks like this:<br /><br /> elseif ( ( ($user['U_Status'] == "Administrator") ) && ($Number == $Main) && (!$Sticky) ) {<br /><br /><br />Thats it!

Top
#222415 - 08/15/02 08:18 AM Re: Make sticky posts admin only. [Re: neuron]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1956
Loc: Sweden, Uppsala
That looked easy enough, thanks for tracking it down. Hopefully it will be possible for the admin to set which things moderators will be able to do in some future version.
_________________________
/Gardener | Complete list of my mods

Top
#222416 - 08/15/02 08:45 AM Re: Make sticky posts admin only. [Re: c0bra]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
I wonder if I should incorporate this into my Restrict Moderators hack.
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top


Who's Online
0 Registered (), 39 Guests and 6 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Blogs, love em or hate em?
by Ian_W
Yesterday at 03:47 PM
What do you use to edit the files
by Ian_W
Yesterday at 03:33 PM
BeyondCompare v3.00
by Ian_W
Yesterday at 03:32 PM
Glossy Black Theme with Image Reflection
by Gizmo
Yesterday at 02:17 PM
ShareThis
by Gizmo
09/28/08 05:06 AM
[7.3] Viewing MySQL logfiles made easier
by AllenAyres
09/27/08 09:57 PM
Looking for a simple upload script
by Murphdog
09/26/08 08:45 PM
New Mods
[7.3] Viewing MySQL logfiles made easier
by blaaskaak
09/24/08 05:39 PM
[7.3] Language file checker
by blaaskaak
09/09/08 12:56 AM
[7.3.1] add search to showmembers page
by blaaskaak
09/07/08 04:50 AM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
ghengis317, NitroX, Dogan, EliYah-, W-D
13344 Registered Users
Top Posters Last 30 Days
AllenAyres 16
blaaskaak 13
FREAK1 7
Mike L_dup1 4
Chris Bale 4
Ian_W 4
tackaberry 3

 

 

 
fusionbb message board php hacks