vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Improved Avatar Settings... (https://vborg.vbsupport.ru/showthread.php?t=51875)

Pikok 07-20-2003 11:59 PM

Quote:

04-24-03 at 10:01 AM Boofo said this in Post #12
Chris, I added this hack but the

Maximum Dimensions
Maximum width and height (in pixels) that the custom avatar image can be.

is still in the options. Do I need to remove this or is it used somewhere else that it needs to stay there for?

The query should've been:
PHP Code:

UPDATE setting SET settinggroupid='26',title='Maximum Width',varname='avatarmaxwidth',value='80',description='Maximum width (in pixels) that the custom avatar image can be.',optioncode='',displayorder='5' WHERE settingid='137' 

Rather than:
PHP Code:

UPDATE setting SET settinggroupid=26,title='Maximum Width',varname='avatarmaxwidth',value='80',description='Maximum width (in pixels) that the custom avatar image can be.',optioncode='',displayorder='5' WHERE settingid='139' 

Setting 139 (at least in my database is Display Height (columns of avatars to display). So, when I ran the query as instructed in the install doc, I replace the Display Height setting with the Max Width setting. This resulted in the Max Dimensions still showing (as did with you), but also removed the Display Height setting from the control panel (as it was overwritten in the database).

I always backup the database before doing any hacks though, so I just dropped and restored row 139 and dropped the new row created for the Maximum Height setting, then ran the following queries and everything's fine now..
PHP Code:

UPDATE setting SET settinggroupid=26,title='Maximum Width',varname='avatarmaxwidth',value='80',description='Maximum width (in pixels) that the custom avatar image can be.',optioncode='',displayorder='5' WHERE varname='avatarmaxdimension' 

PHP Code:

UPDATE setting SET displayorder='7' WHERE varname='avatarmaxsize' 

PHP Code:

UPDATE setting SET displayorder='8' WHERE varname='numavatarshigh' 

PHP Code:

UPDATE setting SET displayorder='9' WHERE varname='numavatarswide' 

PHP Code:

INSERT INTO setting (settingid,settinggroupid,title,varname,value,description,optioncode,displayorderVALUES (NULL,26,'Maximum Height','avatarmaxheight','150','Maximum height (in pixels) that the custom avatar image can be.','','6'); 

You don't really have to run the 3 queries that change the display order, but I did just to be sure they showed up in the cPanel in the order I want. ;)


All times are GMT. The time now is 10:11 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.01576 seconds
  • Memory Usage 1,732KB
  • 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
  • (7)bbcode_php_printable
  • (1)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
  • (1)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