Register Members List Search Today's Posts Mark Forums Read

Closed Thread
 
Mod Options
Custom Avatars as Files Details »
Custom Avatars as Files
Mod Version: 1.00, by Cocomiel (Member) Cocomiel is offline
Developer Last Online: Mar 2005 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 2.2.x Rating: (0 vote - 0 average) Installs: 17
Released: 18 Sep 2001 Last Update: Never Downloads:
Not Supported  

Custom Avatars As Files Hack for VB 2.2.1
BASED ON THE KIER'S HACK

Description: This hack lets you store custom avatars in a separate folder rather than in the VBulletin database, saving space & querys in your MySQL database

Here are some of the features:
  • Allows to switch between file mode & database mode on the fly
  • You can specify the custom avatar folder
  • No SQL queries or PHP code required to display custom avatars
  • If you use the Apache Web Server, the avatars folder can be protected by .htaccess thus preventing bandwidth stealing
  • No cacheing issues with Internet Explorer 5.5
  • 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.

Intructions:
Upload install_fileavatar.php to your ADMIN directory and open it in your browser, then follow the screen instructions.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Custom Avatars as Files (updated for vBulletin 2.2.2) Kier vBulletin 2.x Full Releases 228 22 Sep 2004 00:29
[RE-RELEASE custom avatars-as-files] ztsky vBulletin 2.x Full Releases 1 30 Jul 2001 22:59

Comments
  #2  
Old 18 Sep 2001, 23:24
TheFox
Guest
 
EXCELLENT HACK !!!

WORKS GREAT!

THANKS MAN
  #3  
Old 19 Sep 2001, 10:59
grumpy grumpy is offline
 
Join Date: Nov 2001
There seems to have been a slight problem with the database, etc etc

I backed it up first and then started from scratch, still got the same error.

I admit I don't know anything about php, but I'm curious about the coding in the instructions. For example, you say to find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and replace with:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


As I say, I don't know PHP, but every instance I've seen of else is enclosed as } else {, but not in your script. Could this cause the error?

thanks
  #4  
Old 19 Sep 2001, 11:15
grumpy grumpy is offline
 
Join Date: Nov 2001
Ah, received my tech error email, it shows:

Database error in vBulletin Control Panel: Invalid SQL: ALTER TABLE user ADD
avatarrevision INT (6) UNSIGNED DEFAULT '0' not null AFTER avatarid
mysql error: Duplicate column name 'avatarrevision'
mysql error number: 1060

  #5  
Old 19 Sep 2001, 16:23
TheFox
Guest
 
Grumpy:

if - else statements are not necessary enclosed by '}{'

I recommend you start from the original VB version ( unhacked ), and follow the instructions carefully.
  #6  
Old 19 Sep 2001, 16:30
Cocomiel's Avatar
Cocomiel Cocomiel is offline
 
Join Date: Nov 2001
The second error you get is because you have the hack already installed, i will add code handle this in the next release.

If someone else is getting that error please tell.
Thanks, Cocomiel
  #7  
Old 19 Sep 2001, 17:28
grumpy grumpy is offline
 
Join Date: Nov 2001
Not sure if this will help, but the error I posted from the tech email was from the first attempt.


thanks for your help
  #8  
Old 19 Sep 2001, 17:40
Cocomiel's Avatar
Cocomiel Cocomiel is offline
 
Join Date: Nov 2001
Ok, that explains everything.

The error appears because you already have an avatarrevision field in your database, that is because you already instaled another hack that added that field.

if you have phpMyAdmin instaled, select to your database
and in the USER table delete the 'avatarrevision' field

then go to the SETTINGS table and delete the last two fields

But, as previously was mentioned I suggest you to begin installing the hack with a clean VB.
  #9  
Old 20 Sep 2001, 13:48
xtrim xtrim is offline
 
Join Date: Nov 2001
Avatar categories compatible?

Hi,

Great work on this hack cocomiel.

I have not get into this or installed yet, but I was wandering if this hack could be made compatible or is already compatible with the avatar categories hack posted.

I dunno if its got anything to do with the code involved but I would like to know if both hacks could be installed to work together.

Thank you.
  #10  
Old 20 Sep 2001, 16:29
Cocomiel's Avatar
Cocomiel Cocomiel is offline
 
Join Date: Nov 2001
Xtrim, I dont know anything about that hack, but i will try to make it compatible in the next release
  #11  
Old 20 Sep 2001, 17:49
Cocomiel's Avatar
Cocomiel Cocomiel is offline
 
Join Date: Nov 2001
I've looked into the installation.txt of that hack and since it only applies to avatars uploaded by the admin should work with my hack without problems.
  #12  
Old 20 Sep 2001, 19:23
DarkReaper DarkReaper is offline
 
Join Date: Oct 2001
Installation took about 20 minutes(I forgot to download the files from the server, so I was using old versions - different comp) and it worked perfectly.

Thanks!
  #13  
Old 21 Sep 2001, 22:34
Nupraptor's Avatar
Nupraptor Nupraptor is offline
 
Join Date: Nov 2001
Would other hacks interfere with this one? I want to know before I install it.
  #14  
Old 21 Sep 2001, 22:43
Cocomiel's Avatar
Cocomiel Cocomiel is offline
 
Join Date: Nov 2001
Smile

As long as i know it will no interfere with any other hacks.
  #15  
Old 21 Sep 2001, 22:48
Nupraptor's Avatar
Nupraptor Nupraptor is offline
 
Join Date: Nov 2001
Ok. Just asking because I saw this statement:
I recommend you start from the original VB version ( unhacked ), and follow the instructions carefully.
Also, is the step involving the "chmod" vital? Because I can't do that for the time being.
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 22:56.

Layout Options | Width: Wide Color: