The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
display MEMBER for a certain group.
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! |
#2
|
||||
|
||||
in functions.php in the getpostbit section add:
PHP Code:
|
#3
|
|||
|
|||
i knew the code, I was having problems finding where to put it!!!
Thanks !! |
#4
|
||||
|
||||
you're welcome
|
#5
|
|||
|
|||
anyone doing a copy and paste of the code above may want to correct the else, and the missing {}
|
#6
|
|||
|
|||
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 ?? |
#7
|
||||
|
||||
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? |
#8
|
|||
|
|||
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 |
#9
|
||||
|
||||
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 {} |
#10
|
|||
|
|||
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 |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|