PDA

View Full Version : image button in profile?


Muderman24
01-08-2005, 11:11 AM
i want to add an image button in the profile of my staff members but i'm not sure how to do it, i'm not sure if it would require a hack/mod or not. can anyone help?

Tony G
01-08-2005, 11:18 AM
Do you want this to display just in the profile of the user? Would most likely require a hack to do so.

Muderman24
01-08-2005, 11:20 AM
yes just in the profile under the usersname

Muderman24
01-11-2005, 06:35 PM
anyone?

tehste
01-13-2005, 12:08 PM
anyone?
ok something i use alot thanks to vbs greatness is conditionals in templates. and the availability of the user info through the bbuserinfo variable is cool.
So in your Member Info Template [MEMBER_INFO] maybe
something like: <if condition="$bbuserinfo[usergroupid]==6">
ADMIN
</if>
You can include other groups by using OR or AND or & | etc or even add an <else /> before the </if> Simple...

Muderman24
01-13-2005, 07:20 PM
i'm not sure i understand

Where in the MEMBER_INFO template would i put that?
&
Would i just replace "ADMIN" with the image button i wanna use?

Muderman24
01-15-2005, 11:59 AM
help? anyone?

Tekton
01-15-2005, 12:49 PM
I don't think that above code will work since bbuserinfo refers to the current user, not the one you're viewing.

tehste
01-15-2005, 07:30 PM
I don't think that above code will work since bbuserinfo refers to the current user, not the one you're viewing.
good point... ok
In the MEMBERINFO template
Search for:

<if condition="$userinfo['usertitle']"><div class="smallfont">$userinfo[usertitle]</div></if>

(near the topish)
Add Underneath
<if condition="$userinfo[usergroupid]==6">
<div class="smallfont"><img src="images/misc/admin.gif"></div>
</if>

Shows images/misc/admin.gif for group id 6 (Admins)

:)

Muderman24
01-16-2005, 12:55 AM
it's does not show in there profile to the left when they post.

Tekton
01-16-2005, 01:35 AM
If you want it in the postbit, you'll have to edit the postbit template (or legacy) and add some code there too.

Muderman24
01-16-2005, 06:20 AM
what code and where in postbit?

tehste
01-16-2005, 11:25 AM
what code and where in postbit?
you can just use a rank image for the member groups, that'll do what you want. It's an option in the admin cp