vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Mini Mods - Showgroups with Avatars (https://vborg.vbsupport.ru/showthread.php?t=221275)

Kolbi 08-18-2009 10:00 PM

Showgroups with Avatars
 
1 Attachment(s)
Search in the template showgroups_usergroupbit
Code:

<td class="$bgclass">$user[onlinestatus]>
add after
Code:

<br />
<if condition="$vbulletin->options['usefileavatar']">
    <if condition="$user['avatarrevision']"><img src="$vboptions[avatarurl]/avatar$user[userid]_$user[avatarrevision].gif" title="$user[username]'s Avatar" alt="Avatar" border="0" /></if>
<else />
    <img src="image.php?u=$user[userid]&amp;dateline=$avatar[dateline]" title="$user[username]'s Avatar" alt="Avatar" border="0" />
</if>

The attached product is for people who use the TMS.
Product and template edits will be included automatically then.

It will look like:
Demo

For people how want to have a fixed avatar width:
Code:

<br />
<if condition="$vbulletin->options['usefileavatar']">
    <if condition="$user['avatarrevision']"><img src="$vboptions[avatarurl]/avatar$user[userid]_$user[avatarrevision].gif" title="$user[username]'s Avatar" alt="Avatar" border="0" width="XX" /></if>
<else />
    <img src="image.php?u=$user[userid]&amp;dateline=$avatar[dateline]" title="$user[username]'s Avatar" alt="Avatar" border="0" width="XX" />
</if>

Just remove the XX from width="XX" and replace it with the width you want to have shown in the showgroups.
The attached product is without this fixed width!
But this is only neccessary if you allow for example your moderators another size for their avatars than your administrators have.

Matthias

ITDarasgah 08-19-2009 05:10 PM

good ....very nice let me try

students_forum 08-20-2009 03:11 PM

This is a nice little feature
Thanks

Faizan 08-21-2009 02:00 AM

really appricated dear

DubaiZone 08-21-2009 09:18 PM

Nice But really you know ..
The image size will be problem to us ..
Coz some avatars would be larg and big and some might be small
the result will be big miss in the Showgroups ..
But THANK YOU for the MOD ..

Kolbi 08-23-2009 05:19 PM

Quote:

Originally Posted by DubaiZone (Post 1871842)
Nice But really you know ..
The image size will be problem to us ..
Coz some avatars would be larg and big and some might be small
the result will be big miss in the Showgroups ..
But THANK YOU for the MOD ..

If you tell me which size the avatars should be, I can modify it for you.

Kolbi 10-12-2009 07:34 PM

Little update for people how want to have a fixed width of their shown avatars in the showgroups :)

danyxxx 09-13-2011 02:23 PM

Nice modification, installed !

RRCamellini 11-11-2012 09:26 PM

thx a lot my friend


All times are GMT. The time now is 07:33 AM.

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.01101 seconds
  • Memory Usage 1,727KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete