The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
vB3 Member Album 2.0 Details »» | |||||||||||||||||||||||||
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
Upgrade to 2.0
Notes
3rd Party Add-ons
Galleries in Action
If you have this hack installed on your forum, and could provide me a demo, please PM a link so I can post it in this thread. Show Your Support
|
Comments |
#32
|
||||
|
||||
Did you read that your new version fixed the problems that I was having?
And what do I do about the first replacement in the modifyprofilepic, sir? Since I am using RC3, it is different than your code. |
#33
|
|||
|
|||
What is GD Graphics library? I did everything exactly as asked in the set up and I get the same exact error as calvin
|
#34
|
||||
|
||||
Boofo, just place the code where it seems appropriate (use your HTML wisdom ). This was developed for vB3 Gold, so I can't help for older versions where the templates are different, since I don't know what the templates look like. If you want to post the template, I'll have a look.
Quote:
http://www.php.net/gd It's an image library for advance image manipulation in PHP. For this hack, you need it to resize images. If you have PHP4.3.0 or above, you have GD2 installed. To check if it's installed and what version, use: PHP Code:
You must also have the option enabled via your AdminCP -> Options page. |
#35
|
||||
|
||||
Velocd,
I tried to run the rebuild to make the images a bit bigger tonight, and it is locking up. I have 300 pics loaded, but set it as low as 10 trying to make it go through. It gets to image 7 and then just flashes. New pics load in fine, but I can't get the old ones to change (and really don't want to manually load them a second time!) Any thoughts on what to look at? My GD version is 2.0.15 if that matters. Thanks! |
#36
|
||||
|
||||
Mike, I just noticed that the avatars aren't showing up for the signatures when I list them. I am using avatars as files in a dir on the server. Can this be what is causing it not to show the avartars and show the red x instead?
The code in the modifyprofilepic template is as follows: HTML Code:
<script type="text/javascript"> <!-- function check_yes(objid) { yes = fetch_object(objid); if (yes) { yes.checked = true; } } //--> </script> <form enctype="multipart/form-data" action="profile.php" method="post"> <input type="hidden" name="s" value="$session[sessionhash]" /> <input type="hidden" name="do" value="updateprofilepic" /> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat" colspan="2">$vbphrase[edit_profile_picture]</td> </tr> <tr> <td class="panelsurround" align="center"> <div class="panel"> <div style="width:$stylevar[formwidth_usercp]" align="$stylevar[left]"> <fieldset class="fieldset"> <legend>$vbphrase[your_current_profile_picture]</legend> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> <tr valign="top"> <td><img src="image.php?u=$bbuserinfo[userid]&type=profile&dateline=$profilepic[dateline]" alt="$vbphrase[your_profile_picture]" border="0" /></td> <td class="smallfont"> <div style="margin-bottom:$stylevar[formspacer]px">$vbphrase[use_profile_picture] :</div> <div> <label for="profilepic_yes"><input type="radio" name="profilepic" value="1" id="profilepic_yes" $profilepicchecked[1] />$vbphrase[yes]</label> <label for="profilepic_no"><input type="radio" name="profilepic" value="0" id="profilepic_no" $profilepicchecked[0] />$vbphrase[no]</label> </div> <div style="margin-top:$stylevar[formspacer]px">$vbphrase[if_have_profile_picture_no_will_delete]</div> </td> </tr> </table> </fieldset> <fieldset class="fieldset"> <legend>$vbphrase[custom_profile_picture]</legend> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> <tr> <td>$vbphrase[may_upload_custom_image_controls]</td> </tr> <tr> <td> $vbphrase[enter_profile_picture_url]:<br /> <input type="text" class="bginput" name="avatarurl" value="http://www." onchange="check_yes('profilepic_yes')" size="50" /> </td> </tr> <tr> <td> <input type="hidden" name="MAX_FILE_SIZE" value="$inimaxattach" /> $vbphrase[upload_profile_picture_from_computer]:<br /> <input type="file" class="bginput" name="upload" onchange="check_yes('profilepic_yes')" size="50" /> </td> </tr> <tr> <td class="smallfont"> If you want, enter a comment about your picture:<br /> <input type="text" class="bginput" name="comment" maxlength="40" size="50" /> </td> </tr> <tr> <td><phrase 1="$permissions[profilepicmaxwidth]" 2="$permissions[profilepicmaxheight]" 3="$permissions[profilepicmaxsize]">$vbphrase[note_maximum_size_x_y_or_z]</phrase></td> </tr> </table> </fieldset> </div> </div> <div style="margin-top:$stylevar[cellpadding]px"> <input type="submit" class="button" value="$vbphrase[save_changes]" accesskey="s" /> <input type="reset" class="button" value="$vbphrase[reset_fields]" accesskey="r" /> </div> </td> </tr> </table> </form> |
#37
|
||||
|
||||
Quote:
Quote:
In album.php, find: PHP Code:
PHP Code:
HTML Code:
<td><img src="image.php?u=$bbuserinfo[userid]&type=profile&dateline=$profilepic[dateline]" alt="$vbphrase[your_profile_picture]" border="0" /></td> HTML Code:
<td><img src="image.php?u=$bbuserinfo[userid]&type=profile&dateline=$profilepic[dateline]" alt="$vbphrase[your_profile_picture]" border="0" /><if condition="!$profilepic[visible]"><br /><u><b><i>This image is awaiting approval status!</i></b></u></if><if condition="$profilepic[comment]"><br /><i>$profilepic[comment]</i><br /></if></td> |
#38
|
||||
|
||||
Ok, the avatars work now in the signatures listing and the message shows up in the modifyprofilepic area like it should when they ate awaiting approval. I'm all set to go. Thank you, sir.
I know you said you don't like adding things and I dont blame you, but (and there is always a but, isn't there?) would there be away to stop the picture from also showing up in the profile until it is verified? That part bypasses this and that would really be a great idea if you ever had users that were to upload a porn pic or something. |
#39
|
||||
|
||||
Actually Boofo, that is already applied. ^^
Only the user can view his/her own profile picture in their profile page (member.php) if it is unapproved, but no one else can. However, even if unapproved, it wont show in the gallery (album.php). |
#40
|
||||
|
||||
Quote:
I think the sig editor is a great addition to this. It makes checking for a user's sig a lot faster than going through posts or profiles one by one. Excellent hack, sir! Thank you! |
#41
|
||||
|
||||
Quote:
Any thoughts? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|