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.
In albumcp.php, which is the one in the admincp folder, find the following:
PHP Code:
UPDATE " . TABLE_PREFIX . "customprofilepic
SET thumbnaildata = '" . $DB_site->escape_string($thumbnail) . "'
WHERE picture_id = $image[picture_id]
Replace that with:
PHP Code:
UPDATE " . TABLE_PREFIX . "customprofilepic
SET thumbnaildata = '" . $DB_site->escape_string($thumbnail['filedata']) . "'
WHERE picture_id = $image[picture_id]
Finally, you might also want to do find this in that file:
PHP Code:
if ($_REQUEST['do'] == 'rebuildthumbs')
{
And follow it with this, adjusting the number of seconds to suit your needs:
PHP Code:
set_time_limit(120);
That last bit simply allows the rebuild thumbnails thing to run for 120 seconds = 2 minutes... because there's no pagination stuff in that script and it will probably time out if you have a load of users to rebuild thumbs for.
Other things you might want to do whilst your here... take a look at this thread: https://vborg.vbsupport.ru/showthread.php?t=66765
And then execute this piece of SQL if you haven't already:
[sql]
ALTER TABLE `customprofilepic` ADD INDEX ( `userid` )
[/sql]
Obviously prepending any TABLE_PREFIX that you use, if indeed you use one.
Any more bugs with this? Probably, so let's resolve them eh? Just report them and there's nothing stopping you lot looking around and trying to figure it out too
In the admincp (and album.php), everything is red x'd no matter how much counters i update everywhere.. Attempted fixes above, still same problem.. <sigh>
Fresh install, same problem as Malfunktion. This definatly needs work.
In the admincp (and album.php), everything is red x'd no matter how much counters i update everywhere.. Attempted fixes above, still same problem.. <sigh>
If you've installed the hack fully, that would be:
Admin CP > Member Album > Verify Pictures > Rebuild Thumbnails.
The one in Update Counters do posts and attachments... not profile pics
Can you confirm this is what you are running
Sorry for the lack of clarity, it's very late... lol
Yes, I've run Member Album > Verify Pictures > Rebuild Thumbnails. It goes through them (I have about 100 currently) but if you right click on any of them and open it's a red X, as well as all listings in the album.php...
Sorry for the lack of clarity, it's very late... lol
Yes, I've run Member Album > Verify Pictures > Rebuild Thumbnails. It goes through them (I have about 100 currently) but if you right click on any of them and open it's a red X, as well as all listings in the album.php...
Cool
One more silly request then, could you CTRL + F5 that page to ensure that it's not a browser cache thing... even Firefox still cached the bad results when I finally fixed mine.
If not... then I shall see what else this could be, which might involve you looking for things in your code