![]() |
vB3 Member Album 2.0
https://vborg.vbsupport.ru/
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. ;) |
can a user upload more then one pic?
|
:\
In the current system of profile pictures, a user cannot upload more than one. This hack simply provides an album for those pictures (in addition to a separate album for signatures). |
Thanks for releasing this, finaly the profile picture function on my forum will get used :)
|
wow, i was waitin for this for awhile, thx heaps
|
I was just sitting down to write this SAME thing tonight.
I am so glad I checked in here first. Thanks, Velocd! |
In the modifyprofilepic template, I don't have this code in RC3:
Quote:
|
Well, installed and working good except I am getting a little red x where the profile pic should appear. Anyone else run into this or know how to fix it?
|
Which isn't showing? The thumbnail, or the profile picture?
|
The thumbnails and the avatars in the album.php aren't showing and they don't show in the admin cp approval area either. The pictures show fine in the actual profile.
|
I've just installed this on a fresh version of vB3 (it was tested on vB3 Beta 5 and a modified vB3 prior), and the installation was flawless. :)
Boofo, make sure you run the "Rebuild profile picture thumbnails" from admincp/albumcp.php?do=approve. This is required at first, and consequently every other time you change the dimensions of the attachment thumbnail size. Then clear your browser internet cache, and restart the browser. The browser probably handles the stream of the image a bit more funky since it's from the database, rather than a file on the server. Therefore it might not be updating properly unless you clear your cache. You say the avatar doesn't show, also? How does your forum handle custom avatars? Uploaded into the database, or are they stored in a folder? |
Installed it, works great :)
Btw, Boofo, be sure you have jpeg support enabled in GD... It's most likely you've got something wrong with GD... ran into that problem myself. |
This isn't workin the way i expected it to. Let' see
1. When i upload a picture it says i'm above the dimensions set, how do i change the dimensions for the user profile pic? 2. I go to the album.php page and all i see is the people's username with a X beside their name. 3. I try to go to the verify picture link in admincp and it takes me to a 404 Edit: the admincp problem was due to me just not uploadin it into the admincp directory, lol. But my original quesoitn still holds, how do i change the dimensions for the profile pics? it is set at 100x100 |
I've updated to vma1.1, as there were some important bug fixes concerning approval and aesthetics.
To upgrade, reupload albumcp.php to your admincp, and do steps #3-4 and #28 again. ;) Quote:
edit: If you mean the actual profile dimensions, those are defined by each usergroup. Refer to the usergroup page in your AdminCP. |
I got this error below: Can anyone help me out with this error?
Warning: Division by zero in /home/vietmyen/public_html/album.php on line 149 Warning: Division by zero in /home/vietmyen/public_html/includes/functions.php on line 1707 There seems to have been a slight problem with the VietSuperModel Net database. Please try again by pressing the refresh button in your browser. An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists. We apologise for any inconvenience. Database error in vBulletin 3.0.0: Invalid SQL: SELECT user.userid, dateline, comment, user.username, user.usertitle, user.joindate, user.usergroupid FROM customprofilepic LEFT JOIN user USING (userid) WHERE visible=0 ORDER BY posts desc LIMIT 0, mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 9 mysql error number: 1064 |
Quote:
|
|
Quote:
|
Quote:
I may have a play around with the 2 hacks later on my test board and see what I can come up with. |
Quote:
|
hmmm . . . i was hopin this would be like the vb2 hack where it would thumbnail the picture to be put on the photo album page but then if u click on the thumbnailed picture, it would become the original large size.
|
Quote:
|
Ok, it works now. Whatever you did in the new update, Mike, it seems to have fixed it. Thank you for a great hack, buddy! ;)
|
hmmm .. . disregard what i said. This hack uses the profile pic as the basis for the photo album. I remember the last version created a whole new feature where you uploaded the picture so in the photo album, you could click on the thumbnil and it would show the original unthumbnaield version.
However, I'm sure you could do what i asked for in my previous post but it would show in the case that the picture the user uploaded was really large, it would show that picture instead of a thumbnailed version in the member's profile. Mehh . ..oh well, it all works lol, great hack |
Quote:
It's giving a division by zero because the $perpage variable is empty. You should have this field set in AdminCP -> vB3 Member Photo -> Settings. Also.. Code:
FROM customprofilepic |
Also note, I usually release my hacks in full featured status.
Meaning, I don't plan to add-on any enhancements. This hack is a simple gallery system for current vB3 profile pictures and signatures. I wont be adding multiple image support, a commenting system, etc. If you would like to do so, feel free. |
Quote:
yes, I did run individual each line query for a time. And completed run to all. I didn't see any opotion like you said:AdminCP -> vB3 Member Photo -> Settings. I only see : AdminCP -> vB3 Member Photo under vB3 Member Photo have: options approve images |
vB3 Member Photo -> Options is what I meant.
Is the images per page value set? Try editing your album.php, and under where it says: PHP Code:
PHP Code:
|
Working like a champ on the first install. :D
I can't thank you enough for this. You wrote this WAY more thorough then I would have been capable of doing in just slapping something together. Saved me a MOUNTAIN of time and aggrivation. :) Edit to add -- I just changed my favorite hack to this one. |
Heh, I'm glad I could help such a large way. ;)
This was probably the quickest hack I've coded, since Mudxx requested it on Wednesday or Tuesday. :p |
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. |
What is GD Graphics library? I did everything exactly as asked in the set up and I get the same exact error as calvin
|
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. |
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! |
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"> |
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> |
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. ;) |
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). |
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! ;) |
Quote:
Any thoughts? |
All times are GMT. The time now is 05:53 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|