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
  #202  
Old 09-08-2003, 07:11 PM
irn-bru's Avatar
irn-bru irn-bru is offline
 
Join Date: Feb 2002
Location: Scotland
Posts: 98
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 03:01 PM Nebby said this in Post #200
i get this;

Code:
Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/nebby/htdocs/vb/gdresize.php on line 9
EDIT: i've checked the folder, and the pics are uploading fine, it's just i get that error, and it's not showing in the gallery.
I reckon you need chmod 777 on that gallery folder m8.
Dont really know I am just your average vb muppet :classic:
  #203  
Old 09-13-2003, 10:45 PM
Nebby Nebby is offline
 
Join Date: Mar 2003
Location: England
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nope, it's all CHMOD'd, the images are getting uploaded, just giving me that error and not showing in the gallery.
  #204  
Old 09-23-2003, 02:35 AM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Fatal error: Call to undefined function: imagecreatefromjpeg()
I'm mentioned this many times already, you must have GD2 library installed for this hack to work. GD2 is an external library, which ships with newer versions of PHP (4.3.0+), that helps PHP do advance imaging process.
  #205  
Old 10-03-2003, 10:35 AM
Athmo Athmo is offline
 
Join Date: Nov 2001
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by engquist
I installed this hack about 3 months ago, so I'm running the version from then.

It is truely wonderful and I thank you Velocd!

I have one thing I'd like to change on it if anyone knows how to code it.

I use the verify pictures system. when I want to disapprove a photo I have to go into phpMyadmin and delete it from the database and then go into the server, look at each member photo (I have like 100 +) and then delete the unapproved ones.

if an option to delete and disapprove a photo can be added via the admin CP, I would be eternally grateful.

all I need is just the lines of code to add/overwrite and the files to do it to.

Thank you all for your hard work on this hack! Even if this change is never made, it's still an awesome hack that the members of my forums really enjoy!

Right!

Is there a addon to delete some pictures?
Now it is a pain in the *ss to delete a photo
  #206  
Old 10-08-2003, 03:31 PM
Floh Floh is offline
 
Join Date: Jan 2002
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Old, but good question. Is there a possibillity to delete a photo??

Floh
  #207  
Old 10-14-2003, 09:44 AM
DaveRobbo's Avatar
DaveRobbo DaveRobbo is offline
 
Join Date: Nov 2002
Location: Berkshire, UK
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK - I'm having some trouble with this hack now - but it's rather hard to describe so bear with me....

My host provider didn't have the latest GD library installed, so the hack wouldn't work as originally released and I had to defer installing it for many months.

Then someone on this thread came up with an alternative version of one of the files (I think it was gdresize.php) which though was unsupported, was supposed to get around the GD2 library problem. I installed the hack with this modification and it all worked great! (many thanks to both VeloCD and the guy who came up with the mod to make it work on "pre-GD2" - sorry can't remember who you were but it worked fine)

Now, many months later, my host has finally upgraded their PHP and GD libraries - and the "mod'd" version now doesn't seem to work too good - the generated thumbnails seem to get their colourmap all confoozed. I'm assuming this is the upgraded GD libraries that are responsible for this.

However - my problem; I can no longer find what the "mod" was! I've tried downloading the original hack again - but can't see any difference between that and the version of gdresize.php I am using.

Can anyone think what it is I may have done? I've got around the problem temporarily my altering the templates so that the thumbnail page uses the fullsize picture - but scaled down to thumbnail size by the browser. This works fine although it means that the thumbnail page is actually downloading all the fullsize photos while only displaying them at thumbnail resolution.

I'm sure I'm just missing something obvious here - both the original hack and the mod seem great and all kudos to both authors.
  #208  
Old 10-15-2003, 09:28 PM
Areku Areku is offline
 
Join Date: Feb 2002
Posts: 540
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

From time to time, the UNAPPROVED section of the Admin panel gets full coz users won't upload any new photos...

Since this hack didnt provide any delete photos, I decided to:

1) approve all conforming photos
2) run this php file every once in a while, when unapproved photos list is too long

Hope this helps any1 like me....

Set up instructions:
**THIS HACK WILL DELETE ALL UNAPPROVED PHOTOS FROM MEMBERPHOTO TABLE**

1) download attachment
2) put deletephotos.php on forums/admin folder
3) edit admin/index.php

Find
makenavoption("Verify","pverify.php?action=verify" );

Replace with
makenavoption("Verify","pverify.php?action=verify" ,"|");
makenavoption("Delete Unapproved","deletephotos.php?action=");

Save, upload.
4) Enter admin panel.
5) approve all photos complying with your rules...
6) click on Delete Unapproved and follow instructions.
  #209  
Old 10-15-2003, 09:59 PM
aquariumpros aquariumpros is offline
 
Join Date: Jul 2002
Location: Hawai`i
Posts: 98
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great add-on...

One problem - I am getting the following error when I run the delete command:

Code:
Database error in vBulletin Control Panel 2.2.9:

Invalid SQL: delete FROM 'memberphoto' WHERE visible='-1'
mysql error: You have an error in your SQL syntax near ''memberphoto' WHERE visible='-1'' at line 1

mysql error number: 1064

Date: Wednesday 15th of October 2003 06:57:36 PM
Script: http://www.aquariumpros.ca/forums/fo...tos.php?paco=1
Referer: http://208.56.122.88/forums/admin/de...php?action=&s=
Repair Report: This type of error cannot be automatically repaired.
Any help would be appreciated!

TIA,
  #210  
Old 10-15-2003, 10:03 PM
Areku Areku is offline
 
Join Date: Feb 2002
Posts: 540
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm afraid I uploaded a wrong version of the php... I've reuploaded the correct one. Just remove the quotes from the SQL query in the php file, ie.:

where it reads
delete FROM 'memberphoto' WHERE visible='-1'

put
delete FROM memberphoto WHERE visible=-1
  #211  
Old 10-15-2003, 10:11 PM
aquariumpros aquariumpros is offline
 
Join Date: Jul 2002
Location: Hawai`i
Posts: 98
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Areku
I'm afraid I uploaded a wrong version of the php... I've reuploaded the correct one. Just remove the quotes from the SQL query in the php file, ie.:

where it reads
delete FROM 'memberphoto' WHERE visible='-1'

put
delete FROM memberphoto WHERE visible=-1
Sweet!

That fixed it 100%.

It's soo nice not to see that long list of memberphotos anymore!

Thank you greatly for this add-on Areku

Cheers,
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 04:41 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.13805 seconds
  • Memory Usage 2,312KB
  • 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
  • (2)bbcode_code
  • (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
  • (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