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.
Awesome! Out of 1100 photos atleast 85% built properly with this new code which is a lot better than 0%!!! Hopefully the hack creator can include this all in an update along with some system to have multiple pages in the acp for verrifying photos. Thanks!
Just a note to say the posts I'd made about not seeing other's profile pics' are void now I've discovered what was going on and it had nothing to do with this hack.
Working out a couple bugs if you have it so attachments are saved to the file system and writing some code that lets you rebuild the album thumbnails.
Make my above fixes, that will fix images from being escapes twice. The image gets escaped already if you have it so your attachments are saved in the MySQL data base. This would cause errors with the thumbnails. The thumbnail doesn't get escaped when you save the files to the file system so this code fixes that and also fixes a small bug if theres an error with the thumbnail.
After you installed this hack and weasles fix,
find in path/to/forums/includes/functions_upload.php:
PHP Code:
if ($type == 'profilepic') { require_once('./includes/functions_image.php');
// Display thumbnail error to admins in an attempt to cut down on support requests due to failed thumbnails. if (!$thumbnail AND $imageerror AND $permissions['adminpermissions'] & CANCONTROLPANEL) { eval('$error = "' . fetch_phrase($imageerror, PHRASETYPEID_ERROR) . '";'); $errors[] = array( 'filename' => $attachment_name, 'error' => $error ); } }
and replace it with:
PHP Code:
if ($type == 'profilepic') { require_once('./includes/functions_image.php');
if ($vboptions['attachfile']) { $thumbnail = $DB_site->escape_string($thumbnail); }
// Display thumbnail error to admins in an attempt to cut down on support requests due to failed thumbnails. if (!$thumbnail AND $imageerror AND $permissions['adminpermissions'] & CANCONTROLPANEL) { eval('$error = "' . fetch_phrase($imageerror, PHRASETYPEID_ERROR) . '";'); $errors[] = array( 'filename' => $attachment_name, 'error' => $error ); } }
The rebuilding of the album thumbnails code is almost done.
Working out a couple bugs if you have it so attachments are saved to the file system and writing some code that lets you rebuild the album thumbnails.
Make my above fixes, that will fix images from being escapes twice. The image gets escaped already if you have it so your attachments are saved in the MySQL data base. This would cause errors with the thumbnails. The thumbnail doesn't get escaped when you save the files to the file system so this code fixes that and also fixes a small bug if theres an error with the thumbnail.
After you installed this hack and weasles fix, find:
PHP Code:
if ($type == 'profilepic')
{
require_once('./includes/functions_image.php');
// Display thumbnail error to admins in an attempt to cut down on support requests due to failed thumbnails.
if (!$thumbnail AND $imageerror AND $permissions['adminpermissions'] & CANCONTROLPANEL)
{
eval('$error = "' . fetch_phrase($imageerror, PHRASETYPEID_ERROR) . '";');
$errors[] = array(
'filename' => $attachment_name,
'error' => $error
);
}
}
and replace it with:
PHP Code:
if ($type == 'profilepic')
{
require_once('./includes/functions_image.php');
if ($vboptions['attachfile'])
{
$thumbnail = $DB_site->escape_string($thumbnail);
}
// Display thumbnail error to admins in an attempt to cut down on support requests due to failed thumbnails.
if (!$thumbnail AND $imageerror AND $permissions['adminpermissions'] & CANCONTROLPANEL)
{
eval('$error = "' . fetch_phrase($imageerror, PHRASETYPEID_ERROR) . '";');
$errors[] = array(
'filename' => $attachment_name,
'error' => $error
);
}
}
The rebuilding of the album thumbnails code is almost done.