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)

Wired1 07-21-2006 04:09 PM

PSD would be great.

Why not use $post[avwidth] $post[avheight] in the staff avatar though?

My only gripe with what we've come up so far is with avatars of varing size. Mine's 47x50, another guy's got 48x50, etc. Gotta make a big one for the guy who has a 125x125 somehow though :) Isn't there a way through PHP GD to do image manipulation?

peterska2 07-21-2006 04:16 PM

1 Attachment(s)
Thats why I specified the size in there. It adjusts the size of the avatar to fit the badge.

If you want to take a look at them in use on my site, you will see that they have been shrunk significantly to fit the badges.

FYI, the original size avatars in use by me and my co-admin are attached.

My moderator does not have an avatar so his badge does not show.

I'll sort the basic PSD file out later and post it up as a release with everyone who has contributed as co-authors.

Snyper 07-21-2006 04:32 PM

Hello Allan,

great, can you post the psd and Font ????

Greets :D

Quote:

Originally Posted by Allan
For you if you want ^^ :

https://vborg.vbsupport.ru/

https://vborg.vbsupport.ru/
  • For team :
https://vborg.vbsupport.ru/

https://vborg.vbsupport.ru/

https://vborg.vbsupport.ru/

https://vborg.vbsupport.ru/

https://vborg.vbsupport.ru/
  • Code:
Code:

<!-- START - TEST FOR AVATAR HACK -->
<if condition="$show['avatar']">
<!-- ADMIN -->
<if condition="$post[usergroupid]==6">
<!-- I am an admin so do this -->
<td class="alt2">
  <table cellpadding="5" cellspacing="0" border="0" width="150" height="70" align="center">
      <tr>
        <td background="$stylevar[imgdir_misc]/badge6.png" nowrap="nowrap" no-repeat><img src="$post[avatarurl]" height="56" width="56" align="right"></td>
      </tr>
  </table>
</td>
<!-- ADMIN -->
<else />
<!-- MODERATOR -->
<if condition="$post[usergroupid]==7 ">
<td class="alt2">
  <table cellpadding="5" cellspacing="0" border="0" width="150" height="70" align="center">
      <tr>
        <td background="$stylevar[imgdir_misc]/badge7.png" nowrap="nowrap" no-repeat><img src="$post[avatarurl]" height="56" width="56" align="right"></td>
      </tr>
  </table>
</td>
<!-- MODERATOR -->
<else />
<!-- SUPER MODERATOR -->
<if condition="$post[usergroupid]==5 ">
<td class="alt2">
  <table cellpadding="5" cellspacing="0" border="0" width="150" height="70" align="center">
      <tr>
        <td background="$stylevar[imgdir_misc]/badge5.png" nowrap="nowrap" no-repeat><img src="$post[avatarurl]" height="56" width="56" align="right"></td>
      </tr>
  </table>
</td>
<!-- SUPER MODERATOR -->
<else />
<!-- CODER -->
<if condition="$post[usergroupid]==10 ">
<td class="alt2">
  <table cellpadding="5" cellspacing="0" border="0" width="150" height="70" align="center">
      <tr>
        <td background="$stylevar[imgdir_misc]/badge10.png" nowrap="nowrap" no-repeat><img src="$post[avatarurl]" height="56" width="56" align="right"></td>
      </tr>
  </table>
</td>
<!-- CODER -->
<else />
<!-- TRANSLATOR -->
<if condition="$post[usergroupid]==9 ">
<td class="alt2">
  <table cellpadding="5" cellspacing="0" border="0" width="150" height="70" align="center">
      <tr>
        <td background="$stylevar[imgdir_misc]/badge9.png" nowrap="nowrap" no-repeat><img src="$post[avatarurl]" height="56" width="56" align="right"></td>
      </tr>
  </table>
</td>
<!-- TRANSLATOR -->
<else />
<!-- NO GROUP -->
  <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>
<!-- NO GROUP -->
</if>
</if>
</if>
</if>
</if>
</if>
<!-- END - TEST FOR AVATAR HACK -->



Wired1 07-31-2006 03:30 AM

Quote:

Originally Posted by peterska2
I'll sort the basic PSD file out later and post it up as a release with everyone who has contributed as co-authors.

