Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

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
  #212  
Old 07-14-2004, 09:05 AM
buro9 buro9 is offline
 
Join Date: Feb 2002
Location: London, UK
Posts: 585
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

* sigh *

OK, These changes remove the word Array and put in the thumbnail data.

In functions_upload.php find the following (created by this hack):
PHP Code:
    $image['update'] = ", thumbnaildata = '"$DB_site->escape_string($thumbnail)."'";
    
$image['insert'] = "'".$DB_site->escape_string($thumbnail)."',"
Replace it with:
PHP Code:
    $image['update'] = ", thumbnaildata = '"$DB_site->escape_string($thumbnail['filedata'])."'";
    
$image['insert'] = "'".$DB_site->escape_string($thumbnail['filedata'])."',"
In albumcp.php, which is the one in the admincp folder, find the following:
PHP Code:
      UPDATE " . TABLE_PREFIX . "customprofilepic
      SET thumbnaildata 
'" . $DB_site->escape_string($thumbnail) . "'
      
WHERE picture_id $image[picture_id
Replace that with:
PHP Code:
      UPDATE " . TABLE_PREFIX . "customprofilepic
      SET thumbnaildata 
'" . $DB_site->escape_string($thumbnail['filedata']) . "'
      
WHERE picture_id $image[picture_id
Finally, you might also want to do find this in that file:
PHP Code:
if ($_REQUEST['do'] == 'rebuildthumbs')

And follow it with this, adjusting the number of seconds to suit your needs:
PHP Code:
  set_time_limit(120); 
That last bit simply allows the rebuild thumbnails thing to run for 120 seconds = 2 minutes... because there's no pagination stuff in that script and it will probably time out if you have a load of users to rebuild thumbs for.

Other things you might want to do whilst your here... take a look at this thread: https://vborg.vbsupport.ru/showthread.php?t=66765
And then execute this piece of SQL if you haven't already:
[sql]
ALTER TABLE `customprofilepic` ADD INDEX ( `userid` )
[/sql]

Obviously prepending any TABLE_PREFIX that you use, if indeed you use one.

Any more bugs with this? Probably, so let's resolve them eh? Just report them and there's nothing stopping you lot looking around and trying to figure it out too
Reply With Quote
  #213  
Old 07-14-2004, 09:28 AM
Steve123 Steve123 is offline
 
Join Date: Sep 2002
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i was in the process of triyng to find out why it was doing the array..

then i got a reply to this thread ..

it works thanks
Reply With Quote
  #214  
Old 07-14-2004, 02:46 PM
Malfunktion's Avatar
Malfunktion Malfunktion is offline
 
Join Date: Jun 2002
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

mine still displays the array
Reply With Quote
  #215  
Old 07-14-2004, 03:15 PM
buro9 buro9 is offline
 
Join Date: Feb 2002
Location: London, UK
Posts: 585
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Malfunktion
mine still displays the array
And you have rebuilt the thumbnails, yes?
Reply With Quote
  #216  
Old 07-14-2004, 03:28 PM
Malfunktion's Avatar
Malfunktion Malfunktion is offline
 
Join Date: Jun 2002
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

correct
Reply With Quote
  #217  
Old 07-15-2004, 06:10 AM
kjell kjell is offline
 
Join Date: Jun 2004
Location: Sweden
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works again
Thanks for having a look at this buro9
Reply With Quote
  #218  
Old 07-15-2004, 06:13 AM
Alien's Avatar
Alien Alien is offline
 
Join Date: Oct 2001
Posts: 827
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fresh install. This definatly needs work.

In the admincp (and album.php), everything is red x'd no matter how much counters i update everywhere.. Attempted fixes above, still same problem.. <sigh>
Reply With Quote
  #219  
Old 07-15-2004, 06:29 AM
buro9 buro9 is offline
 
Join Date: Feb 2002
Location: London, UK
Posts: 585
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Alien
Fresh install, same problem as Malfunktion. This definatly needs work.

In the admincp (and album.php), everything is red x'd no matter how much counters i update everywhere.. Attempted fixes above, still same problem.. <sigh>
Update Counters?

The Rebuild Thumbnails function for the Album can be found in http://www.example.com/forums/admincp/albumcp.php

If you've installed the hack fully, that would be:
Admin CP > Member Album > Verify Pictures > Rebuild Thumbnails.

The one in Update Counters do posts and attachments... not profile pics

Can you confirm this is what you are running
Reply With Quote
  #220  
Old 07-15-2004, 06:39 AM
Alien's Avatar
Alien Alien is offline
 
Join Date: Oct 2001
Posts: 827
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by buro9
Update Counters?

The Rebuild Thumbnails function for the Album can be found in http://www.example.com/forums/admincp/albumcp.php

If you've installed the hack fully, that would be:
Admin CP > Member Album > Verify Pictures > Rebuild Thumbnails.

The one in Update Counters do posts and attachments... not profile pics

Can you confirm this is what you are running
Sorry for the lack of clarity, it's very late... lol

Yes, I've run Member Album > Verify Pictures > Rebuild Thumbnails. It goes through them (I have about 100 currently) but if you right click on any of them and open it's a red X, as well as all listings in the album.php...
Reply With Quote
  #221  
Old 07-15-2004, 06:50 AM
buro9 buro9 is offline
 
Join Date: Feb 2002
Location: London, UK
Posts: 585
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Alien
Sorry for the lack of clarity, it's very late... lol

Yes, I've run Member Album > Verify Pictures > Rebuild Thumbnails. It goes through them (I have about 100 currently) but if you right click on any of them and open it's a red X, as well as all listings in the album.php...
Cool

One more silly request then, could you CTRL + F5 that page to ensure that it's not a browser cache thing... even Firefox still cached the bad results when I finally fixed mine.

If not... then I shall see what else this could be, which might involve you looking for things in your code
Reply With Quote
Reply


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:19 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.05983 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
  • (6)bbcode_php
  • (4)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