vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   image button in profile? (https://vborg.vbsupport.ru/showthread.php?t=73995)

Muderman24 01-08-2005 11:11 AM

image button in profile?
 
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

Quote:

Originally Posted by Muderman24
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:
Code:

<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

Quote:

Originally Posted by Tekton
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:
Code:

<if condition="$userinfo['usertitle']"><div class="smallfont">$userinfo[usertitle]</div></if>
(near the topish)
Add Underneath
Code:

<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

Quote:

Originally Posted by Muderman24
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


All times are GMT. The time now is 04:50 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01093 seconds
  • Memory Usage 1,732KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete