Version: 1.00, by Velocd
Developer Last Online: Nov 2023
Version: 2.3.x
Rating:
Released: 03-02-2003
Last Update: Never
Installs: 102
No support by the author.
vB Member Photo
by Velocd
This hack, as well all my other vB2 hacks, I no longer provide support for (being I run vB3 and it's too much hassel to debug vB2). When vB3 Release Candidate comes out, by request I might convert some of my hacks.
Updates:
Latest update was version 1.3b on 08.01.03.
Description:
It's been ages since my last hack, due to my lack of time for coding lately. This feature here though is one I developed for my forum about a week ago, and just recently completed making the instructions for it so I could release it on vBulletin.org.
Just as the name implies, this hack will allow your members to upload a photo of themselves (or whatever you allow), then that photo will be stored in a directory of your website. In addition to just the photo, using the GD2.0 Library, thumbnails are generated corresponding to each members photo and placed inside the directory. A new link via the memberlist nav page will then be able for access to view these images all organized neatly in a photo gallery.
In addition to just this, there is a verification system integrated with the ACP for easy checking of images the members upload, before they are placed in the photo gallery.
The main reason I developed this hack is because all the other photo gallery hacks are pretty.. well, ineffective.
Features:
Utilizes GD2.0 to automatically generate thumbnails for your uploaded images
Organized photo gallery with a very easy-to-browse interface
Verification system allows efficient methods of regulating what is shown in the photo gallery
A wide variety of customizable options via the Admin CP
Requirements/Restrictions:
GD2.0 Library is absolutely needed, which comes pre-installed with the latest PHP version, 4.3.0.
This script does not support multiple-image uploads, and I will not be releasing a version of this hack does!
Because the GD library does not support the GIF image format, the photo gallery does not either. The only images that can be uploaded are PNG and JPG. (I hardly think this will be an issue for the most of us)
Installation:
Upload install_photo.php to your admin directory, and run it through your browser. All instructions for this hack are listed in there.
After the hack is installed, go to your "admin cp -> options" page and set the member photo gallery options to your own preference.
Screenshots:
Refer to the next several posts.
---------------
If you use this hack, please remember to click install!
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
This only allows one photo upload per member although I have this set to allow 100 per user in the admin cp....any ideas on what is wrong?
You must have mistaken the option in the Admin Control Panel, as there is nothing that allows members to upload more photos in this hack. The only options available via Admin CP are those shown in the following screenshot:
Or something similar and place this in the code chunk area in member.php where the main code goes. Just change the X variable to whatever usergroup value you want to restrict.
Quote:
I got this error when uploading a pic
Fatal error: Call to undefined function: imagecreatefromjpeg() in D:\WebPublic\allhiphop\community\gdresize.php on line 5
Once again, GD2.0 is required for this hack to work, and must be enabled with JPG and PNG support.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>
How do u make it so when a user deletes the picture outa the database.. it will delete his/her picture from your harddrive..
Because right now it wont delete the pics on the hdd when a user changes pic... :S
I just noticed this bug in the code, so if a user manually deletes their photo via the link that says "[Remove this photo from the database]," it will remove the data from the database but not remove it from the server. This has been fixed, and the zip has been updated with update1.3.txt file.
I recommend browsing through your memberpics directory and deleting those old files not being used by members presently in the photo gallery.