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.
Da GoTTi, you must either have a version that states 2.0 or higher, or as gopher just said "bundled (2.0 compatible)", which just means he's running the latest version of PHP which comes pre-installed with it.
Any version of GD below 2.0 will not work.
Gopher, I noticed a few bugs you mentioned in your post #47, and will be updating the hack shortly.
The zip has been updated with version 1.2, with the added file of update1.2.txt. This small update basically fixes an issue with submitting only your comments field, but leaving your photo field blank, and it giving you a verification notice.
Basically the comments field is not verified, only the photo is, since I think having to verify the comments field is going alittle out of bound.
Quote:
I may be missing something, but is the system supposed to send an email when the verification option is turned on?
I see them in the Verify section in the admin cp, but never received an email. All other emails from the system are working just fine.
Then again, I don't know if emailing the admin was a built-in option?
I'd hate to have photos waiting for verification for too long..
You seemed to be quite confused on how this works. First of all, there is no email sent to you. Via your index page of admin cp, when first entering, if you have received new unverified photos to your gallery there is a small notice in the upper left corner of the page notifying you how many unverified photos there are (hence the file edits to admin/index.php). If a member submits a photo, you will get no email, you simply have to be sure to check the admin cp regularly and then go to the pverify.php page to approve them.
Warning: move_uploaded_file() [function.move-uploaded-file]: open_basedir restriction in effect. File(/tmp/vbaee4c33b7) is not within the allowed path(s): (/home/www/netsh2/) in /home/www/netsh2/html/vbtest/member.php on line 1020
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/tmp/vbaee4c33b7) is not within the allowed path(s): (/home/www/netsh2/) in /home/www/netsh2/html/vbtest/member.php on line 1024
Originally posted by Velocd You seemed to be quite confused on how this works. First of all, there is no email sent to you. Via your index page of admin cp, when first entering, if you have received new unverified photos to your gallery there is a small notice in the upper left corner of the page notifying you how many unverified photos there are (hence the file edits to admin/index.php). If a member submits a photo, you will get no email, you simply have to be sure to check the admin cp regularly and then go to the pverify.php page to approve them.
Yea, I had a feeling there wasn't an email sent but wasn't sure - I didn't see the notice in admin cp, but I'll look closer next time.
Anyone want to take a stab at adding email to this? I like how photopost works, it sends an email that a new photo needs verification and includes the link to the verify page.
I am in admin quite a bit, but not enough to be able to properly watch the system for new pics. I guess I could turn verify off as well and rely on users to let me know if someone uploads porn or something like that :squareeyed:
Originally posted by Cheffe I got the following warning
Code:
Warning: move_uploaded_file() [function.move-uploaded-file]: open_basedir restriction in effect. File(/tmp/vbaee4c33b7) is not within the allowed path(s): (/home/www/netsh2/) in /home/www/netsh2/html/vbtest/member.php on line 1020
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/tmp/vbaee4c33b7) is not within the allowed path(s): (/home/www/netsh2/) in /home/www/netsh2/html/vbtest/member.php on line 1024
Just installed this hack.. took a while. Then I realized my system is hosted on a windows box and is not capable of running GD. Well, I modified some of the scripts and got the members photo album to work, just couldnt use the thumbnails. Modified gdresize and member.php