Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

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
  #52  
Old 04-16-2001, 05:59 PM
CityNet
Guest
 
Posts: n/a
Default

Quote:
Originally posted by CityNet
Arrgh.. I did this hack, entirely as instructed and when going into the Change Profile page I get this:

Parse error: parse error in /usr/local/plesk/apache/vhosts/thecitynetwork.net/httpdocs/forums/member.php on line 1042

What happened?
Finally got around to installing Word and figuring out how to turn on line numbering... What? Line 1042 is just some commented file?

I tried uploading it again. It worked this time.. Thanks. ^_^

((EDIT: Tried entering a URL for an avatar and STILL keep getting "This is not a valid GIF or JPG file. Please ensure that it is and try again"

That's it... I'm going to cuddle up in a fetal position and just cry. Trying to get these avs to work is going to result in me tearing my hair out)
Reply With Quote
  #53  
Old 04-19-2001, 10:15 PM
SpankMe's Avatar
SpankMe SpankMe is offline
 
Join Date: Nov 2001
Location: New Zealand
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What we really need is a utility that will go through the MySQL dB and convert all image attachments to files and update the associated post. We could then cron it to run every so often.

I like allowing users to attach images but it is a REAL PAIN for them to download the images every time they visit the thread
Reply With Quote
  #54  
Old 05-10-2001, 11:05 PM
eiko
Guest
 
Posts: n/a
Default

After installing this hack (which is Awesome by the way)...
When you click a user's profile link, returns this error:

Warning: Object DB_site not found in /home/name/dir/forums3/member.php on line 1037

Fatal error: Member function used on a non-object in /home/name/dir/forums3/member.php on line 1037

RC2
Reply With Quote
  #55  
Old 05-11-2001, 08:33 PM
eiko
Guest
 
Posts: n/a
Default

anyone?
Reply With Quote
  #56  
Old 05-12-2001, 01:25 PM
eiko
Guest
 
Posts: n/a
Default

Maybe I asked this question in the wrong forum?
Reply With Quote
  #57  
Old 05-12-2001, 01:47 PM
eiko
Guest
 
Posts: n/a
Default

Well no wonder no one replied...
Sorry... BONEHEAD mistake on my part.

uhh...

in my best Gilda Radner.... Nevermind.
Reply With Quote
  #58  
Old 05-15-2001, 05:09 PM
Dakota's Avatar
Dakota Dakota is offline
 
Join Date: Oct 2001
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there anyway that there could be an option for just mods and admins be able to select custom avatars?
Reply With Quote
  #59  
Old 05-17-2001, 11:22 PM
TGO TGO is offline
 
Join Date: Oct 2001
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried to install this on RC3 and got a datbase error..I REALLY need this hack too. :\

BTW, the error is when I run the install script, I press Install and I get a database error. Whether I have created the custom_avatars directory or not..

Error is:
---
There seems to have been a slight problem with the database. Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.
----

Please help with this one Kier..
Reply With Quote
  #60  
Old 05-20-2001, 01:51 AM
ForzaGrifo
Guest
 
Posts: n/a
Default

Kier, I've got RC 3 too and I really want this hack. Will I get the same problem as TGO's? Thanks.
Reply With Quote
  #61  
Old 05-20-2001, 10:53 AM
Cid Kramer
Guest
 
Posts: n/a
Default

I'm in the same boat as TGO the hack is needed badly too, any help would be greatly apriciated.
Reply With Quote
Reply

Thread Tools

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 08:10 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.04551 seconds
  • Memory Usage 2,280KB
  • 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_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
  • (4)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