vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Avatar size linked to Usergroup? (https://vborg.vbsupport.ru/showthread.php?t=48573)

disfitness 02-05-2003 11:58 PM

Avatar size linked to Usergroup?
 
Hi, I've searched the forum and hacks DB, but so far I haven't found a hack that links the size of avatars to the usergroup. For example I want to have a "Special" usergroup, where avatars will be 65x65 instead of the standard 50x50.

Any ideas on how I can do this?

:)

Steve Machol 02-06-2003 12:05 AM

FYI, vB 3.0 will have this feature.

disfitness 02-06-2003 12:08 AM

Right thanks - any ideas in the meantime?

Steve Machol 02-06-2003 12:26 AM

For that, you'll need to hope someone can write a hack for this. That ain't my forte.

disfitness 02-06-2003 12:35 AM

I'll keep my fingers crossed that someone takes pity on me :p

Steve Machol 02-06-2003 12:41 AM

Well I pity you. I just can't help you. :D

disfitness 02-06-2003 01:01 AM

Lol, this thread is getting long without a hack in sight!

:cheeky:

disfitness 02-07-2003 02:13 PM

If I offered to pay someone for this hack? Would that help?

:nervous:

disfitness 02-11-2003 06:49 AM

Am I doing something wrong? I thought people would be able to help? :cry:

Steve Machol 02-11-2003 03:51 PM

Probably no one wants to take the time to write up a custom hack since this is going to be in vB 3.0,

disfitness 02-11-2003 08:50 PM

Lol @ Steve... you keep getting my hopes up and then I find out its you :p

I read yesterday that this wasn't going to be included in Version 3 - also I can't really wait until they finally release it... :( A date would be nice... rofl

Steve Machol 02-11-2003 09:13 PM

Hmmm....

Steve Machol 'Destoyer of hope'

It has a nice ring to it! ;)

disfitness 02-16-2003 03:22 PM

Damn, I bumped my head on the car door today...

Oh yeah, anyone want to make this mod for me? I have $$ :smoke:

disfitness 02-16-2003 07:15 PM

I think that bump on my head helped, cos I "hacked" it myself

Open member.php and find...

PHP Code:

      if ($filename!="") {
        
// check valid image
        
if ($imginfo=@getimagesize($filename)) {
          if (
$imginfo[0]>$avatarmaxdimension or $imginfo[1]>$avatarmaxdimension) {
            @
unlink($filename);
            eval(
"standarderror(\"".gettemplate("error_avatarbaddimensions")."\");");
          } 

add above it...

PHP Code:

if ($bbuserinfo['usergroupid']==9)
 {
   
$avatarmaxdimension "65" ;
  } 

This would set anyone in usergroup 9 to be allowed avatars of 65x65 and everyone else would have the default specified in admin console. If you use this then PM me so I can feel proud ;)

:squareeyed:

ryancooper 04-25-2003 01:47 AM

I am going to try this tomorrow. Hope it works!!


All times are GMT. The time now is 12:33 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.01177 seconds
  • Memory Usage 1,738KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (15)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