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

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
  #162  
Old 07-04-2003, 10:52 PM
mackers8923 mackers8923 is offline
 
Join Date: Dec 2002
Location: Belfast, N Ireland
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wey Hey,

Tenpit you are a "Star" this hack is now working 100% for me and my members. If there is anything you need a hand with code or installing wise let me know. I owe you big style....

Thanks again
  #163  
Old 07-06-2003, 01:20 AM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If your host is too lazy to upgrade to GD2, I really suggest getting a new host. If you have GD installed, it also means you have an old PHP, for GD2 is shipped with PHP4.3 and above. Though, as I've found out, you must configure php.ini and uncomment the GD line in order to actually enable GD2 for PHP4.3 and greater.

For an inexpensive and incredibly reliable host, I recommend www.vervehosting.com, which offers latest GD, and always updates to the newest version of software.
  #164  
Old 07-06-2003, 08:56 AM
Tenpit Tenpit is offline
 
Join Date: Mar 2002
Location: UK
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 03:20 AM Velocd said this in Post #162
If your host is too lazy to upgrade to GD2, I really suggest getting a new host. If you have GD installed, it also means you have an old PHP, for GD2 is shipped with PHP4.3 and above. Though, as I've found out, you must configure php.ini and uncomment the GD line in order to actually enable GD2 for PHP4.3 and greater.

For an inexpensive and incredibly reliable host, I recommend www.vervehosting.com, which offers latest GD, and always updates to the newest version of software.
Problem is the hosts that use Ensim for their control panels. To retain full support from Ensim they cannot install php except in the form of Ensim patches and upgrades.

As of today, Ensim have still not released a patch to upgrade php with GD2 support.
  #165  
Old 07-13-2003, 08:31 PM
joeboo's Avatar
joeboo joeboo is offline
 
Join Date: Jun 2002
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I keep getting this error:
Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/blackmag/public_html/forums/gdresize.php on line 5

And yes, i do have the latest GD Library.
  #166  
Old 07-14-2003, 06:54 AM
BuffyWorld BuffyWorld is offline
 
Join Date: Sep 2002
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm having alot of problems with people posting OTHER things in the Member Gallery. In the next release, if there is going to be one. Can you make it so a moderator/admin can remove a user's photo from the database.

And of course mod/admin to be able to add pictures for other users would be cool also.

Thank you.
  #167  
Old 07-19-2003, 01:43 AM
Rebel38 Rebel38 is offline
 
Join Date: Feb 2003
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
03-23-03 at 11:35 PM Steve123 said this in Post #79
Add Photo To Profile..

I dident add the approval system because i know i will never use it, but its easy to encode if someone needs it..

This is the first time ive modded a hack before, so dont scream at me if im doin it wrong

member.php

Just Before
PHP Code:
  
  
eval("dooutput(\"".gettemplate("getinfo")."\");");
  
}
    
// ############################### start aim message ############################### 
Add
PHP Code:
$checkphoto $DB_site->query_first("SELECT comments,visible FROM memberphoto WHERE userid='$userinfo[userid]'");
 
 if(
$checkphoto){
            
$profilephoto "<img src=\"memberpics/photo$userinfo[userid]_$userinfo[photonum].$userinfo[phototype]\">";
  
        } else {
            
$profilephoto "$userinfo[username] hasen't uploaded a photo yet.";
    }

    if(
$checkphoto['comments'] != ""){
        
$photomessage $checkphoto['comments'];     
    } 
Then in your getinfo Template put
Code:
$profilephoto<br> $photomessage
Where you want the photo to appear..
Hi, does anyone know how to make this piece of script pull the thumbnail pic instead of the full size pic in the user profile?
thanks guys
Rebel38
  #168  
Old 07-19-2003, 06:21 PM
Cal Poly Forum Cal Poly Forum is offline
 
Join Date: Jul 2003
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

edit: I don't know why my forum categories have been duplicated (from two to FOUR) after this hack. :ermm:
  #169  
Old 07-23-2003, 10:35 PM
Rebel38 Rebel38 is offline
 
Join Date: Feb 2003
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bump....
  #170  
Old 07-24-2003, 01:11 PM
pjgoncalves pjgoncalves is offline
 
Join Date: Dec 2001
Location: Portugal
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack! tks

I have a prob, when in usercp i click on 'Edit Photo' i get the page saying:

Approval Status:
When your photo becomes verified by an administrator, its status will be shown here. If your photo is disapproved, please check it for content to ensure it is appropriate.

In AdminCP i have 'Use Approval System' off.. what am i missing? :|

/edit

the last prob is solved, it was missing a template

Now i have another..

Fatal error: Call to undefined function: imagecreatefromjpeg() in /home-hosting/ultimate-accounts/sh.ultimate.pt/pg/public_html/vbb/gdresize.php on line 5


Any tip?

tks!

/edit

i hadnt support for jpeg, compiled with jpeg ad works now :banana:
  #171  
Old 07-24-2003, 09:36 PM
Areku Areku is offline
 
Join Date: Feb 2002
Posts: 540
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

COngrats Velocd, this hack rocks!

However it conflicts with the TODAY/YESTERDAY timestamp.

https://vborg.vbsupport.ru/showthrea...oday+yesterday



Can any1 help me sorting this out?


When any1 ups a pic, it displays: "added: today at,"

and it's pretty ugly.

Since I use this timestamp everywhere else, I can't remove the "at"....

Ideas?

Thanks!
Closed Thread

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 05:06 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.04850 seconds
  • Memory Usage 2,309KB
  • Queries Executed 27 (?)
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
  • (1)bbcode_code
  • (2)bbcode_php
  • (2)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_postinfo_query
  • fetch_postinfo
  • 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