Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
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!

Sponsored Links
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
*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

Joined: Feb 1999
Posts: 1,379
cal Offline
Programmer
Programmer
Offline
Joined: Feb 1999
Posts: 1,379
About to test it....

Just a thought [Linked Image]

Joined: Feb 1999
Posts: 1,379
cal Offline
Programmer
Programmer
Offline
Joined: Feb 1999
Posts: 1,379
Seems fine to me. Nice hack.

Just a thought [Linked Image]

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
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

Sponsored Links
Joined: Feb 1999
Posts: 1,379
cal Offline
Programmer
Programmer
Offline
Joined: Feb 1999
Posts: 1,379
Don't you trust me or something?

Just a thought [Linked Image]

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
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 [Linked Image]

------------------
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

Joined: Jan 2000
Posts: 23
Member
Member
Offline
Joined: Jan 2000
Posts: 23
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

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
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

Joined: Feb 1999
Posts: 1,379
cal Offline
Programmer
Programmer
Offline
Joined: Feb 1999
Posts: 1,379
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 [Linked Image]

Sponsored Links
Joined: Jan 2000
Posts: 23
Member
Member
Offline
Joined: Jan 2000
Posts: 23
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

Joined: Feb 2000
Posts: 10
Junior Member
Junior Member
Offline
Joined: Feb 2000
Posts: 10
You'll probably won't need stuff like this anyway.

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Yup, i didn't need it, someone requestied it, so I made a quick and weak attempt at it [Linked Image] 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

Joined: Feb 1999
Posts: 1,379
cal Offline
Programmer
Programmer
Offline
Joined: Feb 1999
Posts: 1,379
Certainly was weak. hehe.

Just a thought [Linked Image]


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)