vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Standard Fixed Avatar Size Hack? (https://vborg.vbsupport.ru/showthread.php?t=88874)

imported_NietzscheKid 04-07-2004 12:00 PM

Standard Fixed Avatar Size Hack?
 
Hello everyone,

I am looking for a hack that allows a fixed avatar size.

Example:

My fixed settings for the forum:

- 200x200
- xxxx kb

If someone uploads an avatar from their hard-drive or from an url that is bigger than the settings I mentioned above, e.g. an image with the size of 400 something, then it will show up as 200x200 regardless of the size of the picture.

The problem I have is that we have 6,000 members and many have HUGE avatars. But I don't want every single one of them to re-set their avatars and change them manually because it would mean more work for me as many don't even know how to reset a size of a pic. So, what I really would love to have is the option for people to enter their avatars of any given size and the forum will automatically show a standard size of 200x200.

Is there a hack for this already perhaps and I just didn't find it?

If not, is there a possibility to create such a hack? A few years ago, I was still running the horrible YaBB software and this software had something like this as a standard feature. So, I suppose it is possible to make such a hack for VB3 as well?

Anyway, thank you for any help you can give me. :)

Best regards,

NietzscheKid

Logikos 04-07-2004 12:52 PM

In your postbit template find:

HTML Code:

                        <if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
Replace with:
HTML Code:

                        <if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]" width="xx" height="xx">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
Replace xx with the new rule your enforcing. Hope this helps.

Vb-Hispano 04-09-2004 05:01 PM

no working :(


All times are GMT. The time now is 11:47 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.01241 seconds
  • Memory Usage 1,715KB
  • 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_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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