PDA

View Full Version : usergroup title in postbit


sabret00the
23 Apr 2004, 15:21
i thought it would've been as easy as this



Code:
---------------
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.

sabret00the
23 Apr 2004, 19:20
*bump*

Zachery
23 Apr 2004, 19: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

sabret00the
23 Apr 2004, 19:55
but how do i get it to echo out the usergroup title?

Zachery
23 Apr 2004, 19:57
does $post[usergrouptitle] echo out anything at all?

sabret00the
23 Apr 2004, 20:57
not in the slightest.

Zachery
23 Apr 2004, 21:00
Well theres where your problem lies, im going to take a stab at it isnt in the $post varible. :)

sabret00the
23 Apr 2004, 21: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 :(

Zachery
23 Apr 2004, 21:14
You mean the user title?

sabret00the
23 Apr 2004, 21:37
nope the usergrouptitle

Administrator
Moderator
Super Moderator
etc, etc, etc

Zachery
23 Apr 2004, 21: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>

sabret00the
23 Apr 2004, 22:24
no way to do it via the php_include template?

Zachery
23 Apr 2004, 23: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.

sabret00the
24 Apr 2004, 00:13
yup it's held in the usergroup table :(

oh well thought i'd try :o