Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
Profile Gallery: Allow Users to Upload Member Profile Images Details »»
Profile Gallery: Allow Users to Upload Member Profile Images
Version: 1.0.0, by calorie calorie is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.6.5 Rating:
Released: 03-04-2007 Last Update: Never Installs: 73
DB Changes Uses Plugins Template Edits
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 07-27-2007, 01:35 PM
Zaiaku's Avatar
Zaiaku Zaiaku is offline
 
Join Date: Jul 2007
Location: 3rd Level of Hell
Posts: 502
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #33  
Old 08-01-2007, 04:48 PM
mr clean's Avatar
mr clean mr clean is offline
 
Join Date: May 2005
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zaiaku View Post
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.
Reply With Quote
  #34  
Old 08-30-2007, 06:18 PM
KosiRax.Z KosiRax.Z is offline
 
Join Date: Feb 2007
Location: Shanghai,Chian
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thx
it's very good
Reply With Quote
  #35  
Old 09-06-2007, 09:44 PM
AKapadia AKapadia is offline
 
Join Date: Jan 2006
Location: U.S.A.
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can user comment on the pictures ?
Reply With Quote
  #36  
Old 10-17-2007, 04:41 PM
connkid25's Avatar
connkid25 connkid25 is offline
 
Join Date: Jul 2005
Location: Los Angeles, CA
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #37  
Old 10-31-2007, 03:28 PM
buurman's Avatar
buurman buurman is offline
 
Join Date: Apr 2002
Location: Amsterdam
Posts: 140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jaymullah View Post
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:

PHP Code:
define('THIS_SCRIPT''member'); 
change to:

PHP Code:
define('THIS_SCRIPT''member2'); 
find:

PHP Code:
$templatename iif($quick'memberinfo_quick''MEMBERINFO'); 
change to:

PHP Code:
$templatename iif($quick'memberinfo_quick''MEMBERINFO2'); 
Now create a new template called MEMBERINFO2 and add:

HTML Code:
$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:

HTML Code:
<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..
Reply With Quote
  #38  
Old 11-01-2007, 06:13 AM
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Posts: 758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.

- Second, Delete a Wrong Uploaded File in that Same Window.

(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)!!

I Hope you can Include this Options, as well as the Limit Size Options, Calorie!!

My Best Regards!!

Reply With Quote
  #39  
Old 11-12-2007, 01:20 PM
buurman's Avatar
buurman buurman is offline
 
Join Date: Apr 2002
Location: Amsterdam
Posts: 140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

INSTALLED... and happy with it..
some minor bugs in it...

It doesnt support files with a "space" or a "-" in it.
Reply With Quote
  #40  
Old 11-12-2007, 04:52 PM
zglows zglows is offline
 
Join Date: Oct 2007
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

please update this!!!!! its really nice
Reply With Quote
  #41  
Old 11-15-2007, 08:59 PM
Triky's Avatar
Triky Triky is offline
 
Join Date: Mar 2007
Location: [Italy]
Posts: 728
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just what I was searching for. Thank you.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:44 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04666 seconds
  • Memory Usage 2,342KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_html
  • (4)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete