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
  #182  
Old 07-28-2003, 04:52 PM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I've uploaded version 1.4a, with the two minor fixes.

But, I'm not sure if I've fixed the error in pverify.php. I run vBulletin 3 Beta 4, and don't have my hack installed anymore, so I couldn't test to make sure I coded it correctly.

So Areku, or anyone else, if you could please test if out for me a.s.a.p, to make sure that everything works fine with the verification.

I'm sorta in a bit of a hurry, because I have to leave soon, and wont be back until later tonight.
  #183  
Old 07-28-2003, 06:28 PM
Areku Areku is offline
 
Join Date: Feb 2002
Posts: 540
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I still keep getting it, on the same line.

Any workaround meanwhile?
  #184  
Old 07-28-2003, 07:08 PM
TonTon TonTon is offline
 
Join Date: Apr 2003
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it possible to make this picture go into the Get info bit.
  #185  
Old 07-28-2003, 08:44 PM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
I still keep getting it, on the same line.

Any workaround meanwhile?
Whoa.. are you sure you uploaded the new pverify.php file? Clear your cache and download the zip as well, since there is always this cache-glitch up with attachments on this forum.

I used a different method, so you shouldn't be getting a "each()" error. If you are getting a different error, please post it.

Quote:
Is it possible to make this picture go into the Get info bit.
Look through this thread, somebody posted an add-on for making it show up in the get-info page.
  #186  
Old 07-28-2003, 10:17 PM
Areku Areku is offline
 
Join Date: Feb 2002
Posts: 540
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

U were rite! Damn cache! I even compared dates before uploading cached 1.4 and they were still different...

Anyway, now 1.4 is on place and I get a different error:

Code:
Database error in vBulletin Control Panel 2.3.0:

Invalid SQL: 
    					SELECT id
    					FROM memberphoto
    					WHERE visible!=1
    			 
mysql error: Unknown column 'id' in 'field list'

mysql error number: 1054

Date: Tuesday 29th of July 2003 01:18:03 AM
Script: http://www.domain.com/forums/forums/admin/pverify.php
Referer: http://www.domain.com/forums/admin/p...?action=verify
I'm not sure why is there a second "FORUMS" on the first (script) URL...
  #187  
Old 07-29-2003, 01:09 AM
Rebel38 Rebel38 is offline
 
Join Date: Feb 2003
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 04:22 AM Velocd said this in Post #179
That is how I plan to release it.
I'll take note of your name, and PM you later down the road when I get near finishing.

Thanks Velocd , much appreciated mate

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

Um, Areku, change this:
PHP Code:
                        SELECT id
                        FROM memberphoto
                        WHERE visible
!=
To:
PHP Code:
                        SELECT userid
                        FROM memberphoto
                        WHERE visible
!=
And tell me if it works
  #189  
Old 07-29-2003, 04:49 AM
ryans ryans is offline
 
Join Date: Feb 2002
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there any way to have it resize images to a certain width? I saw a hack on here that said it would decrease the size but I was not sure if that was the size in file size or the actual image size?

thanks
  #190  
Old 07-29-2003, 08:34 AM
Areku Areku is offline
 
Join Date: Feb 2002
Posts: 540
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 04:02 AM Velocd said this in Post #187
Um, Areku, change this:
PHP Code:
                        SELECT id
                        FROM memberphoto
                        WHERE visible
!=
To:
PHP Code:
                        SELECT userid
                        FROM memberphoto
                        WHERE visible
!=
And tell me if it works

Velocd,

Now SQL error disappeared, but photos are NOT neither approved nor disapproved...

They remain there... in the admin environment.
  #191  
Old 07-29-2003, 04:40 PM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Alright Areku, hopefully this change will fix it.

Replace all of this in pverify.php:

PHP Code:
    $uv_photos $DB_site->query("
                        SELECT userid
                        FROM memberphoto
                        WHERE visible!=1
                 "
);

    while(
$uv_photo $DB_site->fetch_array($uv_photos)) {

        
$id $_POST['photouse']["$photo[id]"];

        
$DB_site->query("
                    UPDATE memberphoto
                    SET visible='1'
                    WHERE userid='
$id'");

    } 
With:
PHP Code:
    $uv_photos $DB_site->query("
                        SELECT userid AS id
                        FROM memberphoto
                        WHERE visible!=1
                 "
);

    while(
$uv_photo $DB_site->fetch_array($uv_photos)) {

        
$id $_POST['photouse']["$uv_photo[id]"];

        
$DB_site->query("
                    UPDATE memberphoto
                    SET visible='1'
                    WHERE userid='
$id'");

    } 
Sorry for the trouble, if I could debug the code myself I would.. but as said I don't have this hack installed, being I am running vB3.
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 04:24 PM.


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.04853 seconds
  • Memory Usage 2,335KB
  • 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
  • (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
  • (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