The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
usergroup title in postbit
i thought it would've been as easy as this
HTML Code:
<if condition="$post['usergroupid'] != '2' OR $post['usergroupid'] != '4' OR $post['usergroupid'] != '10' OR $post['usergroupid'] != '11'"><div class="smallfont">$post[usergrouptitle]</div></if> i would like it to update dynamically so that if i edit the usergroup name i don't have to edit the templates. |
#2
|
||||
|
||||
*bump*
|
#3
|
||||
|
||||
I think you have a few too many or's with !='s Im not a php wiz, but if one of thoughs comes out true it stops... or somthing
Try one at a time? <if condition==" X " > </if> Like that instead of a huge or |
#4
|
||||
|
||||
but how do i get it to echo out the usergroup title?
|
#5
|
||||
|
||||
does $post[usergrouptitle] echo out anything at all?
|
#6
|
||||
|
||||
not in the slightest.
|
#7
|
||||
|
||||
Well theres where your problem lies, im going to take a stab at it isnt in the $post varible.
|
#8
|
||||
|
||||
that's why i came here for help
as the only way i could think of, of acheiving this is via conditionals to say If = X then do Y but i want the user group titles updated dynamically |
#9
|
||||
|
||||
You mean the user title?
|
#10
|
||||
|
||||
nope the usergrouptitle
Administrator Moderator Super Moderator etc, etc, etc |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|