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.
u can resize the orignal image if it's file size is bigger than the max size
in member.php looks for
PHP Code:
if ($filename!="") {
// check valid image
if ($imginfo=@getimagesize($filename)) {
if ($imginfo[0]>$photomaxdimension or $imginfo[1]>$photomaxdimension) {
.
.
.
.
..
}
if ($imginfo[2] != 2 and $imginfo[2] != 3) {
@unlink($filename);
eval("standarderror(\"".gettemplate("error_photonotimage")."\");");
}
lord help me.. It says I need GD 2.0, or course, how would I go about installin this.. don?t laugh too hard
Heh, you'll have to go to the GD-website for help on that, for I have a hosted server and little experience on how to install PHP libraries. Maybe Zend.com, PHPBuilder.com, or Evolt.org will have some easy-to-follow tutorials.
Quote:
Is there a way an admin can manually add someone's pic to the gallery?
Manually? Yes. Here are the steps:
You will have to temporarily have your photo erased, or you can create a test account, for this is the quickest way to do this. Go to your usercp -> modify photo, and upload the photo you wanted to do manually for someone else.
Go into PhpMyAdmin, and run this query:
Code:
SELECT * FROM `memberphoto` WHERE userid='your_userid'
Ensuring to replace 'your_userid' with your userid.
Once you find the entry, edit the userid and/or comments field to that other members preference, making sure to replace the userid with their userid, not yours. Submit the changes.
Run the following query:
Code:
SELECT photonum,phototype FROM `user` WHERE userid='members_userid'
This time round, make sure 'members_userid' is their userid.
Edit the entry, and change photonum to 1, and phototype to "jpg" if the uploaded image was a JPG, or "png" if it was a PNG.
Via FTP, browse to your memberpics dirctory, and find the thumbnail for the image, which should be in the format:
Code:
thumb$YourUSERID_$PhotoNUM.PhotoTYPE
Replace those variables with the members userid, photonum, and phototype.
You now need to find the actual full-size image, located in the same directory prefixed with "photo", and make the same similar changes to it.
All should be good to go. If you were doing this under your account, you may want to re-upload your image if you had overwritten it.
can everybody tell me why my signature Hack, work now with 256 color, after ich install GD2.0 (have install a new bundel PHP 4.3.1 with new Apache and mysql)
before install this bundel my signature Hack works with more Color's.
ok i just had a stupid idea... maybe my admin control over the pics is not there because im running 2.2.9? if i turn verify photos, everything works fine, people can upload their photos and what not and everything is displayed ok
I love this hack.. have it up and running on our dev site.. wish I could show you all, as I've tweaked it (like we do with all things on our site) and am currently incorperating it into our member of the week section... (auto rotation)
This will make the comments a clickable link to the photo.
Then u would have to delete the $getphoto[comments] where it originally is to avoid it being displayed double