vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Profile Gallery: Allow Users to Upload Member Profile Images (https://vborg.vbsupport.ru/showthread.php?t=141174)

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:

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 :)

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

Quote:

Originally Posted by abramelin (Post 1196035)
there must be max file size permission and upload file limit otherwise users can upload lots of pictures with big sizes

Quote:

Originally Posted by Inferno Dragon (Post 1197923)
nice mod indeed..but what about the amount/limit of images a member can upload?

Quote:

Originally Posted by globalinsites (Post 1199888)
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.

Quote:

Originally Posted by abramelin (Post 1198329)
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.

Quote:

Originally Posted by bada_bing (Post 1196449)
This would be nice if it had usergroup permissions.

There is one way... In the read me provided with this mod it says
Quote:

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.


All times are GMT. The time now is 02:20 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01136 seconds
  • Memory Usage 1,781KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (4)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete