The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Simple Profile Pic Gallery Details »» | |||||||||||||||||||||||||
This is a rework (with mod permission) using the concept and templates from VeloCD's v3 Hack
This addition does not make any changes to the database like the other one did, so if you have that installed, you need to revert your customprofilepic table to vB standard to eliminate the additional fields and set the correct index. PM me if you need assistance with that. What this does: Display all profile pics in a sortable table Permissions: Same as the Memberlist: If they are listed on the member list and have uploaded a profile pic, they will be in the profile pic list AND if they can view the member list, they can view the profile pic list. If requested, I can add a security token for this, but I really don't want to have to repeat "rebuild your bitfields" on every other post. :devious: Instructions to install: 1. Upload picgallery.php to your forums directory 2. Install the product in the zip file 3. Add a link for picgallery.php somewhere in the navbar The default is set for 15 pics per page and 3 per row, and this can be overriden in the vBulletin Options area of the ACP. Enjoy! ### UPDATE ### v 1.5.0: Added a sort view to show the admin team v 1.5.1: Fixed html display problem Supporters / CoAuthors Show Your Support
|
Comments |
#62
|
||||
|
||||
ok, this will set it up so when a user uploads a profile pic, it will create the thumbnail.
Add a column in your MySQL database Code:
ALTER TABLE `customprofilepic` ADD `profilepicthumb` MEDIUMTEXT; Find PHP Code:
PHP Code:
Find HTML Code:
'userid' => TYPE_UINT, HTML Code:
'thumb' => TYPE_UINT HTML Code:
if ($vbulletin->GPC['type'] == 'profile') HTML Code:
$vbulletin->GPC['thumb'] ? $data = 'profilepicthumb' : $data = 'filedata'; HTML Code:
SELECT filedata, dateline, filename HTML Code:
SELECT $data AS filedata, dateline, filename HTML Code:
<if condition="$totalpics"> <if condition="$count == 1"> <tr> </if> <td width="25%" class="alt2"> <table border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="99%" align="center"> <tr> <td class="alt2" style="padding:0px"> <!-- user info --> <table cellpadding="0" cellspacing="$stylevar[cellpadding]" border="0" width="100%"> <tr> <td class="alt2"><a href="member.php?$session[sessionurl]u=$userinfo[userid]">$userinfo[profilepic]</a></td> <td nowrap="nowrap"> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td nowrap="nowrap"> <a class="bigusername" href="member.php?$session[sessionurl]u=$userinfo[userid]">$userinfo[musername]</a> <div class="smallfont">$userinfo[usertitle]</div> <div class="smallfont">$userinfo[rank]</div> </td> <td nowrap="nowrap"> <if condition="$userinfo[field7] == 'Male'"> <img src="/forums/images/gendermale.gif" alt="$gender" height="32" width="20" hspace="8"> </if> <if condition="$userinfo[field7] == 'Female'"> <img src="/forums/images/genderfemale.gif" alt="$gender" height="32" width="20" hspace="8"> </if> </td> </tr> </table> <br /> <div class="smallfont"> <if condition="$userinfo['field5']"><div>Bike: $userinfo[field5]<div></if> <if condition="$userinfo['field2']"><div>$vbphrase[location_perm]: $userinfo[field2]<div></if> <div> $vbphrase[posts]: $userinfo[posts] </div> </div> </td> </tr> </table> </td> </tr> </table> </td> <!-- <else /> <td width="25%" class="alt1"></td> </if> --> <if condition="$count == $perrow"> </tr> </if> </if> |
#63
|
||||
|
||||
Quote:
exactly what I wanted... thank u very much! |
#64
|
||||
|
||||
Awesome, thanks for working out the thumbnails!
Question: How will the ones display that users have already uploaded prior to installing this add-on? |
#65
|
||||
|
||||
I guess they will have to re-upload their profile pic. I had originally written my own profile pic page ages ago so all my users already had theirs thumbnailed when I changed to this version.
|
#66
|
|||
|
|||
anyway to fix this ?
Currently Viewing: Unknown Location /forums/picgallery.php?&page=2 |
#67
|
|||
|
|||
very nice SpankMe ... how did u get picgallery to be able to show your custom fields ? such as bike: post: and so on ?
|
#68
|
||||
|
||||
Quote:
If you want to add additional files to WhoseOnline, you can either add the manual plugins in post #44 or install the WhoseOnline for additional files hack from Andreas. |
#69
|
||||
|
||||
Quote:
|
#70
|
||||
|
||||
Quote:
|
#71
|
||||
|
||||
Quote:
B.t.w. sweet hack, thanks. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|