View Full Version : usergroup title in postbit
23 Apr 2004, 14:21
i thought it would've been as easy as this
Code is only visible to licensed users, and only when logged into the forums.
i was wrong, so i'm wondering how do i do it?
i would like it to update dynamically so that if i edit the usergroup name i don't have to edit the templates.
23 Apr 2004, 18:20
23 Apr 2004, 18:48
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
23 Apr 2004, 18:55
but how do i get it to echo out the usergroup title?
23 Apr 2004, 18:57
does $post[usergrouptitle] echo out anything at all?
23 Apr 2004, 19:57
not in the slightest.
23 Apr 2004, 20:00
Well theres where your problem lies, im going to take a stab at it isnt in the $post varible. :)
23 Apr 2004, 20:01
that's why i came here for help :o :(
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 :(
23 Apr 2004, 20:14
You mean the user title?
23 Apr 2004, 20:37
nope the usergrouptitle
etc, etc, etc
23 Apr 2004, 20:40
Well im almost positive that is not cought in the $post varible you will either need to hack to get the info and include it or HARDCODE the info into the postbit
<if condition="$post[usergroupid] == 6">Administrator</if>
23 Apr 2004, 21:24
no way to do it via the php_include template?
23 Apr 2004, 22:49
That info is not held in the user table at all. its held in a whole nother table, i would guess it would take abit of work to just make it work for the postbit with the php include template.
23 Apr 2004, 23:13
yup it's held in the usergroup table :(
oh well thought i'd try :o
vBulletin® v3.6.12, Copyright ©2000-2015, Jelsoft Enterprises Ltd.