Version: 1.00, by Velocd
Developer Last Online: Nov 2023
Version: 3.0.0
Rating:
Released: 04-09-2004
Last Update: Never
Installs: 100
No support by the author.
In vBulletin 3 there is an option for members to upload a profile picture. This hack provides more incentive for members to upload their picture, as it integrates a gallery to browse them all. :up:
In addition to browsing profile pictures, there is an option for viewing signatures. This comes in handy, for you don't have to browse through each individual member. Also, a "edit signature" link is provided for moderators, for fast access to editing signatures that aren't in accordance with your rules.
Other Features
Require pictures to be approved in order to be visible. You can exempt specified usergroups from this.
Thumbnails are generated for profile pictures. You must have GD installed and enabled via the AdminCP options page.
For more insight, refer to the attached screenshots, or install it!
Upgrade to 2.0
Redo steps 7-8, 11-12, 19-20, 26, 27, and 34
Revert the template "modifyprofilepic", and do steps 29-32
Run the following queries:
[sql]
ALTER TABLE `customprofilepic` ADD disapproved smallint(5) not null default'0';
ALTER TABLE `customprofilepic` ADD reason varchar(100) not null;
[/sql]
Notes
This hack does not support uploading multiple images per account.
Profile thumbnail sizes are defined by the attachment thumbnail sizes. So modify the attachment thumbnail sizes in your AdminCP options page if you wish to change the profile picture thumbnail sizes. Be sure to run "re-generate thumbnails" via the vB3 Member Album -> Approve Images" page.
Profile picture sizes (not thumbnails) are defined for each usergroup. Modify a usergroup via AdminCP to change the dimensions members under that group are allowed to have for profile pictures.
3rd Party Add-ons
Pseudomizer has posted a migration script that will transfer your files from my old vB2 Member Photo to the correct tables in this vB3 hack. Click here to view.
Pseudomizer also posted a portal-integration allowing you to display a random profile picture on your portal. Click here to view.
I've installed the Hack successfully and it seems to work. I tried to upload a picture with the admin account but the picture won't show up in the album. the name "admin" is displayed but there is no picture beside it. help, anyone ?
Now I've tried Slynderdale's fixes that were in that zip.
When I did that, I made all file chages again, then I got to the database part to do those changes again. I executed all those queries again (I assumed there were changes) and then it told me that they already existed so the query didn't finish or something.
so I ignored it. Then I finished the directions, and I still have red x's for pictures.
I decided I would try to re-upload my profile pic as a test. So I deleted in in my user CP, then I went to re-upload it and I got a database error something like this:
Code:
Database error in vBulletin 3.0.3:
Invalid SQL:
INSERT INTO customprofilepic
(userid, profilepicdata, thumbnaildata, comment, visible, thumbnaildata, comment, visible, dateline, filename, filesize)
VALUES
mysql error: Column count doesn't match value count at row 1
mysql error number: 1136
can someone help me by giving me some sql queries I need to run so at least people can add profile pictures again without a database error, because I don't know any SQL.
$DB_site->query("
UPDATE " . TABLE_PREFIX . "customprofilepic
SET thumbnaildata = '" . $DB_site->escape_string($thumbnail) . "'
WHERE picture_id = $image[picture_id] ");
and replace it with:
PHP Code:
$DB_site->query("
UPDATE " . TABLE_PREFIX . "customprofilepic
SET thumbnaildata = '$thumbnail'
WHERE picture_id = $image[picture_id] ");
I did these changes, still no luck... also... the link for Weasel's update seems to be a fresh install, which means i can't actually follow it as its asking me to find and replace items that have already been replaced...
I know this hack/thread is kinda old now... but i hope someone can help.
when you say run the querys.. i see it has space in some do u run the "3" or all of them 1 at a time? i ran 1 at a time
Code:
Warning: Division by zero in /home/*******/public_html/forums/album.php on line 142
Warning: Division by zero in /home/*****/public_html/forums/includes/functions.php on line 1730
when you say run the querys.. i see it has space in some do u run the "3" or all of them 1 at a time? i ran 1 at a time
Code:
Warning: Division by zero in /home/*******/public_html/forums/album.php on line 142
Warning: Division by zero in /home/*****/public_html/forums/includes/functions.php on line 1730
any idea what i did wrong?
This has been handled already in this thread ( if i am not wrong ).