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? |
#42
|
||||
|
||||
What if the images are smaller than the 175x175 thumbnail I am setting -- would that cause it to cough?
Here is a sample of the first images: 137x191 175x173 134x165 175x170 168x154 172x175 Most are within these dimensions as I had them all sized for an html gallery that we had been using. |
#43
|
||||
|
||||
That is odd, if it worked the first time through with 100x100.
Try 200x200, maybe that works (just for testing). Are the images up to #7 actually being resized properly? There might be something up with those #7-#11 images, like you mentioned. I'll look into why it might be doing this. |
#44
|
||||
|
||||
Hello,
i need a little bit of help please. I just installed this hack on vb3.0.0 and did all the modifications, uploads and database queries. All without any errors. In the AdminCP i have now the options and i can set them BUT: - where is the link to this new gallery ? Is this not in the modifications ? Do i have to manually edit my navbar to add the link to album.php ? - when i go to my control panel ( normal user ) and i try to upload a file larger then 100x100 it rejects it. How do i set the size for the pictures ? I searched through all admin settings, but i did not find it. Please help me. Thanks in advance. Cheers, Pseudomiizer |
#45
|
||||
|
||||
What is a good size to allow for profile pics?
|
#46
|
||||
|
||||
Bob,
I have all of mine set to the approx. dimensions above for displaying in rows of 3 for 800x600 resolution. Velocd, I will try 200x200. Tonight, I took a datadump of the customprofilepic table and uploaded it to my test server, deleted the thumbnaildata field all together, and then readded the field under profilepicdata. I then reset thumbnails to 175 and attempted to resize, and it locked up here: albumcp.php?do=rebuildthumbs&startat=21&perpage=20 With the thumbnaildata field cleared, it ran through the first 20 pics just fine, but then kept cycling back through startat=21&perpage=20. I opened another browser program and set the URL for startat=41&perpage=20 to see if I could maybe skip over any problem pics, but it wouldn't take that -- it just refreshed itself to 21 & 20 and kept cycling though those over and over again. All of the photos are .jpg format, and all original sizes are as mentioned. If I add a new photo with the 175 limit, it also works fine - it is just trying to change them once they have been added and the limit is changed after that time. This has me baffled. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|