vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vB Member Photo (https://vborg.vbsupport.ru/showthread.php?t=49565)

Velocd 03-02-2003 10:00 PM

vB Member Photo
 
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! :p

Velocd 03-02-2003 10:29 PM

AdminCP Options:

Velocd 03-02-2003 10:30 PM

Admin CP Verify Page:

Velocd 03-02-2003 10:31 PM

Usercp Edit Photo [part 1]:

Velocd 03-02-2003 10:32 PM

Usercp Edit Photo [part 2]:

Velocd 03-02-2003 10:32 PM

Usercp Edit Photo [part 3]:

Velocd 03-02-2003 10:33 PM

Memberlist Gallery:

Velocd 03-02-2003 10:34 PM

Viewing of the image through the gallery:

Velocd 03-02-2003 10:39 PM

Ack, I can't forget credits! =falls over=

Credits for this hack go to Kier, since I used some of the code structure of his "Save avatars as files" hack in mine, as well to Hwulex and his "Avatar Gallery Hack" for the same reason of using some of the code structure, and the asthetics of the photo gallery. ;)

NuclioN 03-02-2003 11:17 PM

This looks very good Velocd and i'll give it a try but i saw:

$cpnav[8]="#1C5780";

and this is a riddle. I've installed two other hacks that add this and by the second one i ignored it and left this part because there was a line like that already. So my question is if this is there, can i ignore that part of the installation or do i have to change numbers etc?

Velocd 03-02-2003 11:29 PM

Since it is just an array, if that already exists all you have to do is go up the numbers until you reach one that does not exist in the array, and place below it:

$cpnav[x]="{_secondaltcolor}";

Where 'x' signify's the number that is next in line. Then in the usercpnav-template, make sure you change the value said in the instructions to this value.

You don't want to avoid this step unless you don't care about cosmetics.

NuclioN 03-02-2003 11:39 PM

Ok thx. :) I know there are others with this problem so it's good to catch this right away. I'll test it later this day.

insanctus 03-03-2003 12:03 AM

Very nice hack ... I added it in about 10 minutes start to finish.

~ clicks install.

insanctus 03-03-2003 12:07 AM

If you want to see a live demo.

http://sanguinox.com/forums/memberli...on=viewgallery

Please remember mine is a vampire site.... But thought maybe a demo be helpfull.

Xyphen 03-03-2003 12:18 AM

very very nice, i'll install it later on...

Vivi Ornitier 03-03-2003 12:25 AM

very very very nice!!!! i was waitin on somehin like this FOREVER!!! Is there an option to make it so u don't have to verify the picture?

Razor 03-03-2003 12:47 AM

Yeah. You can turn the option on and off in the admin cp.

afterlab 03-03-2003 01:26 AM

Good job. I will be looking into customizing it towards my forums. Thanks for the release, Velocd.

GoTTi 03-03-2003 01:55 AM

installed and got error:

i am aslo not fully understanding this instruction:

Make sure those $cpnav[] elements correspond with how your cpnav is configured, like what you did in the previous steps.

;/ 1 more problem i noticed, it is not creating a thumbnail in the folder...it does do the images though...so when lookin @ the memberlist.php page, there is just a X image in the list...clicking the image goes to the uploaded image.

Why isnt it making thumbnails for me?

Boofo 03-03-2003 02:11 AM

The error is because either your host doesn't have GD installed on the server or the version they do have installed (if they do) is earlier than GD2.0.

Velocd 03-03-2003 02:29 AM

Yup, please read the instructions first Gotti, which explain that GD Library 2.0 is required in order for the thumbnails to work.

Tell your host to install it, from here:
http://www.boutell.com/gd/

Vivi Ornitier 03-03-2003 02:31 AM

this installation instrcution for GD is probably the most convuluded and most confusin thing i have ever read. How am i suppose to install this? Does my server admin have to install this ++++? Cause i definitely don't have a clue wat it's talkin about

Velocd 03-03-2003 03:02 AM

If you have paid hosting, then contact them and ask them politely to install it. If the server is yours, then.. well, I would either find an easier documention somewhere on the net to work by, or ask a friend or someone to install it for you.

It might even be easier to just simply upgrade to the latest version of PHP, which comes preinstalled with it.

joeboo 03-03-2003 03:54 AM

Very nice, i might implement this in the store hack :) Cheers Velocd

cinq 03-03-2003 11:05 AM

Can there be multiple uploads ?
Meaning to say a member can have several images to his/her name ?

Also would it be possible to add on something to the postbit under the avatar and name of a member ( perhaps a drop down list ) to show his/her pictures ?

:)

Velocd 03-03-2003 12:35 PM

Sure, those features are possible, but that is beyond what I needed therefore I did not considering implementing them. This is a simple but efficient photo-gallery hack, not a personal Deviant Art. If you want to hack it yourself to implement such features, feel free to. ;)

cinq 03-03-2003 12:55 PM

Oh , tot i'd just ask , cos those would be the features i really need :(

I would love to hack it further but sad to say , i have no knowledge when it comes to coding such things at all , was hoping you could implement these features :(

But its a great hack anyways as it is....i'm sure many would find it handy in their forums too :)

VampireMan 03-03-2003 01:40 PM

If this doesnt get the HOTM award i will very very suprised, i installed this in less than 10 minutes with no problems at all, my memers absolutly love it ( 5 mins ago they were going on about how great it is).

Well Done , Brilliant Hack...

Clicked install

ULTIMATESSJ 03-03-2003 02:26 PM

heh nice hack, similar to a image gallery i was working on, a good addition would be to switch off the GD mode on the hack, and for people to be able to add thumbnails this way.

Dean C 03-03-2003 03:57 PM

Finally a well-thought through and finished gallery hack. Shame we had to wait til the start of the vb3 era for it hehe. Excellent hack Velocd i must say. Must have taken some time to work on this but it is coded extrememly well. Only downfall for me is the fact it needs GD. Could you set the dimensions of the image in the ACP options and then just use these dimensions as width and height values in the img tag used to show the image. So it selects the image and then ouputs it and you stick a height and image tag in there and then BANG.. No need for GD? :D

Only other thing that would be nice is to search for a photo by criteria. Have a limit per page on photos. And have an A-Z link list at the top...

Other than that it's absolutely fantastic Velocd and i look forward to seeing any modifications you may choose to make based on my ideas hehe

Regards

- miSt

Velocd 03-03-2003 04:10 PM

I'll take into consideration a non-GD version, though it will be less convienant in operation than the current version. I recommend just trying to get GD installed, by asking your host, since it is very useful.

Quote:

Have a limit per page on photos
This is available via the Admin Cp Options on the Gallery hack. :p

As for those other suggestions you had Mist, I'll also consider them in the next version.

Thanks for all the comments everyone ;)

Dean C 03-03-2003 06:00 PM

GD is good but it's always hard to persuade your host to install it (in my experience)

I look forward to the future release :p

- miSt

Vile 03-03-2003 07:39 PM

Great hack, I'll be installing this.

Thanks for sharing :)

VampireMan 03-03-2003 09:06 PM

easy way to get them to install GD , tell them your concerned about the buffer overflow exploit .. that made me upgrader straight away ;)

Velocd 03-04-2003 12:24 AM

Either that or say you'll plot a massive boycott against them if they don't install GD. That should spark their interest. ;)

Just kidding of course. My host, Vervehosting.com, has always been very gracious to my requests when I ask them to install some kind of PHP Library.. so I would try just asking first. I suppose it could depend how much money you are paying per month for your host, but I would suspect if it is $15 or greater they should comply with your request, if they want to get good feedback from their clients.


BTW: If any members have this installed and wouldn't mind if I add it to the first post under a section for demo's, please post your link in this thread, or PM me, so I can do so.

GoTTi 03-04-2003 02:51 AM

Quote:

Originally posted by Velocd
Yup, please read the instructions first Gotti, which explain that GD Library 2.0 is required in order for the thumbnails to work.

Tell your host to install it, from here:
http://www.boutell.com/gd/

I read the instructions, and I have recent version of PHP...

How do i check if this is installed on my server has this installed?

I use Cpanel on my admin host. Would I look in my PERL Scripts Installed, which I think tells me all options and extras installed on the server.

Velocd 03-04-2003 05:17 AM

Create a PHP file that contains only the following:
PHP Code:

<?php
phpinfo
();
?>

Upload it to your server, than run it through the browser. There should be a section for the GD Library where you can check on the stuff. Make sure things like JPG and PNG are enabled.

KJ_innit 03-04-2003 02:11 PM

sorry if i sound like a dumbass, but will this work with 2.2.9?

Razor 03-04-2003 02:27 PM

Velocd asked me to install it and test it out on my test forum, which runs 2.2.9, and it ran perfectly fine.

Velocd 03-04-2003 02:34 PM

This hack should work from any 2.2.x and greater versions.

Just remember for this version you must have the GD Library 2.0 installed, I'm only repeating this again since I've recieved some PM's from some people still stating they recieve those GD errors.


All times are GMT. The time now is 04:50 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.04042 seconds
  • Memory Usage 1,821KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete