vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Staff Avatar Background (https://vborg.vbsupport.ru/showthread.php?t=120582)

Allan 07-14-2006 02:33 PM

Another problem, the avatar to members don't show :surprised:

Wired1 07-14-2006 03:22 PM

odd, I was testing w/ a local user, worked fine for me.

Allan 07-14-2006 03:26 PM

Do you have same code to me ? (post top)

can you put your code here which I compare ?

Wired1 07-14-2006 06:26 PM

it's pretty much like what slappy posted, except I don't have an extra space after the groupid # like he does:
Code:

<if condition="$post[usergroupid]==X ">
When I get home I'll post my code. If you want to see it in action, got to the house of help (in sig), go to off topic forum near the top. You'll see a test thread there. I believe I still have the code active (can't see site from work).

slappy 07-14-2006 06:34 PM

Oops. That space was just because I took out a groupid number and replaced it with an "X". The space should not be there. The original was:

<if condition="$post[usergroupid]==6">

I'll fix my example code now.

Regards,

Allan 07-14-2006 07:01 PM

Quote:

Originally Posted by Wired1
it's pretty much like what slappy posted, except I don't have an extra space after the groupid # like he does:
Code:

<if condition="$post[usergroupid]==X ">
When I get home I'll post my code. If you want to see it in action, got to the house of help (in sig), go to off topic forum near the top. You'll see a test thread there. I believe I still have the code active (can't see site from work).

Ok, thanks ;)

Same problem, avatar members don't show

Quote:

Originally Posted by Allan
Same problem, avatar members don't show

I have find !!

One was missing an <else /> at the end, before no usergroup :banana:

Bubble #5 07-15-2006 10:53 PM

What is it that you guys are trying to do? Posting a background image per usergroup is already a hack :bunny:

slappy 07-15-2006 11:03 PM

Reading from the top would enlighten you that this thread is about using the vbulletin staff avatar, with the cutout for a photo or private avatar image added, or with just the staff title of the appropriate usergroup, at the choice of the staff member.

Various options and code to accomplish placement and alignment of the staff avatars, as used here with inserts, were discussed, as was custom vbulletin staff avatars and the code to display them correctly by usergroup.

Regards,

Wired1 07-18-2006 01:56 AM

so, does anyone have any improvements to make on this?

peterska2 07-21-2006 01:35 PM

This is the version that I have working on my site. It's still done with tables, but it works perfectly and each staff member has their own badge too.

I made a couple of adjustments to get the alignment right with my badges though. If anyone needs a plain PSD template to work with these instructions, then just let me know and I'll fix it up for you.

Code:

        <if condition="$show['avatar']">
<!-- check for staff -->
<if condition="in_array($post[usergroupid], array(5,6,7))">
<!-- I am staff so do this -->
<td class="alt2">
  <table cellpadding="4" cellspacing="0" border="0" width="124" height="82" align="center" background="images/$post[username]_avatar.gif" nowrap="nowrap" no-repeat>
      <tr>
        <td width="48%">&nbsp;</td>
<td><img src="$post[avatarurl]" height="56" width="56" align="center"></td>
      </tr>
  </table>
</td>
<else />
<!-- I am not staff so do this -->
  <td class="alt2">
      <a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
  </td>
</if>
</if>



All times are GMT. The time now is 03:05 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.01051 seconds
  • Memory Usage 1,741KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete