PDA

View Full Version : Displaying both Custom UserTitle and Usergroup User Title / User Title


Crad
08-09-2011, 09:17 PM
Hey everybody,

Currently, our board supports user-defined Custom User Titles for every member.

The problem is, we also want to display Administrator and Moderator Usergroup User Titles, and from my understanding Custom User Titles overwrite Usergroup User Titles.

We could just use User Ranks for this, but those are already in use.

So we want to display:

User Title
Custom User Title
User Rank

I was hoping I could just make a template edit to the postbit template, and add:

<span class="usertitle">{vb:raw post.customusertitle}</span>

But of course, $post['customusertitle'] doesn't exist. And I'd still need to stop the Custom User Title from superseding the User Title.

So could somebody point me in the right direction?

Sorry for the open-ended question, I'm new to modding vBulletin.

kh99
08-09-2011, 10:49 PM
I think this will work:

<vb:if condition="$post['customtitle']">
<span class="usertitle">{vb:raw post.displayusertitle}</span>
</vb:if>


if you put it in above the existing user title.

Crad
08-10-2011, 12:14 AM
Wow! Thanks for the response: I didn't realize it was post.displayusertitle!

That works perfectly! Thank you very much!

Nickie
09-01-2013, 01:21 PM
I do realize that I am bumping a post that is very old but I can't seem where to post this line. Does anyone know if it goes in the postbit template under your current style?

RickyH
09-02-2013, 10:26 AM
It will go in postbit_legacy template, if you just find where you want to display it and stick it in there.

Chivster
09-03-2013, 04:40 AM
Question, will this make it so, that no matter how many usergroups you have, it will show all their usertitles?

As im currently placing custom usertitles, and its abit annoying at last to hold organized.

RickyH
09-03-2013, 10:21 AM
Question, will this make it so, that no matter how many usergroups you have, it will show all their usertitles?

As im currently placing custom usertitles, and its abit annoying at last to hold organized.

If you have it on "Stack Usertitle" it will stack all usertitles, otherwise it will just show the display group.