Version: 1.00, by Chris M
Developer Last Online: Feb 2013
Version: 2.3.x
Rating:
Released: 04-19-2003
Last Update: Never
Installs: 24
No support by the author.
Please do the following before attempting to install:
1.) Backup your Files before doing anything
2.) Be aware that although I have tested this myself, there may still be problems...If you do not backup your files, I cannot condone your install of this hack...
3.) If you want to Backup your Database, You can - There shouldn't be any need to...
The file you should have is:
install_improved_avatar_settings_txt.php
Install Info:
Hack Version: 1.0
Files to edit: 1
Templates to add: 0
Templates to edit: 2
Queries to Run: 2
Time to install: Approx 2 Minutes
Credits
Requested by - Nobody
Beta tested by - assassingod, myself
Support - I am offering support, but only in THIS THREAD...I unfortunately cannot be here during the coming weeks (Mon-Fri), so therefore you will have to rely on others for assitance, should it be urgent...If you do require assitance, please - Only reply in this thread
Hack info
What does it do? - Instead of the primative single avatar dimension setting, you can now set a sperate height and width setting - Much more practical, and now you can set avatars to have a good height restriction and still keep the width restriction so that it does not mess up your posts
Live Demo/Screenshots
There are no screenshots, but there is a live demo!
Gamer Nation Forums (ignore the style - it is a temporary one i threw together until we get our designer to do a good one!)
You can login to test the avatars out as:
Username: vB.org
Password: vbdotorg
The avatar restrictions there are 80 pixels width, 110 pixels height
[high]Latest version[/high]
Due to an mis-read of a template name, a template you were meant to edit was incorrectly named - Please download the updated file
Enjoy!
Satan
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
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,displayorder) VALUES (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.