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
Details »»

Version: , by Kier Kier is offline
Developer Last Online: May 2011 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 03-18-2001 Last Update: Never Installs: 52
 
No support by the author.

Updated for vBulletin 2.2.2, 5th February 2002

Since there has been so much demand for this, I wrote a hack that will allow you to store all your custom avatars as files, rather than in the mySQL database.



Doing this will have the following benefits:
  • Avatars folder can be protected by .htaccess (Apache only) to prevent bandwidth stealing
  • No SQL queries or PHP code required to display custom avatars - server load decreases
  • No cacheing issues with Internet Explorer 5.5, so server bandwidth use should decrease
The install script will make the necessary modifications to your database, install a control panel option to switch the file-based avatars on, and convert your existing custom avatars from the database into files.

All avatar options that are present when using the standard mySQL avatar system are still present, and users will not notice a difference in the interface.

Full instructions for altering your PHP files are included in the zip file.

Once you have made the necessary modifications to the PHP scripts, you should run the enclosed install_favatar.php script from your admin/ folder.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #202  
Old 02-28-2002, 11:48 AM
Jawelin Jawelin is offline
 
Join Date: Nov 2001
Posts: 557
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*^ BUMP ^*
irate:
Reply With Quote
  #203  
Old 03-10-2002, 09:02 AM
newvbuser newvbuser is offline
 
Join Date: Jan 2002
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone used this hack with 2.2.3b vb?
Reply With Quote
  #204  
Old 03-10-2002, 06:56 PM
atrl's Avatar
atrl atrl is offline
 
Join Date: Oct 2001
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried installing it but had some problems, But it may have just been me
Reply With Quote
  #205  
Old 03-11-2002, 01:01 AM
atrl's Avatar
atrl atrl is offline
 
Join Date: Oct 2001
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Kier, Does this work with Vbulletin 2.2.4, cause I just installed 2.2.4 and I wanna know if it works on it?
Reply With Quote
  #206  
Old 03-24-2002, 07:23 AM
MaSTaKiLLaH MaSTaKiLLaH is offline
 
Join Date: Oct 2001
Location: Hannover, Germany
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I always get the errormessage from the error_avatarnotimage template.

Any idea ?
Reply With Quote
  #207  
Old 03-24-2002, 07:59 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by atrl
Kier, Does this work with Vbulletin 2.2.4, cause I just installed 2.2.4 and I wanna know if it works on it?
Works fine with my forums using vB 2.2.4
Reply With Quote
  #208  
Old 03-27-2002, 12:23 PM
Wayne2k1.com's Avatar
Wayne2k1.com Wayne2k1.com is offline
 
Join Date: Nov 2001
Location: Italy
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

BE AWARE

vBulletin 2.2.4 users

In both the first step of PHP editing (private.php and announcement.php and admin/functions.php) and the last one (/(admin/user.php) the last line is NOT:

Code:
} else
but

Code:
} else {
Just a warning
Reply With Quote
  #209  
Old 04-15-2002, 04:22 AM
newvbuser newvbuser is offline
 
Join Date: Jan 2002
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey is this hack causing any probs with generating email lists, or mass emailing group functions?

Mass emailing does notwork for me but the only major hack I have is this hack and nothing else so I am a bit worried as to why mass email is not working
Reply With Quote
  #210  
Old 04-25-2002, 10:10 AM
Jawelin Jawelin is offline
 
Join Date: Nov 2001
Posts: 557
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi. I've been using this hack for months without any problem, even mixing with other avatar-related ones...

Suddendly, some days ago, I noticed some mis-function with the custom avatar upload by an user.
Infact, with vb2.2.5, I noticed which follows:[list=1][*]Avatarrevision field in user table isn't incremented (it lasts 0)[*]Row in customavatar table is correctly added[*]New image file (avatarXX_R.gif/jpg) isn't copied into custom avatar directory[*]The new avatar is correctly displayed near the username everywhere [ getavatarurl() function ], but the url of the image isn't a file but avatar.php?userid=xx&dateline=1019732362 ... This means the hack isn't effective this case.[*]Old uploaded avatars with files in custom directory (and the correct avatarrevision value in the user table) still work correctly. The url of file is actually linked.[/list=1] --- > I think the problem is in member.php but I double-checked your instructions and didn't found any mistake...

Could you help me ?

Thank you very much
Bye

P.S.: custom avatars are ALWAYS stored into directory as .gif files, both gif and jpg types. Reason is obvious, but could it be a (another than above described one) problem to browser to correctly decode the img format when displaying it ?
Thanks again.
Reply With Quote
  #211  
Old 06-04-2002, 11:11 PM
Colon33
Guest
 
Posts: n/a
Default

Warning: open_basedir restriction in effect. File is in wrong directory in /usr/local/psa/home/vhosts/forums.gamer-pit.com/httpdocs/admin/user.php on line 706

I keep getting this whenever i try uploading an avatar or linking one. The image appears broken with the URL pointning to avatar.php rather than the file itself. All directories are CHMOD'd to 777
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 07:47 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04433 seconds
  • Memory Usage 2,305KB
  • 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
  • (2)bbcode_code
  • (1)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
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (10)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