1
-Lonestar-
Special Ranks
  • 2006/6/27 5:58

  • -Lonestar-

  • Just popping in

  • Posts: 22

  • Since: 2005/10/15


I would like to know how to have special ranks that I have created show up as different color text on the main forum view.

Where it says current users browing.

Administrator is Red
Moderator is Blue
Special RanK is Green
Special Rank is Violet

If this is possible let me know how.

2
birdseed
Re: Special Ranks
  • 2006/6/27 8:35

  • birdseed

  • Just popping in

  • Posts: 59

  • Since: 2005/2/26


Hi

You have to change every template where The Rank is displayed.


<span style='<{if $comment.user.rank == "Moderator"}>blue<{elseif $comment.user.rank== "Admin">red(....)<{/if}>">
<{$comment.user.rank}>
</span>

comment.user.rank is just a suggestion. Please look at the template to find out the rank variable name in the context.

Other suggestion: Hack The getVar Function of the XoopsUser class.

greetings
birdseed

3
Will_H
Re: Special Ranks
  • 2006/8/13 5:46

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


www.xoopsforge.com/modules/newbb

Login

Who's Online

108 user(s) are online (72 user(s) are browsing Support Forums)


Members: 0


Guests: 108


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits