![]() |
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 |
Nice hack Bobo;)
It's nice to see you're making your own hacks now,great work. |
Great hack 'Gamingforce'. I was busy with something like that aswell, now it spares me some time :up:. Thanks
|
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: |
its called upgrade man ;)
|
Quote:
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: |
I am too dumb to know how to add things in phpmyadmin.
But I do need this, as my avatar size is 400x65 |
Quote:
Thanx Gamingforce going to ad this one:) |
Nice Hack...
Satan |
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|