View Full Version : display MEMBER for a certain group.
svoec
01-17-2003, 07:52 PM
Hey Guys & Gals
I have done some searches.. and I can't seem to find anything that matches up with what I am looking for..
I am looking into figuring this one out myself if, - butI I'm still a bit green
I run a board that is Operated by a club, and is open to the public. I want a way to display MEMBER under their avatar if they are a member of the group I have created called members
Help!
Thanks!
Xenon
01-18-2003, 06:15 PM
in functions.php in the getpostbit section add:
if($post[usergroupid]==xx) $post[member]='Member';
else $post[member]='';
then add $post[member] under the avatar in the postbit template
svoec
01-18-2003, 06:19 PM
i knew the code, I was having problems finding where to put it!!!
Thanks !!
Xenon
01-18-2003, 06:30 PM
you're welcome :)
svoec
01-18-2003, 06:35 PM
anyone doing a copy and paste of the code above may want to correct the else, and the missing {}
svoec
01-18-2003, 06:48 PM
hummm.. one slight problem with your method... if the user don't haev a avatar, it don't show up!!!
is there another template that contains the location and registratioin info stuff ??
Xenon
01-18-2003, 07:31 PM
the code above is independant from having an avatar or not.
are you szure you have put $post[member] it into the postbit template and not in anotherone?
svoec
01-18-2003, 07:38 PM
ahhh.. i put it in the postbit_avatar template...
The way I read your post, I thought that is what you meant...
I will move it...
thanks
Xenon
01-18-2003, 07:44 PM
no problem, you're welcome :)
oh also there are no missing {} in my code, if it's just one code line, you can put it directly behind the iff and else without the {} :)
svoec
01-18-2003, 07:47 PM
ahhh.. force of habit from too many other programming languages.. I just always use the { } -- but you are right.. if it is only one line, you don't need them
and suddenly else is spelled right :D
svoec
01-18-2003, 07:52 PM
UGHHH -- ok ,, now.. strange display problem ---
if the post is short -- like one or 2 lines -- and the person IS in the specified group, it puts the "Report this post to a moderator | IP: Logged
" up like 1 inch from the bottom of the post.. it should be right at the very bottom.. any sugestions ??
svoec
01-18-2003, 07:57 PM
nevermind.. that is just a freaky thing with VB -- it does it even if the person isn't in the group. .. it is just somethign with short posts...
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.