Log in

View Full Version : Custom titles PLUS Default titles


Ala21
04-08-2005, 11:37 PM
Hello,

sorry if this has been asked elsewhere, after a quick research I couldn't find anything on this except a slight manual modification to make in the custom title field to have another line (Gundam Pilot<br><b>Administrator</b>).

What I'm trying to do is getting 1 (or more) user titles displayed under the username.

For example, let's say I am moderator of Forum Mails, i want this to show up in posts:

Ala21
Forum Mails Moderator (unchangeable)
Senior Member (default title based on posts or custom title chosen by the user)

If I moderate both Forum Mails and Forum Receipts then it would go like this:

Ala21
Forum Mails Moderator
Forum Receipts Moderator
Senior Member (or custom title)

Obviously the Administrator specifies what the unchangable title(s) is/are with any text so that this could become

Ala21
Anything [unchangeable]
Senior Member

So basically getting one or more user titles set by the administrator that are unchangeable PLUS the default or custom title shown in the posts. I've seen this done in vb2, maybe with a hack. Do you know how to do this in vb3? I am a new at this so please keep it simple :)

Snow
04-09-2005, 11:30 AM
I use usergroup ranks and user titles combined to achieve something similar... i.e. I have an unalterable Rank image for moderators etc. and then they can use a custom title as well.

I suppose another quick and easy way to achieve the above would be to use custom profile fields. Create the profile field as you require it, e.g. editable by user or not and make a note of the field ID then in your postbit template find
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if> and add <div class="smallfont">$post[fieldX]</div> between the <if> tags for each custom field you want (where X= field ID number) e.g.
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div>
<div class="smallfont">$post[field7]</div></if>

I'm sure there's a better way to do this, but I'm not a coder so this is the best I can do. :rolleyes:

Ala21
04-09-2005, 04:47 PM
Thank you!