php forum
php mysql forum
php mysql smarty
 
Topic Options
#43110 - 03/03/00 08:51 PM Show Admin Functions Only to Admins and Mods
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
Well, this hack was thrown together, and is not extensively tested. I do not think it works if the user viewing the page does not have a cookie from the UBB, so they have to be registered.
Description: Hides the administrative functions located at the bottom of the message display page from all but administrators and moderators.
Hack:
Find:
Quote:
quote:


and add right next to it:
Quote:
quote:


Remember, this is still in beta, drop any suggestions/fixes to my code in this message. Hopefully we get this worked out!

Top
#43111 - 03/05/00 04:54 PM Re: Show Admin Functions Only to Admins and Mods
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
*bump*

Still looking for people to tell me if it works or not

------------------
I wish I were a Canuck
All they have to do is drink beer, play hockey, and say "Eh"

* No offense meant to any Canadians

Top
#43112 - 03/06/00 03:11 AM Re: Show Admin Functions Only to Admins and Mods
cal Offline
Programmer

Registered: 02/19/99
Posts: 3433
Loc: London, UK | Genius: 100%
About to test it....

Just a thought
_________________________
http://www.iamcal.com

Top
#43113 - 03/06/00 03:24 AM Re: Show Admin Functions Only to Admins and Mods
cal Offline
Programmer

Registered: 02/19/99
Posts: 3433
Loc: London, UK | Genius: 100%
Seems fine to me. Nice hack.

Just a thought
_________________________
http://www.iamcal.com

Top
#43114 - 03/06/00 06:00 PM Re: Show Admin Functions Only to Admins and Mods
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
Can i get a confirmation from someone else?

------------------
I wish I were a Canuck
All they have to do is drink beer, play hockey, and say "Eh"

* No offense meant to any Canadians

Top
#43115 - 03/07/00 02:33 PM Re: Show Admin Functions Only to Admins and Mods
cal Offline
Programmer

Registered: 02/19/99
Posts: 3433
Loc: London, UK | Genius: 100%
Don't you trust me or something?

Just a thought
_________________________
http://www.iamcal.com

Top
#43116 - 03/07/00 04:40 PM Re: Show Admin Functions Only to Admins and Mods
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
Me2Be -- It didn't work for you? It only shows if you are an admin or mod. Please let me know exactly what happened. It reads your profile, so you must not clear your cookies, and your username and pword need to be stored.

cal -- It's not that, things end up better if they are double, triple, or even more, checked

------------------
I wish I were a Canuck
All they have to do is drink beer, play hockey, and say "Eh"

* No offense meant to any Canadians

Top
#43117 - 03/11/00 08:13 PM Re: Show Admin Functions Only to Admins and Mods
Ed Sullivan Offline
Member

Registered: 01/04/00
Posts: 130
Loc: Allentown, PA
Forgive me if I'm wrong here, but this stuff is in the CreateThreadHTML sub, right? Well, then wouldn't this just supress it if the poster wasn't an Admin/Mod?

In other words, "Billy Bob", a member, posts a topic -- no one sees the admin stuff. If "Mr. Admin" posts, then everyone sees the the admin stuff.

Or am I completely wrong here?

------------------
-mike
Casual Players Alliance
_________________________
-mike
Casual Players Alliance - And that freeware UBB. smile

Top
#43118 - 03/11/00 10:16 PM Re: Show Admin Functions Only to Admins and Mods
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
hmmm, i didn't think so, but maybe...

------------------
I wish I were a Canuck
All they have to do is drink beer, play hockey, and say "Eh"

* No offense meant to any Canadians

Top
#43119 - 03/12/00 07:54 AM Re: Show Admin Functions Only to Admins and Mods
cal Offline
Programmer

Registered: 02/19/99
Posts: 3433
Loc: London, UK | Genius: 100%
Very good point (shouldn't have trusted me Atom). The page isn't dynamic so either has them for everyone or for no one. To do this hack, you'd need to generate the page every time it was loaded.

This hack is impossible (without A LOT of recoding)

Just a thought
_________________________
http://www.iamcal.com

Top
#43120 - 03/12/00 12:23 PM Re: Show Admin Functions Only to Admins and Mods
Ed Sullivan Offline
Member

Registered: 01/04/00
Posts: 130
Loc: Allentown, PA
Well, theoretically you could create a cookie with your user status and then use some javascript to only write it if the cookie says Admin or Moderator. Not worth it IMO.

------------------
-mike
Casual Players Alliance
_________________________
-mike
Casual Players Alliance - And that freeware UBB. smile

Top
#43121 - 03/18/00 08:32 AM Re: Show Admin Functions Only to Admins and Mods
tuoic Offline
Junior Member

Registered: 02/09/00
Posts: 22
Loc: Eindhoven, Netherlands
You'll probably won't need stuff like this anyway.

Top
#43122 - 03/18/00 10:11 AM Re: Show Admin Functions Only to Admins and Mods
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
Yup, i didn't need it, someone requestied it, so I made a quick and weak attempt at it I wasn't using it...

------------------
I wish I were a Canuck
All they have to do is drink beer, play hockey, and say "Eh"

* No offense meant to any Canadians

Top
#43123 - 03/18/00 10:17 AM Re: Show Admin Functions Only to Admins and Mods
cal Offline
Programmer

Registered: 02/19/99
Posts: 3433
Loc: London, UK | Genius: 100%
Certainly was weak. hehe.

Just a thought
_________________________
http://www.iamcal.com

Top


Who's Online
0 registered (), 29 Guests and 13 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
How to hide sub forums from summary page
by Ruben Rocha
Today at 02:58 PM
Spell Check [beta]
by Bill B
Yesterday at 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
Yesterday at 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
Yesterday at 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
Yesterday at 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 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 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks