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
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
2 registered (AllenAyres, blaaskaak), 19 Guests and 11 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Spell Check [beta]
by AllenAyres
12/01/08 09:32 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
David DelMonte, nick1, Begbie, cenk, MATTO
13363 Registered Users
Top Posters
AllenAyres 25449
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks