PDA

View Full Version : simple request (user titles)


Esdee
10-29-2002, 09:36 PM
Wel, on mine, like on most forums, mods want to feel special and thus have their rank in a special color they'd like.
Normally, they have to rquest this in the qtaff forum, but that's why I'm asking.

Couldn't there just be a hack which gives mods the possibility to use html in their title and that <br>Moderator is automatically added to it ?

Or even beter would be a seporate field for them to choose the color.

or, if the color changing option would also be avaiable for veteran members

Thankies ^_^

Erwin
10-29-2002, 09:45 PM
You can do this in many ways.

Make a custom profile field, and make it only modifiable by staff, and not visible to members. Get people to enter their color "blue" or hex code "#000000" in it.

Then in your postbit, replace $post[usertitle] with:

<font color=$post[fieldx]>$post[usertitle]</font>

(x being the custom user profile field id). This way your staff can choose their color.

If you make custom titles enabled, your mods can directly just enter <font color=xxx>Moderator</font> in the custom user title field in their Profile. But then members can do that too then.

There are also hacks available that can do this - do a search for them.

Chris M
10-29-2002, 09:48 PM
Create 2 new profile fields...

Call the first one : Special Title - Set it to editable by the user to no
Call the second one : Glow colour - Set it to editable by the user to no

Open admin/functions.php
Find:
if ($post[aim]!="") {
eval("\$post[aimicon] = \"".gettemplate("aim")."\";");
} else {
$post[aim]="";
}
add after:
if ($post[fieldx]) {
if ($post[fieldy]) {
$extratitle="<div style=\"width:100%; filter:glow(color=$post[fieldy], strength=3)\">$post[fieldx]</div>";
} else {
$extratitle="$post[fieldx]<br>";
}
} else {
$extratitle="";
}
Change x & y to the field ids of the profile fields...

Then add $extratitle to your postbit template...

Then you want to install a hack by Xenon that allows Mods to edit profiles, and you want them to be able to edit those 2 fields:)

Satan