View Full Version : Improved Avatar Settings...
Chris M
04-19-2003, 10:00 PM
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 (http://www.gamernation-uk.com/forums/index.php?&gamer=2) (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:)
Latest version
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
Mephisteus
04-20-2003, 01:44 PM
similar already exists :)
https://vborg.vbsupport.ru/showthread.php?threadid=35933
assassingod
04-20-2003, 03:14 PM
Worked fine when I installed it.
Good work
Chris M
04-20-2003, 05:51 PM
It does???
Ah well - This one is guaranteed to work with vB 2.3.0...
Satan
The_Wanderer
04-20-2003, 07:10 PM
lol.. too bad satan :p
nice hack though...
Chris M
04-20-2003, 09:03 PM
At least this one is guaranteed to work with 2.3.0 (tested on clean install & hacked vB)
Satan
zajako
04-20-2003, 10:32 PM
Not to mention all others i have seen are buggy
Boofo
04-21-2003, 02:50 AM
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
Mephisteus
04-21-2003, 09:28 AM
And again, it's boofo who notices :P
Boofo
04-21-2003, 09:35 AM
Today at 04:28 AM DarkSSJ3 said this in Post #9 (https://vborg.vbsupport.ru/showthread.php?postid=385031#post385031)
And again, it's boofo who notices :P
That's what happens when you get old. You have more time to notice the un-important things in life. Someone has to keep you young-uns on your toes. ;)
Chris M
04-21-2003, 11:25 AM
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
Boofo
04-24-2003, 08:01 AM
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?
Chris M
05-08-2003, 02:55 PM
@Boofo - Run this query:
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'
;)
Satan
Boofo
05-09-2003, 12:53 PM
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?
Chris M
05-09-2003, 03:29 PM
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
Boofo
05-09-2003, 03:33 PM
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
Chris M
05-10-2003, 10:13 PM
Ok - Delete the top one;)
Satan
Dark Shogun
05-19-2003, 02:04 AM
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
Verity
06-01-2003, 05:43 PM
05-19-03 at 04:04 AM Dark Shogun said this in Post #18 (https://vborg.vbsupport.ru/showthread.php?postid=397003#post397003)
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
Same here.
Dark Shogun
06-01-2003, 07:34 PM
I just made the template and it seems to work fine.
Dark Shogun
Chris M
06-01-2003, 08:30 PM
@Dark Shogun - I am sure that is a vB default template:eek:
Satan
Verity
06-01-2003, 09:14 PM
Today at 10:30 PM hellsatan said this in Post #21 (https://vborg.vbsupport.ru/showthread.php?postid=403075#post403075)
@Dark Shogun - I am sure that is a vB default template:eek:
Satan
Where would you find that then?
Thanks for helping,
Verity
Chris M
06-02-2003, 06:49 PM
Perhaps it may be an error template which I forgot to add the "error_" in front of...
Satan
Chris M
06-02-2003, 06:51 PM
Ah yes:)
Please clear your cache, and re-download the file in the first post:)
Satan
Verity
06-05-2003, 01:28 AM
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.
Chris M
06-05-2003, 07:41 AM
Can you check your database, and confirm that the settings are present please?:)
If they are, try replacing (temporarily) the $avatarmaxheight variable with:
$maximages
This is another vBulletin Options variable...
If this variable is parsed, so the code becomes (10 being vB's default setting for the maximum number of images per post/signature)
That image is too large. The maximum dimensions are by 10 pixels.
then there is a problem with this hack which I will try and investigate...
If you get
That image is too large. The maximum dimensions are by pixels.
then there is a problem with your board and the way it parses the variables stored in the vBulletin Options:)
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.
csidlernet
06-06-2003, 09:44 PM
Thanks very much. i'm installing iT!
Chris M
06-07-2003, 09:01 AM
@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
Pikok
07-21-2003, 12:59 AM
04-24-03 at 10:01 AM Boofo said this in Post #12 (https://vborg.vbsupport.ru/showthread.php?postid=386310#post386310)
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: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='137'Rather than: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'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..
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 varname='avatarmaxdimension'UPDATE setting SET displayorder='7' WHERE varname='avatarmaxsize'UPDATE setting SET displayorder='8' WHERE varname='numavatarshigh'UPDATE setting SET displayorder='9' WHERE varname='numavatarswide'INSERT INTO setting (settingid,settinggroupid,title,varname,value,desc ription,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. ;)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.