Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

How to Identify Admins in Posts?

Quote Reply
How to Identify Admins in Posts?
Hi:

Right now, Forum is set up to identify Moderators in the posts by adding a " /MOderator" to their title, with code similar to this:

<%if post_user_is_moderator%>

<FONT COLOR="#0000FF"><small>&nbsp;&nbsp;<B><%user_title%> / Moderator</FONT>

<%else%>

I wanted to add in a bit so Administrators would also get an "/ Admin" tag

I have tried:

<%if post_user_is_administrator%>

<%if post_user_is_Administrator%>

<%if Status = Administrator%>

I also did a tag dump, and saw nothing to indicate Administrator staus.

None of which work. Just wondering if anyone knew the secret to pulling this sort of info from Forum...

TIA!

dave

Big Cartoon DataBase
Big Comic Book DataBase
Quote Reply
Re: [carfac] How to Identify Admins in Posts? In reply to
<%if user_status == '3'%>


Realiiity.com Forums
Quote Reply
Re: [ellipsiiis] How to Identify Admins in Posts? In reply to
Super- thanks!
dave

Big Cartoon DataBase
Big Comic Book DataBase
Quote Reply
Re: [carfac] How to Identify Admins in Posts? In reply to
FWIW:

When comparing strings you'd be better off to use eq and ne, and quote the string.

>> <%if Status = Administrator%>

would be

<%if Status eq 'Administrator'%>

I use the above line to show various things in Links SQL to me, but not the users.


PUGDOG´┐Ż Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [pugdog] How to Identify Admins in Posts? In reply to
Thanks Pugdog- I always learn a lot from you!
dave

Big Cartoon DataBase
Big Comic Book DataBase
Quote Reply
Re: [carfac] How to Identify Admins in Posts? In reply to
For future reference, you can determine whether the current user is an administrator with:

<%if current_user_status == 3%>

To determine whether the poster is an admin, do as ellipsiiis suggested.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com