Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Improved Avatar Settings... Details »»
Improved Avatar Settings...
Version: 1.00, by Chris M Chris M is offline
Developer Last Online: Feb 2013 Show Printable Version Email this Page

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.

Comments
  #22  
Old 06-01-2003, 08:30 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@Dark Shogun - I am sure that is a vB default template

Satan
Reply With Quote
  #23  
Old 06-01-2003, 09:14 PM
Verity Verity is offline
 
Join Date: May 2003
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 10:30 PM hellsatan said this in Post #21
@Dark Shogun - I am sure that is a vB default template

Satan
Where would you find that then?

Thanks for helping,
Verity
Reply With Quote
  #24  
Old 06-02-2003, 06:49 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Perhaps it may be an error template which I forgot to add the "error_" in front of...

Satan
Reply With Quote
  #25  
Old 06-02-2003, 06:51 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah yes

Please clear your cache, and re-download the file in the first post

Satan
Reply With Quote
  #26  
Old 06-05-2003, 01:28 AM
Verity Verity is offline
 
Join Date: May 2003
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Perfect hack!! Works like a charm.

Thanks!
Reply With Quote
  #27  
Old 06-05-2003, 04:12 AM
xug xug is offline
 
Join Date: Oct 2001
Location: The Grand Strand, SC
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #28  
Old 06-05-2003, 07:41 AM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
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)
Quote:
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
Quote:
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
Reply With Quote
  #29  
Old 06-05-2003, 12:34 PM
xug xug is offline
 
Join Date: Oct 2001
Location: The Grand Strand, SC
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #30  
Old 06-06-2003, 09:44 PM
csidlernet csidlernet is offline
 
Join Date: Apr 2003
Location: sydney
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks very much. i'm installing iT!
Reply With Quote
  #31  
Old 06-07-2003, 09:01 AM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:34 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
  • Page Generation 0.04611 seconds
  • Memory Usage 2,306KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete