Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
vB3 Member Album 2.0 Details »»
vB3 Member Album 2.0
Version: 1.00, by Velocd Velocd is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 04-09-2004 Last Update: Never Installs: 100
 
No support by the author.



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
  • Require pictures to be approved in order to be visible. You can exempt specified usergroups from this.
  • Thumbnails are generated for profile pictures. You must have GD installed and enabled via the AdminCP options page.
  • For more insight, refer to the attached screenshots, or install it!

Upgrade to 2.0
  • Redo steps 7-8, 11-12, 19-20, 26, 27, and 34
  • Revert the template "modifyprofilepic", and do steps 29-32
  • Run the following queries:
    [sql]
    ALTER TABLE `customprofilepic` ADD disapproved smallint(5) not null default'0';
    ALTER TABLE `customprofilepic` ADD reason varchar(100) not null;
    [/sql]

Notes
  • This hack does not support uploading multiple images per account.
  • Profile thumbnail sizes are defined by the attachment thumbnail sizes. So modify the attachment thumbnail sizes in your AdminCP options page if you wish to change the profile picture thumbnail sizes. Be sure to run "re-generate thumbnails" via the vB3 Member Album -> Approve Images" page.
  • Profile picture sizes (not thumbnails) are defined for each usergroup. Modify a usergroup via AdminCP to change the dimensions members under that group are allowed to have for profile pictures.

3rd Party Add-ons
  • Pseudomizer has posted a migration script that will transfer your files from my old vB2 Member Photo to the correct tables in this vB3 hack. Click here to view.
  • Pseudomizer also posted a portal-integration allowing you to display a random profile picture on your portal.
    Click here to view.
  • Thanks to those who posted 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

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

Comments
  #332  
Old 09-14-2004, 10:17 PM
Ganon Ganon is offline
 
Join Date: May 2002
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got it working now, thanks!
Reply With Quote
  #333  
Old 09-21-2004, 11:48 PM
venomx's Avatar
venomx venomx is offline
 
Join Date: Apr 2002
Location: Pennsylvania USA
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am getting a brpken image for members that do NOT have a image uploaded. This shows in the admin and on the album.... Any fixes?
Reply With Quote
  #334  
Old 09-29-2004, 10:25 AM
PitchouneN64ngc's Avatar
PitchouneN64ngc PitchouneN64ngc is offline
Senior Member
 
Join Date: Aug 2002
Location: France
Posts: 515
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just a suggestion

After you applied modifications into ./profile.php file, when you want to upload a picture and you have never picture uploaded before, you have a part of the 'modifyprofilepic' template who appears. This corresponding with this php code:

PHP Code:
 $profilepic $DB_site->query_first("
SELECT userid, dateline, comment, visible, disapproved, reason
FROM " 
TABLE_PREFIX "customprofilepic
WHERE userid = 
$bbuserinfo[userid]
"
);
 
  
$profilepic['comment'] = fetch_censored_text($profilepic['comment']);
  
$show['profilepic'] = iif($profilepictruefalse); 
It is possible to hide this part of the template?
Reply With Quote
  #335  
Old 09-29-2004, 10:32 AM
Pseudomizer's Avatar
Pseudomizer Pseudomizer is offline
 
Join Date: Mar 2002
Location: Germany
Posts: 614
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by PitchouneN64ngc
Just a suggestion

After you applied modifications into ./profile.php file, when you want to upload a picture and you have never picture uploaded before, you have a part of the 'modifyprofilepic' template who appears. This corresponding with this php code:

PHP Code:
 $profilepic $DB_site->query_first("
SELECT userid, dateline, comment, visible, disapproved, reason
FROM " 
TABLE_PREFIX "customprofilepic
WHERE userid = 
$bbuserinfo[userid]
"
);
 
  
$profilepic['comment'] = fetch_censored_text($profilepic['comment']);
  
$show['profilepic'] = iif($profilepictruefalse); 
It is possible to hide this part of the template?
This php code will never be visible in the template. Or do you want to hide the output of this php code via template? Please clarify.

Cheers,
Reply With Quote
  #336  
Old 09-29-2004, 07:22 PM
PitchouneN64ngc's Avatar
PitchouneN64ngc PitchouneN64ngc is offline
Senior Member
 
Join Date: Aug 2002
Location: France
Posts: 515
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

After i have made modifications into ./profile.php, i have like i have posted in attachment (profilepic.jpg).

And i have this code for the editprofilepic do into the profile.php file:

PHP Code:
if ($_REQUEST['do'] == 'editprofilepic')
{
    if (
$vboptions['profilepicenabled'] AND ($permissions['genericpermissions'] & CANPROFILEPIC))
    {
        
$profilepic $DB_site->query_first("
            SELECT userid, dateline, comment, visible, disapproved, reason
            FROM " 
TABLE_PREFIX "customprofilepic
            WHERE userid = 
$bbuserinfo[userid]
        "
);
        
$profilepic['comment'] = fetch_censored_text($profilepic['comment']);
        
$show['profilepic'] = iif($profilepictruefalse);
        
$permissions['profilepicmaxsize'] = vb_number_format($permissions['profilepicmaxsize'], 1true);
 
        
// draw cp nav bar
        
construct_usercp_nav('profilepic');
        
$navbits[''] = $vbphrase['edit_profile_picture'];
        
$templatename 'modifyprofilepic';
    }
    else
    {
        
print_no_permission();
    }

And I have no entries in the table customprofilepic.
Reply With Quote
  #337  
Old 09-29-2004, 11:12 PM
zer026 zer026 is offline
 
Join Date: Sep 2004
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This hack has too many issues...and considering vb already displays a member's profile pic on the memberlist(if enabled in ACP), all of this struggling seems rather odd. I apologize if i seem negative, it''s just an opinion and doesn't really count anyway...right on.
Reply With Quote
  #338  
Old 09-29-2004, 11:23 PM
Ted S Ted S is offline
 
Join Date: Dec 2003
Location: SoCal
Posts: 3,954
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

zer026,
I have the hack working fine and it only took following one person's changes. If you don't like it and don't find it functional then don't use it... no one needs every hack out there.
Reply With Quote
  #339  
Old 09-30-2004, 09:31 AM
PitchouneN64ngc's Avatar
PitchouneN64ngc PitchouneN64ngc is offline
Senior Member
 
Join Date: Aug 2002
Location: France
Posts: 515
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have resolved my problem ^^

On the ./profile.php file, you have this part of the code:

PHP Code:
        $profilepic['comment'] = fetch_censored_text($profilepic['comment']);

        
$show['profilepic'] = iif($profilepictruefalse); 
You must to change this 2 lines like this:

PHP Code:
        $show['profilepic'] = iif($profilepictruefalse);

        
$profilepic['comment'] = fetch_censored_text($profilepic['comment']); 
And all is ok
Reply With Quote
  #340  
Old 10-06-2004, 07:12 PM
joergh's Avatar
joergh joergh is offline
 
Join Date: Oct 2001
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack,

I used the old member hack in vb2. After upgrading to vb3 i didn?t had the gallery live for months:

Today I tried to (re)install it on a vb3.0.3:

1) I used this file:

https://vborg.vbsupport.ru/showpost....&postcount=320

2) then I used the migrating tool from Pseudomizer: THX!

https://vborg.vbsupport.ru/showpost....3&postcount=76

Everything went well!

If you like to see it:

http://www.revierloewenfans.de/forums/album.php

joergh
Reply With Quote
  #341  
Old 10-10-2004, 10:08 PM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works like a dream right out of the box!
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:39 PM.


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.10363 seconds
  • Memory Usage 2,333KB
  • 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
  • (5)bbcode_php
  • (1)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
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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