![]() |
Improved Avatar Settings...
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 |
|
Worked fine when I installed it.
Good work |
It does???
Ah well - This one is guaranteed to work with vB 2.3.0... Satan |
lol.. too bad satan :p
nice hack though... |
At least this one is guaranteed to work with 2.3.0 (tested on clean install & hacked vB)
Satan |
Not to mention all others i have seen are buggy
|
Chris, should the following line be in the top of the file in your first post here? ;)
"Disable Search" does not Disable "Get New Posts "- by hellsatan |
And again, it's boofo who notices :P
|
Quote:
|
Lol...
Ah well - Instead of creating new files, I copy the files so I keep a regular format;) I'll change it eventually:p Satan |
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? |
@Boofo - Run this query:
[sql]UPDATE setting SET settinggroupid=26,title='Maximum Width',varname='avatarmaxwidth',value='80',descrip tion='Maximum width (in pixels) that the custom avatar image can be.',optioncode='',displayorder='5' WHERE settingid='139'[/sql] ;) Satan |
I ran that query and it is still there. What I need to know is do I need to leave it there or should I go into the setting.php and remove it?
|
You need to change it to have the following attributes:
Title - Maximum Width Variable Name - avatarmaxwidth Value - However wide you want it! Description - Maximum width (in pixels) that the custom avatar image can be. Type of code thing - Leave it blank;) Display order - 5 :) Satan |
Here's what I have for 5, 6, 7, 8:
Maximum Dimensions Maximum width and height (in pixels) that the custom avatar image can be. Maximum Width Maximum width (in pixels) that the custom avatar image can be. Maximum Height Maximum height (in pixels) that the custom avatar image can be. Maximum File Size The maximum file size (in bytes) that an avatar can be. 1 KB = 1024 bytes 1 MB = 1048576 bytes |
Ok - Delete the top one;)
Satan |
There is a template in your instructions that I don't have. That template would be: avatar_baddimensions. Do I make it or am I to delete something else?
Dark Shogun |
Quote:
|
I just made the template and it seems to work fine.
Dark Shogun |
@Dark Shogun - I am sure that is a vB default template:eek:
Satan |
Quote:
Thanks for helping, Verity |
Perhaps it may be an error template which I forgot to add the "error_" in front of...
Satan |
Ah yes:)
Please clear your cache, and re-download the file in the first post:) Satan |
Perfect hack!! Works like a charm.
Thanks! |
It doesn't work on my vb2.3.0
it looks like that the code don't pick up the values of both fields : That image is too large. The maximum dimensions are by pixels. $avatarmaxwidth by $avatarmaxheight stay empty, while i see the right numbers in my panel. |
Can you check your database, and confirm that the settings are present please?:)
If they are, try replacing (temporarily) the $avatarmaxheight variable with: Code:
$maximages If this variable is parsed, so the code becomes (10 being vB's default setting for the maximum number of images per post/signature) Quote:
If you get Quote:
Hopefully, whatever the problem, it can be corrected:) Satan |
Hey Hellsatan, thanks for the support.
I changed the $avatarmaxheight with $maximages and the screen say after trying to upload an avatar: That image is too large. The maximum dimensions are by pixels. To give you some extra info, when I did run the first time the SQL queries i did run them as the original with the your dimensions, then I realized I didn't want these dimensions and change the queries to my dimensions and run the two queries again. Has this second move any influence on the working of the hack? I also have checked again the database and here I have attached a screencopy to show they are in place. For me to run my board normal, I have put the original member.php back in place. If you want access to my site and database, please PM me your email and I will send you the info. |
Thanks very much. i'm installing iT!
|
@xug - You should remove the "avatarmaxsize" setting as that is no longer required;)
That might have affected it, as the settings do not know which to choose... The fact that a global variable did not work surprises me alot - $maximages should have displayed a number, even when set to 0 it will display 0 when called... Maybe this is a bug induced by an edit to your global.php file? If I were you, I would try uploading a fresh global.php, then re-adding any hacks you have added one by one, each time checking if the $avatarmaxwidth and $avatarmaxheight variables will work:) Satan |
Quote:
PHP Code:
PHP Code:
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:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
All times are GMT. The time now is 01:58 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|