![]() |
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:
Requirements/Restrictions:
Screenshots: Refer to the next several posts. --------------- If you use this hack, please remember to click install! :p |
AdminCP Options:
|
Admin CP Verify Page:
|
Usercp Edit Photo [part 1]:
|
Usercp Edit Photo [part 2]:
|
Usercp Edit Photo [part 3]:
|
Memberlist Gallery:
|
Viewing of the image through the gallery:
|
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. ;) |
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? |
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. |
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.
|
Very nice hack ... I added it in about 10 minutes start to finish.
~ clicks install. |
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. |
very very nice, i'll install it later on...
|
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?
|
Yeah. You can turn the option on and off in the admin cp.
|
Good job. I will be looking into customizing it towards my forums. Thanks for the release, Velocd.
|
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? |
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.
|
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/ |
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
|
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. |
Very nice, i might implement this in the store hack :) Cheers Velocd
|
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 ? :) |
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. ;)
|
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 :) |
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 |
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.
|
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 |
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:
As for those other suggestions you had Mist, I'll also consider them in the next version. Thanks for all the comments everyone ;) |
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 |
Great hack, I'll be installing this.
Thanks for sharing :) |
easy way to get them to install GD , tell them your concerned about the buffer overflow exploit .. that made me upgrader straight away ;)
|
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. |
Quote:
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. |
Create a PHP file that contains only the following:
PHP Code:
|
sorry if i sound like a dumbass, but will this work with 2.2.9?
|
Velocd asked me to install it and test it out on my test forum, which runs 2.2.9, and it ran perfectly fine.
|
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|