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)
-   -   Set avatar max width AND height (https://vborg.vbsupport.ru/showthread.php?t=35933)

Gamingforce 03-09-2002 10:00 PM

Set avatar max width AND height
 
http://www.gamingforce.com/forums/im...ff10/yuna1.jpg
On our message board, we use non square avatars with the size of 105x150 pixels as our official format like the example avatar above. I noticed that vBulletin doesn't allow you to set dimensions for both the width and height not letting you to set max dimensions for rectangular based formats. What this hack does is allow you to set both the width and height on uploaded avatars. Enjoy!

Tested on vBulletin 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.2.4
File to modify: member.php
Template to modify: error_avatarbaddimension
2 rows to insert into setting table in database

Edgar 03-10-2002 11:34 AM

Nice hack Bobo;)
It's nice to see you're making your own hacks now,great work.

Lesane 03-10-2002 11:38 AM

Great hack 'Gamingforce'. I was busy with something like that aswell, now it spares me some time :up:. Thanks

Gutspiller 03-30-2002 02:01 AM

I get this error when I run the query in my admin control panel:

Database error in vBulletin Control Panel: Invalid SQL: INSERT INTO `setting` (`settingid`, `settinggroupid`, `title`, `varname`, `value`, `description`, `optioncode`, `displayorder`) VALUES ('', '26', 'Avatar Maximum Width', 'avatarmaxwidth', '105', 'Use this to define the maximum height of an avatar.', '', '0');
INSERT INTO `setting` (`settingid`, `settinggroupid`, `title`, `varname`, `value`, `description`, `optioncode`, `displayorder`) VALUES ('', '26', 'Avatar Maximum Height', 'avatarmaxheight', '150', 'Use this to define the maximum width of an avatar.', '', '0');
mysql error: You have an error in your SQL syntax near ';
INSERT INTO `setting` (`settingid`, `settinggroupid`, `title`, `varname`, `va' at line 1
mysql error number: 1064
Date: Friday 29th of March 2002 08:56:19 PM
Script: /forumz/admin/query.php
Referer: http://www.theforumz.com/forumz/admin/query.php

Can somebody please help me with this error and how to get it working?

BTW I am running 2.0.3 if that makes a difference. :ermm:

Neo 04-04-2002 12:02 AM

its called upgrade man ;)

Gutspiller 04-04-2002 01:52 AM

Quote:

Originally posted by neo
its called upgrade man ;)
It's called there is no F***ing way I am reinstalling 50+ hacks just to have the latest version. :P

If somebody here made something that would allow you to push a button and it takes your current version and upgrades it tot he latest version, but KEEPS ALL YOUR HACKS INTACK, then maybe I would.... then again, something like that would be nearly impossible. :ermm:

Bad Bunny 04-20-2002 08:44 AM

I am too dumb to know how to add things in phpmyadmin.
But I do need this, as my avatar size is 400x65

-=dm=- 04-20-2002 10:58 AM

Quote:

Originally posted by Bad Bunny
I am too dumb to know how to add things in phpmyadmin.
But I do need this, as my avatar size is 400x65

damn your avatar size is 400x65?? :D

Thanx Gamingforce

going to ad this one:)

Chris M 04-20-2002 01:23 PM

Nice Hack...

Satan

Bad Bunny 04-20-2002 04:33 PM

Yes. Here is my forum, if you click on a thread you will see the why the avatar size is so unique.
http://community.neeto.org
Anyway, I know I can do the rest of the hack, except the mysql part. I don;t understand what it means to "Execute the following MySQL queries", and I don't feel like breaking my database.
Thanks.


All times are GMT. The time now is 09:17 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.01213 seconds
  • Memory Usage 1,733KB
  • 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_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
  • (10)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