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!
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"
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.
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)
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.