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: 1966
Loc: Sweden, Stockholm
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



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks