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

Closed Thread
 
Thread Tools
vB Member Photo Details »»
vB Member Photo
Version: 1.00, by Velocd Velocd is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 03-02-2003 Last Update: Never Installs: 102
 
No support by the author.

vB Member Photo
by Velocd

This hack, as well all my other vB2 hacks, I no longer provide support for (being I run vB3 and it's too much hassel to debug vB2). When vB3 Release Candidate comes out, by request I might convert some of my hacks.

Updates:

Latest update was version 1.3b on 08.01.03.


Description:

It's been ages since my last hack, due to my lack of time for coding lately. This feature here though is one I developed for my forum about a week ago, and just recently completed making the instructions for it so I could release it on vBulletin.org.

Just as the name implies, this hack will allow your members to upload a photo of themselves (or whatever you allow), then that photo will be stored in a directory of your website. In addition to just the photo, using the GD2.0 Library, thumbnails are generated corresponding to each members photo and placed inside the directory. A new link via the memberlist nav page will then be able for access to view these images all organized neatly in a photo gallery.

In addition to just this, there is a verification system integrated with the ACP for easy checking of images the members upload, before they are placed in the photo gallery.

The main reason I developed this hack is because all the other photo gallery hacks are pretty.. well, ineffective.

Features:
  • Utilizes GD2.0 to automatically generate thumbnails for your uploaded images
  • Organized photo gallery with a very easy-to-browse interface
  • Verification system allows efficient methods of regulating what is shown in the photo gallery
  • A wide variety of customizable options via the Admin CP

Requirements/Restrictions:
  • GD2.0 Library is absolutely needed, which comes pre-installed with the latest PHP version, 4.3.0.
  • This script does not support multiple-image uploads, and I will not be releasing a version of this hack does!
  • Because the GD library does not support the GIF image format, the photo gallery does not either. The only images that can be uploaded are PNG and JPG. (I hardly think this will be an issue for the most of us)
Installation:
  1. Upload install_photo.php to your admin directory, and run it through your browser. All instructions for this hack are listed in there.
  2. After the hack is installed, go to your "admin cp -> options" page and set the member photo gallery options to your own preference.

Screenshots:

Refer to the next several posts.

---------------

If you use this hack, please remember to click install!

Show Your Support

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

Comments
  #62  
Old 03-06-2003, 06:22 PM
mbaskett mbaskett is offline
 
Join Date: Jan 2002
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by klunderj
Just installed this hack.. took a while. Then I realized my system is hosted on a windows box and is not capable of running GD. Well, I modified some of the scripts and got the members photo album to work, just couldnt use the thumbnails. Modified gdresize and member.php

Gonna go click on install now
Windows can run GD... just install the distributable version of PHP 4.3.1 is avaiable now, edit the php.ini to remove the comment line from

extension=php_gd2.dll

Download the PHP zip for windows (not the installer package), and extract php_gd2.dll into your PHP directory... It'll work like a charm.
  #63  
Old 03-08-2003, 02:00 AM
Mike11212 Mike11212 is offline
 
Join Date: Jul 2002
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

be cool if u could add a bio with this
  #64  
Old 03-08-2003, 01:52 PM
dv6cougar dv6cougar is offline
 
Join Date: Mar 2003
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

awesome job!

i like it so far, having a few problems biggest one woudl be

PHP Code:
Fatal errorCall to undefined function: imagecreatefromjpeg() in /home/tunercar/public_html/forums/gdresize.php on line 9 
but I asked my host to install the GD 2.0 now, to make sure we have it, so i bet that's it


very nicely done

installs....

i'm gonna see if i can rendar this one to use a full gallery
  #65  
Old 03-08-2003, 09:04 PM
dv6cougar dv6cougar is offline
 
Join Date: Mar 2003
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok still no luck!

some body help me out please

thanks alot! the program is installed and i did the mod 3 times making sure i had done teh steps and all was done

here's the script for thsoe whoe have not seen it...

PHP Code:
<?php



function createthumb($name,$filename,$new_w,$new_h,$quality){

    
$system=explode(".",$name);

    if (
preg_match("/jpg|jpeg/",$system[1])){$src_img=imagecreatefromjpeg($name);}// LINE 9

    
if (preg_match("/png/",$system[1])){$src_img=imagecreatefrompng($name);}

    
$old_x=imageSX($src_img);

    
$old_y=imageSY($src_img);

    if (
$old_x $old_y) {

        
$thumb_w=$new_w;

        
$thumb_h=$old_y*($new_h/$old_x);

    }

    if (
$old_x $old_y) {

        
$thumb_w=$old_x*($new_w/$old_y);

        
$thumb_h=$new_h;

    }

    if (
$old_x == $old_y) {

        
$thumb_w=$new_w;

        
$thumb_h=$new_h;

    }



        
$dst_img=ImageCreateTrueColor($thumb_w,$thumb_h);

        
imagecopyresampled($dst_img,$src_img,0,0,0,0,$thumb_w,$thumb_h,$old_x,$old_y);



    if (
preg_match("/png/",$system[1])){

        @
header ("Content-type: image/png");

        @
imagepng($dst_img,$filename);

    } else {

        @
header ("Content-type: image/jpeg");

        @
imagejpeg($dst_img,$filename,$quality);

    }

    
imagedestroy($dst_img);

    
imagedestroy($src_img);

}



?>
line 9 is throwing this error

PHP Code:

Fatal error
Call to undefined function: imagecreatefromjpeg() in /home/tunercar/public_html/forums/gdresize.php on line 9 
  #66  
Old 03-09-2003, 03:08 PM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

imagecreatefromjpeg() is a GD2.0 predefined function, and if this is coming up as undefined, then you have an error in your GD installation, or maybe JPG support is not enabled for GD.

Do as I have instructed to a user in this previous post:
https://vborg.vbsupport.ru/showthrea...911#post360911

Then make sure JPG/PNG is enabled, and that PHP on the server is being started with GD support.
  #67  
Old 03-10-2003, 03:49 AM
colby colby is offline
 
Join Date: Mar 2003
Location: georgia
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

:cry: Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/**/public_html/forum/gdresize.php on line 5
  #68  
Old 03-10-2003, 04:19 AM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Colby, according to the link you sent to me of your Phpinfo info page, there is no reference whatsoever of GD installed. I would inform your host about this to insure that they have absolutely installed it. you are running PHP 4.2.3, also, so it does not come pre-installed with it.
  #69  
Old 03-10-2003, 04:25 AM
colby colby is offline
 
Join Date: Mar 2003
Location: georgia
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am good friends with my host, and I was wondering if you could tell me where i could tell him to get this GD thing for his servers, please?
  #70  
Old 03-11-2003, 01:29 AM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can download GD from http://www.boutell.com/gd/
(just search "GD library" in google)
  #71  
Old 03-11-2003, 11:23 PM
Xyphen's Avatar
Xyphen Xyphen is offline
 
Join Date: Dec 2002
Location: ON, Canada
Posts: 370
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Possible to display the member photo in their profile?
Closed Thread


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 08:26 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.04835 seconds
  • Memory Usage 2,329KB
  • 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
  • (3)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
  • (1)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