That'd be cool :)

peterska2 07-31-2006 03:51 AM

I'll get it sorted out shortly.

Just need to tidy up the PSD I'm using.

peterska2 07-31-2006 06:55 AM

Here we go: Staff avatars

Allan 07-31-2006 07:31 AM

Quote:

Originally Posted by Snyper
Hello Allan,

great, can you post the psd and Font ????

Greets :D

Check Mp ;)

Digitalus 12-19-2006 08:18 PM

Quote:

Originally Posted by Allan (Post 1030243)
For you if you want ^^ :

http://img208.imageshack.us/img208/8388/exemple13bp.png

https://vborg.vbsupport.ru/
  • For team :
http://img48.imageshack.us/img48/4491/badgeadmin8fm.png

http://img48.imageshack.us/img48/839...derator7bd.png

http://img83.imageshack.us/img83/440...derator5oi.png

http://img228.imageshack.us/img228/9...gecoder8fb.png

http://img83.imageshack.us/img83/603...nslator6hy.png
  • Code:
Code:

<!-- START - TEST FOR AVATAR HACK -->
<if condition="$show['avatar']">
<!-- ADMIN -->
<if condition="$post[usergroupid]==6">
<!-- I am an admin so do this -->
<td class="alt2">
  <table cellpadding="5" cellspacing="0" border="0" width="150" height="70" align="center">
      <tr>
        <td background="$stylevar[imgdir_misc]/badge6.png" nowrap="nowrap" no-repeat><img src="$post[avatarurl]" height="56" width="56" align="right"></td>
      </tr>
  </table>
</td>
<!-- ADMIN -->
<else />
<!-- MODERATOR -->
<if condition="$post[usergroupid]==7 ">
<td class="alt2">
  <table cellpadding="5" cellspacing="0" border="0" width="150" height="70" align="center">
      <tr>
        <td background="$stylevar[imgdir_misc]/badge7.png" nowrap="nowrap" no-repeat><img src="$post[avatarurl]" height="56" width="56" align="right"></td>
      </tr>
  </table>
</td>
<!-- MODERATOR -->
<else />
<!-- SUPER MODERATOR -->
<if condition="$post[usergroupid]==5 ">
<td class="alt2">
  <table cellpadding="5" cellspacing="0" border="0" width="150" height="70" align="center">
      <tr>
        <td background="$stylevar[imgdir_misc]/badge5.png" nowrap="nowrap" no-repeat><img src="$post[avatarurl]" height="56" width="56" align="right"></td>
      </tr>
  </table>
</td>
<!-- SUPER MODERATOR -->
<else />
<!-- CODER -->
<if condition="$post[usergroupid]==10 ">
<td class="alt2">
  <table cellpadding="5" cellspacing="0" border="0" width="150" height="70" align="center">
      <tr>
        <td background="$stylevar[imgdir_misc]/badge10.png" nowrap="nowrap" no-repeat><img src="$post[avatarurl]" height="56" width="56" align="right"></td>
      </tr>
  </table>
</td>
<!-- CODER -->
<else />
<!-- TRANSLATOR -->
<if condition="$post[usergroupid]==9 ">
<td class="alt2">
  <table cellpadding="5" cellspacing="0" border="0" width="150" height="70" align="center">
      <tr>
        <td background="$stylevar[imgdir_misc]/badge9.png" nowrap="nowrap" no-repeat><img src="$post[avatarurl]" height="56" width="56" align="right"></td>
      </tr>
  </table>
</td>
<!-- TRANSLATOR -->
<else />
<!-- NO GROUP -->
  <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>
<!-- NO GROUP -->
</if>
</if>
</if>
</if>
</if>
</if>
<!-- END - TEST FOR AVATAR HACK -->



Allan,

Can you upload the PSD file and the fonts please?

Thanks...

KristerSwe 01-07-2007 04:48 PM

Hello all.
Am new about this and like this mod alot and can someone
provide us newbies with a How to and final code for this
wonderful hack ...

Thanks " "Hat off"Ladies and gentlemen"Well done"


All times are GMT. The time now is 03:08 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.01269 seconds
  • Memory Usage 1,768KB
  • 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
  • (2)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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