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
  #167  
Old 06-08-2004, 01:08 AM
Pseudomizer's Avatar
Pseudomizer Pseudomizer is offline
 
Join Date: Mar 2002
Location: Germany
Posts: 614
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just as a short update for all of you: If someone uploads an anim gif, there will be no thumbnail due to the resizing and new image create. You will see the famous red X in the gallery. But if you go into the members profile you will see the anim gif.

VeloCD ? Any idea why this happens ? If we insert a GIF as blob into the DB it should not matter if it is an anim gif or not. So it works for the profile pic. But is there a way to recognize if a GIF is an anim GIF and then do NO resizing for a thumbnail ? I do not know of any procedure to check this but it does not hurt to ask for it.

Cheers,
Reply With Quote
  #168  
Old 06-13-2004, 10:51 AM
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Location: Wuppertal, NRW, Germany
Posts: 1,541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Perfect Hack - excactly something is searched by me for a long time !
Reply With Quote
  #169  
Old 06-16-2004, 12:56 AM
Ted S Ted S is offline
 
Join Date: Dec 2003
Location: SoCal
Posts: 3,954
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack although changing all those files is never very fun!

If you want another gallery in action feel free to check out http://www.scubaboard.com/album.php?...date&order=asc (stock hack right now but I'll probably modify it a bit this week changing the templates mainly).
Reply With Quote
  #170  
Old 06-16-2004, 01:44 AM
Pseudomizer's Avatar
Pseudomizer Pseudomizer is offline
 
Join Date: Mar 2002
Location: Germany
Posts: 614
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ted S
Great hack although changing all those files is never very fun!

If you want another gallery in action feel free to check out http://www.scubaboard.com/album.php?...date&order=asc (stock hack right now but I'll probably modify it a bit this week changing the templates mainly).
Then please open a new thread for your advertising and publish your own hack.

Cheers,
Reply With Quote
  #171  
Old 06-16-2004, 04:54 AM
Ted S Ted S is offline
 
Join Date: Dec 2003
Location: SoCal
Posts: 3,954
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No intent to change the code, just change the templates to better fit the tables (a few of them distort on my templates).... I'm not interested in touching any code when it works so well!
Reply With Quote
  #172  
Old 06-16-2004, 05:22 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to have this send an email to the Admin when a new pic has been uploaded? I had a user upload a pic and I didn't even know it was there ro be verified until I accidentally checked this in the Admin CP.
Reply With Quote
  #173  
Old 06-16-2004, 05:52 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Pseudomizer
Then please open a new thread for your advertising and publish your own hack.

Cheers,
I think you misunderstood Ted - when he said gallery in action, he means he is using this hack, and just wanted to show another gallery using this hack in action.
Reply With Quote
  #174  
Old 06-16-2004, 09:06 AM
Pseudomizer's Avatar
Pseudomizer Pseudomizer is offline
 
Join Date: Mar 2002
Location: Germany
Posts: 614
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Upps. Then i am very sorry. I apologize for that. The word "another". Sorry again.

Cheers,
Reply With Quote
  #175  
Old 06-16-2004, 09:32 PM
highlander_RD's Avatar
highlander_RD highlander_RD is offline
 
Join Date: Oct 2003
Location: Italy
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Since I succesfully installed this *must have* hack migrating pics from vB2, I found the way to add a "comment" into the album_image_list:

1) Add this code in profile.php just below:
require_once('./includes/functions_upload.php');
process_image_upload('profilepic', $avatarurl);
PHP Code:
        $DB_site->query("UPDATE " TABLE_PREFIX "customprofilepic SET comment = '" addslashes($_POST['commento']) . "' WHERE userid = $bbuserinfo[userid]"); 
2) Add this code in template modifyprofilepic, just below:
<tr>
<td><phrase 1="$permissions[profilepicmaxwidth]" 2="$permissions[profilepicmaxheight]" 3="$permissions[profilepicmaxsize]">$vbphrase[note_maximum_size_x_y_or_z]</phrase></td>
</tr>
Code:
<tr><td>
Comment: <br />
<input type="text" class="bginput" name="commento" size="50" maxlength="100" /></td></tr>
3) In the same template modifyprofilepic replace
<div class="smallfont" style="margin-top:$stylevar[formspacer]px"><label for="profilepic"><input type="checkbox" name="deleteprofilepic" value="1" id="profilepic">$vbphrase[delete_current_profile_pic] </label></div>
with this:
Code:
<div class="smallfont" style="margin-top:$stylevar[formspacer]px"><label for="profilepic"><input type="checkbox" name="deleteprofilepic" value="1" id="profilepic">$vbphrase[delete_current_profile_pic] - <i>$profilepic[comment]</i></label></div>
4) In template album_image_list the comment will appear as follows:
Code:
     <td valign="top" style="padding-left: 20px"><a style="font-size:11pt" href="member.php?$session[sessionurl]u=$image[userid]"><b>$image[musername]</b></a><br /><span class="smallfont">$image[usertitle]<br /><br /><i>$image[comment]</i></span><br />
     </td>
It works fine for me, if you want to check, my beta link to have a screenshot is:
http://www.egcommunity.it/forumbeta/album.php?
(Sorry, need to be registered in order to view the photo gallery!)

;-)
Reply With Quote
  #176  
Old 06-16-2004, 09:43 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by highlander_RD
Since I succesfully installed this *must have* hack migrating pics from vB2, I found the way to add a "comment" into the album_image_list:

1) Add this code in profile.php just below:
require_once('./includes/functions_upload.php');
process_image_upload('profilepic', $avatarurl);
PHP Code:
        $DB_site->query("UPDATE " TABLE_PREFIX "customprofilepic SET comment = '" addslashes($_POST['commento']) . "' WHERE userid = $bbuserinfo[userid]"); 
2) Add this code in template modifyprofilepic, just below:
<tr>
<td><phrase 1="$permissions[profilepicmaxwidth]" 2="$permissions[profilepicmaxheight]" 3="$permissions[profilepicmaxsize]">$vbphrase[note_maximum_size_x_y_or_z]</phrase></td>
</tr>
Code:
<tr><td>
Comment: <br />
<input type="text" class="bginput" name="commento" size="50" maxlength="100" /></td></tr>
3) In the same template modifyprofilepic replace
<div class="smallfont" style="margin-top:$stylevar[formspacer]px"><label for="profilepic"><input type="checkbox" name="deleteprofilepic" value="1" id="profilepic">$vbphrase[delete_current_profile_pic] </label></div>
with this:
Code:
<div class="smallfont" style="margin-top:$stylevar[formspacer]px"><label for="profilepic"><input type="checkbox" name="deleteprofilepic" value="1" id="profilepic">$vbphrase[delete_current_profile_pic] - <i>$profilepic[comment]</i></label></div>
4) In template album_image_list the comment will appear as follows:
Code:
<td valign="top" style="padding-left: 20px"><a style="font-size:11pt" href="member.php?$session[sessionurl]u=$image[userid]"><b>$image[musername]</b></a><br /><span class="smallfont">$image[usertitle]<br /><br /><i>$image[comment]</i></span><br />
</td>
It works fine for me, if you want to check, my beta link to have a screenshot is:
http://www.egcommunity.it/forumbeta/album.php?
(Sorry, need to be registered in order to view the photo gallery!)

;-)
How about a screenshot then?
Reply With Quote
  #177  
Old 06-17-2004, 11:10 PM
highlander_RD's Avatar
highlander_RD highlander_RD is offline
 
Join Date: Oct 2003
Location: Italy
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo
How about a screenshot then?
Yes, here they are! :squareeyed:
the modifyprofilepic page with the input field and the comment below the photo:
Reply With Quote
  #178  
Old 06-17-2004, 11:21 PM
Pseudomizer's Avatar
Pseudomizer Pseudomizer is offline
 
Join Date: Mar 2002
Location: Germany
Posts: 614
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by highlander_RD
Yes, here they are! :squareeyed:
the modifyprofilepic page with the input field and the comment below the photo:
Sorry, but for my understanding. You are running Member Photo album v2.0 on VB 3.0.x and you want to migrate the pics from the member album VB2.3.x to this new version ? Is this correct ?

Cheers,
Reply With Quote
  #179  
Old 06-17-2004, 11:23 PM
highlander_RD's Avatar
highlander_RD highlander_RD is offline
 
Join Date: Oct 2003
Location: Italy
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

and here the screenshot of the photo gallery (the comments are on the right in italic fonts):
Reply With Quote
  #180  
Old 06-17-2004, 11:28 PM
highlander_RD's Avatar
highlander_RD highlander_RD is offline
 
Join Date: Oct 2003
Location: Italy
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Pseudomizer
Sorry, but for my understanding. You are running Member Photo album v2.0 on VB 3.0.x and you want to migrate the pics from the member album VB2.3.x to this new version ? Is this correct ?

Cheers,
No.
I had on vB 2.2.9 vb Member Photo by Velocd with the "comment" field.
I installed Member Photo Album v2.0 on vB 3.0.1 but I didn' find the "comment" field, so I just added this option that was present on the earlier version.

Thanks
Reply With Quote
  #181  
Old 06-18-2004, 08:18 PM
Pseudomizer's Avatar
Pseudomizer Pseudomizer is offline
 
Join Date: Mar 2002
Location: Germany
Posts: 614
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by highlander_RD
No.
I had on vB 2.2.9 vb Member Photo by Velocd with the "comment" field.
I installed Member Photo Album v2.0 on vB 3.0.1 but I didn' find the "comment" field, so I just added this option that was present on the earlier version.

Thanks
Ok. The reason why i asked was if you have seen my migration script from the old version to this new version. But you don't need it any more.

Cheers,
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 12:05 AM.


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.05628 seconds
  • Memory Usage 2,388KB
  • Queries Executed 30 (?)
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_code
  • (2)bbcode_php
  • (7)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
  • (16)post_thanks_box
  • (16)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (16)post_thanks_postbit_info
  • (15)postbit
  • (16)postbit_onlinestatus
  • (16)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