View Full Version : Profile Gallery: Allow Users to Upload Member Profile Images
calorie
03-04-2007, 10:00 PM
This mod allows users to upload GIF, JPG, and PNG images so that they appear on the member profile page. That is, it basically allows your users to have a mini gallery displayed on their member profile page with pagination.
There are no vB options or template edits. You simply create a 777 directory and import the XML product file. Note however that there are a couple of requirements. You must have safe mode off and GD enabled for this mod to work!
Permissions are controlled by canmodifyprofile, canprofilepic, and canadminusers, the latter of which allows admins with canadminusers permission to delete member profile gallery picures. See the attached screenshots.
Final Notes: This mod should work just fine on stock vB, where safe mode is off and GD is enabled. Again, you must have safe mode off and GD enabled for this mod to work. It is doubtful that customization will be provided.
lovelypk
03-05-2007, 03:26 AM
Looks good.
d8tabyte
03-05-2007, 03:27 AM
Interesting... I'll keep my eye on this
joeboo
03-05-2007, 04:32 AM
I keep getting this error "Invalid File Path Specified" whenever I try to upload images. And yes, the profilegallery folder in images is chmodded to 777.
abramelin
03-05-2007, 07:17 AM
there must be max file size permission and upload file limit otherwise users can upload lots of pictures with big sizes
and also can we make to display these pictures on a seperate page from linking the gallery from the profile (a link on the default profile picture table like "more images..." can be very very good)
bada_bing
03-05-2007, 05:47 PM
This would be nice if it had usergroup permissions and features like amount of pic uploads per user or usergroup.
abramelin
03-05-2007, 06:15 PM
This would be nice if it had usergroup permissions and features like amount of pic uploads per user or usergroup.
yes i am waiting the same features and display them in a seperate page
Sychev_S
03-05-2007, 06:24 PM
alright where do I donate, I have been looking for something like this for MONTHS!
Usergroup permissions for amount of pictures is indeed a good idea...
abramelin
03-05-2007, 07:10 PM
calorie we are waiting for an update :)
Sychev_S
03-05-2007, 08:52 PM
is there anyway to change placement of pictures in memberinfo?
abramelin
03-06-2007, 06:11 PM
this mod does not control the size and dimensions of pictures..
Ricsca
03-06-2007, 11:21 PM
Good! ;)
Doctor Death
03-06-2007, 11:59 PM
I like this mod and have it implemented at www.ddsog.com (http://www.ddsog.com)within the forums.
What I would like to do with it is on the FRONT page of the website (external from forums) is to display one random photo out of the collection of members albums.
I have a random picture frame on the front page of the website, but it currently does not select photos from members profiles.
What techniques/algorithms would you use to randomly select one photo as they are stored using this mod?
Thanks in advance for any ideas.
Doc:eek:
Inferno Dragon
03-07-2007, 12:15 PM
nice mod indeed..but what about the amount/limit of images a member can upload?
abramelin
03-07-2007, 08:51 PM
i think the author does not support this mod
dirty68
03-08-2007, 06:26 AM
damn it i want more about this Mod......:) plus im getting the white box with the red x in it on my profile
perju
03-09-2007, 01:31 AM
I don't know if the author offers any support, so i figured I'd ask here. What would be the best way to only show the photo table container if the user has a picture uploaded?
abramelin
03-09-2007, 06:20 AM
I don't know if the author offers any support, so i figured I'd ask here. What would be the best way to only show the photo table container if the user has a picture uploaded?
its already behaving like that
perju
03-09-2007, 10:31 PM
odd, i must've messed something up.
globalinsites
03-10-2007, 12:22 AM
This would indeed be great if we could control the amount of pictures that a user can upload, based on usergroups. And more importantly, we should be able to set the max allowed file size, this is currently not possible is it?
globalinsites
03-10-2007, 10:36 AM
Does anyone here know if it's possible (and how) to create easy profile urls? For example: www.mysite.com/myprofile
Atakan KOC
03-25-2007, 06:09 PM
Thanks........
jaymullah
03-29-2007, 12:53 PM
Thanks! This is a great mod! I agree that it should at least have a picture amount and size limitation or else this mod could get out of hand on big boards. I do though, love how you have kept it very basic and very to the point.
Now I am just an Amatuer keep in mind, but here is what I did to show my profile photos on a seperate page. This will at least help untill the mod author or someone else shows us a better way.
First, make a copy of member.php and name it member2.php. Then open member2.php and find:
define('THIS_SCRIPT', 'member');
change to:
define('THIS_SCRIPT', 'member2');
find:
$templatename = iif($quick, 'memberinfo_quick', 'MEMBERINFO');
change to:
$templatename = iif($quick, 'memberinfo_quick', 'MEMBERINFO2');
Now create a new template called MEMBERINFO2 and add:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle]</title>
$headinclude
</head>
<body>
$header
$navbar
<if condition="$profilegallery_show[pagenav]">
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom: 3px;">
<tr valign="bottom">
<td align="$stylevar[right]">$profilegallery_pagenav</td>
</tr>
</table>
</if>
<if condition="$profilegallery_canadmin OR ($bbuserinfo[userid] == $userinfo[userid])">
<form action="profile.php" method="post">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="updateprofilepic" />
<input type="hidden" name="profilegallery_do" value="deleteprofilegallerypic" />
<input type="hidden" name="profilegallery_userid" value="$userinfo[userid]" />
</if>
<table class="tborder" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" align="center" width="100%">
<thead>
<tr>
<td class="thead" width="100%">
<a style="float: $stylevar[right];" href="#top" onclick="return toggle_collapse('profilegallery_piclist')"><img id="collapseimg_profilegallery_piclist" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_profilegallery_piclist].gif" alt="" border="0" /></a>
<phrase 1="$userinfo[username]">$vbphrase[profilegallery_profile_gallery_pictures_by_x]</phrase>
</td>
<if condition="$profilegallery_canadmin OR ($bbuserinfo[userid] == $userinfo[userid])">
<td class="vbmenu_control" nowrap="nowrap">
<input type="checkbox" name="allbox" id="checkall_all" title="$vbphrase[check_uncheck_all]" onclick="js_check_all(this.form)" />
</td>
</if>
</tr>
</thead>
<tbody id="collapseobj_profilegallery_piclist" style="$vbcollapse[collapseobj_profilegallery_piclist]">
<tr>
<td class="alt2" style="padding: 0px;"<if condition="$profilegallery_canadmin OR ($bbuserinfo[userid] == $userinfo[userid])"> colspan="2"</if>">
<table border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" align="center" width="100%">
<tr>
$profilegallery_picbits
</tr>
</table>
</td>
</tr>
<if condition="$profilegallery_canadmin OR ($bbuserinfo[userid] == $userinfo[userid])">
<tr>
<td class="alt2" colspan="2" align="center">
<input type="submit" class="button" value="$vbphrase[save_changes]" accesskey="s" />
<input type="reset" class="button" value="$vbphrase[reset_fields]" accesskey="r" />
</td>
</tr>
</if>
</tbody>
</table>
<if condition="$profilegallery_canadmin OR ($bbuserinfo[userid] == $userinfo[userid])">
</form>
</if>
<if condition="$profilegallery_show[pagenav]">
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-top: 3px;">
<tr valign="top">
<td align="$stylevar[right]">$profilegallery_pagenav</td>
</tr>
</table>
</if>
<br />
$footer
</body>
</html>
Now open your MEMBERINFO template and add this where ever you want the link to the Profile Pictures:
<a href="member2.php?u=$userinfo[userid]">View More Pictures</a>
Now like I said, this may not be the correct method, but it works for me :)
deezelpope
03-29-2007, 01:17 PM
Beautiful!! Thank you!!:up:
TrIn@dOr
03-29-2007, 01:48 PM
Plz help...
My 777 dir is foro/images_black/profilegallery/
And im getting "Invalid File Path Specified"
deezelpope
03-29-2007, 02:06 PM
Try getting rid of the underscore. Plus, I noticed images with an underscore in their name isn't well-liked by this hack either.
DiSpy
04-13-2007, 04:08 PM
there must be max file size permission and upload file limit otherwise users can upload lots of pictures with big sizes
nice mod indeed..but what about the amount/limit of images a member can upload?
we should be able to set the max allowed file size, this is currently not possible is it?
I agree that there should be a way to set max filesize, and dimensions.
i think the author does not support this mod
It says specifically that the author does NOT, so we'll have to figure this out ourselves.
This would be nice if it had usergroup permissions.
There is one way... In the read me provided with this mod it says
Permissions are controlled by canmodifyprofile, canprofilepic, and canadminusers
So, if you don't want specific user groups to be able to use this, just set that user group "canprofilepic" to "NO". Personally, I indend to only allow this for my subscribers user group, and staff. I also have a seperate usergroup setup on my forums for users "on probation" that I have set "canmodifyprofile" to "NO". This will keep users on probation from uploading any pictures.
----
The only thing that I don't like about this mod, is the fact that staff can't monitor all 20k users' uploads, so we'll have to rely on members pointing out unacceptable pics to us. There should be a way to moderate, alert staff when a user uploads new pics. I donno how to set it up, if anyone has any ideas, i'll try to figure out how to do it.
----
Optionally, i'd like to see a way for users to setup folders on their profile galleries. This will not only make pages load faster and prevent them from becoming tooo large, but will also look much nicer. Like if a user wanted to upload pics from an event they went to, they wouldn't want them mixed in with pictures from an old event, or pictures of their dog (for example). Allowing them to create folders would solve this problem.
Terminatoronly
04-13-2007, 07:09 PM
Cool I LIke it :D
OFFSHORE DAN
07-24-2007, 02:31 AM
I have been searching for this.
dricho
07-27-2007, 08:57 AM
Thank you so much - it works for me.
Zaiaku
07-27-2007, 01:35 PM
This mod had so much potential. Its simple and exactly what I was looking for. But without being able to limit the images or size this can get way out of hand. Too many people don't know how to resize and edit their images from their digital cams. Just 2 people upload 1meg images or just images with high resolution will make this mod a hassle.
mr clean
08-01-2007, 04:48 PM
This mod had so much potential. Its simple and exactly what I was looking for. But without being able to limit the images or size this can get way out of hand. Too many people don't know how to resize and edit their images from their digital cams. Just 2 people upload 1meg images or just images with high resolution will make this mod a hassle.I completely agree. There's no reason that this type of mod should not be included be included in the core. With a few adjustments(especially the size limit), this mod would be useful to an overwhelming majority of VB users. Most gallery mods tend to be very buggy, cumbersome, and just plain overkill for the people who are just looking for a nice, simple way to beef up their member profiles.
KosiRax.Z
08-30-2007, 06:18 PM
thx
it's very good
AKapadia
09-06-2007, 09:44 PM
can user comment on the pictures ?
connkid25
10-17-2007, 04:41 PM
Has anyone figured out a way to make this run with the same permissions of the regular photo upload... What I mean is, how can I make this use the same photo size permissions in the usergroup manager. I removed the old photo upload method and am only using this in the edit profile picture area. Screenshot included. What I really need is to get this to work with the usergroup upload permissions. I'll continue to play with this until someone can help me out!! Thanks in advance.
P.S.
The furthest I got was adding the max file size info below the browse button.
buurman
10-31-2007, 03:28 PM
Thanks! This is a great mod! I agree that it should at least have a picture amount and size limitation or else this mod could get out of hand on big boards. I do though, love how you have kept it very basic and very to the point.
Now I am just an Amatuer keep in mind, but here is what I did to show my profile photos on a seperate page. This will at least help untill the mod author or someone else shows us a better way.
First, make a copy of member.php and name it member2.php. Then open member2.php and find:
define('THIS_SCRIPT', 'member');
change to:
define('THIS_SCRIPT', 'member2');
find:
$templatename = iif($quick, 'memberinfo_quick', 'MEMBERINFO');
change to:
$templatename = iif($quick, 'memberinfo_quick', 'MEMBERINFO2');
Now create a new template called MEMBERINFO2 and add:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle]</title>
$headinclude
</head>
<body>
$header
$navbar
<if condition="$profilegallery_show[pagenav]">
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom: 3px;">
<tr valign="bottom">
<td align="$stylevar[right]">$profilegallery_pagenav</td>
</tr>
</table>
</if>
<if condition="$profilegallery_canadmin OR ($bbuserinfo[userid] == $userinfo[userid])">
<form action="profile.php" method="post">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="updateprofilepic" />
<input type="hidden" name="profilegallery_do" value="deleteprofilegallerypic" />
<input type="hidden" name="profilegallery_userid" value="$userinfo[userid]" />
</if>
<table class="tborder" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" align="center" width="100%">
<thead>
<tr>
<td class="thead" width="100%">
<a style="float: $stylevar[right];" href="#top" onclick="return toggle_collapse('profilegallery_piclist')"><img id="collapseimg_profilegallery_piclist" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_profilegallery_piclist].gif" alt="" border="0" /></a>
<phrase 1="$userinfo[username]">$vbphrase[profilegallery_profile_gallery_pictures_by_x]</phrase>
</td>
<if condition="$profilegallery_canadmin OR ($bbuserinfo[userid] == $userinfo[userid])">
<td class="vbmenu_control" nowrap="nowrap">
<input type="checkbox" name="allbox" id="checkall_all" title="$vbphrase[check_uncheck_all]" onclick="js_check_all(this.form)" />
</td>
</if>
</tr>
</thead>
<tbody id="collapseobj_profilegallery_piclist" style="$vbcollapse[collapseobj_profilegallery_piclist]">
<tr>
<td class="alt2" style="padding: 0px;"<if condition="$profilegallery_canadmin OR ($bbuserinfo[userid] == $userinfo[userid])"> colspan="2"</if>">
<table border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" align="center" width="100%">
<tr>
$profilegallery_picbits
</tr>
</table>
</td>
</tr>
<if condition="$profilegallery_canadmin OR ($bbuserinfo[userid] == $userinfo[userid])">
<tr>
<td class="alt2" colspan="2" align="center">
<input type="submit" class="button" value="$vbphrase[save_changes]" accesskey="s" />
<input type="reset" class="button" value="$vbphrase[reset_fields]" accesskey="r" />
</td>
</tr>
</if>
</tbody>
</table>
<if condition="$profilegallery_canadmin OR ($bbuserinfo[userid] == $userinfo[userid])">
</form>
</if>
<if condition="$profilegallery_show[pagenav]">
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-top: 3px;">
<tr valign="top">
<td align="$stylevar[right]">$profilegallery_pagenav</td>
</tr>
</table>
</if>
<br />
$footer
</body>
</html>
Now open your MEMBERINFO template and add this where ever you want the link to the Profile Pictures:
<a href="member2.php?u=$userinfo[userid]">View More Pictures</a>
Now like I said, this may not be the correct method, but it works for me :)
Maybe its me, but if I look at this, then you still get all the pictures on the normal member page also...because you didt change anything to the existing templates?
Maybe a bigger amateur ten you so.. forgive me.. if im wrong..
inciarco
11-01-2007, 06:13 AM
Great Add-On Calorie!! :up:
Additional to the Size Limit (Set in Options for this Hack), and the Possibility to Turn On and Off the Hack via Options, I'd like to Add a little Suggestion for your Next Update:
When Adding a New File on the Profile Pics on the Control Panel, There's No Way to See the Results of the Uploaded Images, and Also the Number of Images that There Are, and Also a Way to Delete an Image Immediately in that Page, but the User has to go an See his Profile (there's No Link to See Own Profile, a Link to that on the Control Panel Left List Would be Nice for a Hack), and Verify How the List of Uploaded Images Look!! :(
Adding Below the Upload Option on the Profile Pics Page, the List of Images that can be Seen on the Profile, could Add a Double Control:
- First See What Is Being Uploaded. :rolleyes:
- Second, Delete a Wrong Uploaded File in that Same Window. :rolleyes:
(Also, If Possible, the Possibility to Add a Description to the Picture When Uploading, and also the Possibility to Edit that Description, Would be Nice)!! :p ;)
I Hope you can Include this Options, as well as the Limit Size Options, Calorie!! ;)
My Best Regards!! ;)
:)
buurman
11-12-2007, 01:20 PM
INSTALLED... and happy with it..
some minor bugs in it...
It doesnt support files with a "space" or a "-" in it.
zglows
11-12-2007, 04:52 PM
please update this!!!!! its really nice
Triky
11-15-2007, 08:59 PM
Just what I was searching for. Thank you.
Triky
11-20-2007, 09:04 AM
Now like I said, this may not be the correct method, but it works for me :)
Yes, it works. And if you want to remove the table from your main profile page, you have to empty the template called profilegallery_piclist. However, I've made another page called member_gallery where all the images are showed. My problem is that if I click on the second page link, it serach for http://localhost/forum/member.php?u=1&pp=10&page=2.. but it should be http://localhost/forum/member_gallery.php?u=1&pp=10&page=2. How do I fix this problem man?
Could you help me? :erm:
EDIT: Fixed. I've just edited the product code, unistalled it and re-installed. :)
Now my problem is that all my popup menu doesn't work.
Aur-Phala.Com
12-26-2007, 05:05 PM
Thanks! This is a great mod! I agree that it should at least have a picture amount and size limitation or else this mod could get out of hand on big boards. I do though, love how you have kept it very basic and very to the point.
Now I am just an Amatuer keep in mind, but here is what I did to show my profile photos on a seperate page. This will at least help untill the mod author or someone else shows us a better way.
First, make a copy of member.php and name it member2.php. Then open member2.php and find:
define('THIS_SCRIPT', 'member');
change to:
define('THIS_SCRIPT', 'member2');
find:
$templatename = iif($quick, 'memberinfo_quick', 'MEMBERINFO');
change to:
$templatename = iif($quick, 'memberinfo_quick', 'MEMBERINFO2');
Now create a new template called MEMBERINFO2 and add:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle]</title>
$headinclude
</head>
<body>
$header
$navbar
<if condition="$profilegallery_show[pagenav]">
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom: 3px;">
<tr valign="bottom">
<td align="$stylevar[right]">$profilegallery_pagenav</td>
</tr>
</table>
</if>
<if condition="$profilegallery_canadmin OR ($bbuserinfo[userid] == $userinfo[userid])">
<form action="profile.php" method="post">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="updateprofilepic" />
<input type="hidden" name="profilegallery_do" value="deleteprofilegallerypic" />
<input type="hidden" name="profilegallery_userid" value="$userinfo[userid]" />
</if>
<table class="tborder" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" align="center" width="100%">
<thead>
<tr>
<td class="thead" width="100%">
<a style="float: $stylevar[right];" href="#top" onclick="return toggle_collapse('profilegallery_piclist')"><img id="collapseimg_profilegallery_piclist" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_profilegallery_piclist].gif" alt="" border="0" /></a>
<phrase 1="$userinfo[username]">$vbphrase[profilegallery_profile_gallery_pictures_by_x]</phrase>
</td>
<if condition="$profilegallery_canadmin OR ($bbuserinfo[userid] == $userinfo[userid])">
<td class="vbmenu_control" nowrap="nowrap">
<input type="checkbox" name="allbox" id="checkall_all" title="$vbphrase[check_uncheck_all]" onclick="js_check_all(this.form)" />
</td>
</if>
</tr>
</thead>
<tbody id="collapseobj_profilegallery_piclist" style="$vbcollapse[collapseobj_profilegallery_piclist]">
<tr>
<td class="alt2" style="padding: 0px;"<if condition="$profilegallery_canadmin OR ($bbuserinfo[userid] == $userinfo[userid])"> colspan="2"</if>">
<table border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" align="center" width="100%">
<tr>
$profilegallery_picbits
</tr>
</table>
</td>
</tr>
<if condition="$profilegallery_canadmin OR ($bbuserinfo[userid] == $userinfo[userid])">
<tr>
<td class="alt2" colspan="2" align="center">
<input type="submit" class="button" value="$vbphrase[save_changes]" accesskey="s" />
<input type="reset" class="button" value="$vbphrase[reset_fields]" accesskey="r" />
</td>
</tr>
</if>
</tbody>
</table>
<if condition="$profilegallery_canadmin OR ($bbuserinfo[userid] == $userinfo[userid])">
</form>
</if>
<if condition="$profilegallery_show[pagenav]">
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-top: 3px;">
<tr valign="top">
<td align="$stylevar[right]">$profilegallery_pagenav</td>
</tr>
</table>
</if>
<br />
$footer
</body>
</html>
Now open your MEMBERINFO template and add this where ever you want the link to the Profile Pictures:
<a href="member2.php?u=$userinfo[userid]">View More Pictures</a>
Now like I said, this may not be the correct method, but it works for me :)
Thanks works like a charm but how do i get rid of the Profile Gallery on the top of every members page?
Triky
12-27-2007, 07:03 AM
Thanks works like a charm but how do i get rid of the Profile Gallery on the top of every members page?
https://vborg.vbsupport.ru/showpost.php?p=1386139&postcount=41
Eclipsed830
12-27-2007, 08:48 AM
INteresting... keeping an eye on it
TCE Killa
12-27-2007, 03:50 PM
Thanks for this but there really does need to be max size permissions.
TCE Killa
01-13-2008, 02:18 PM
Have you added a size limit add on in AdminCP yet? Really need it because my forum is getting way to full now. Thanks.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.