PDA

View Full Version : PHP upload for Images


PakFuse
01-25-2009, 09:15 AM
Hello all :)

I am a newbie in Vbulletin community and a novice in PHP world... I hope I will get some help or guidance here by my fellow VB community members...


Basically, I am looking for a PHP script that will allow me to upload images using simple HTML form and create a thumbnail at the same time while providing me an image tag for thumbnail, which is also linked to the original image file, opened in a new browser window.

(I have both GD and ImageMagick on my server)


I've two folders for original files, and thumnbnails - ideally i'd like it to rename the photo to the same thing in both folders by appending user id with the image name...

so the image upload link is only visible when the user is logged in and therefore php file has a poster id in the url...

I have done some basic research on this type of solution and I know that images directory in this case has to have CHMOD set as 0777 so I would like to have it outside of my root....


Is there a hack or MOD available for such a solution... even an old one?? or any working script that I can get a hold of... Few on the net that I found seem not to be working for me :(

glennybee
01-25-2009, 09:22 AM
vBulletin has a section for each member to upload pictures to their profile and store them as albums. Is this what you're looking for?

PakFuse
01-25-2009, 09:29 AM
glennybee :)

Thanks for asking...


I am aware of Albums feature.. but I am not looking for that....

I am looking for a separate image uploading PHP script that can create thumbnails which can be then pasted in a specific forum, say Images Gallery at my site... independent of Albums....random pictures ... political, personal, general, anything that can be used for discussion or chit chat...

--------------- Added 1232925584 at 1232925584 ---------------

anyone :(????

glennybee :)

Thanks for asking...


I am aware of Albums feature.. but I am not looking for that....

I am looking for a separate image uploading PHP script that can create thumbnails which can be then pasted in a specific forum, say Images Gallery at my site... independent of Albums....random pictures ... political, personal, general, anything that can be used for discussion or chit chat...

PakFuse
01-27-2009, 03:53 AM
:( no one?

cellarius
01-27-2009, 02:02 PM
Perhaps nobody understands why you do not want to use the albums. They do exactly what you want to do. Your users can upload images there, and it generates a thumbnail. And of course you can paste those images via bbcode into posts. I for one don't see your reasoning: Why do you want to reinvent the wheel, if it's already there for you to use?

Of course, there are lots of gallery scripts out there - go and grab one. Photopost, vbGallery, Photoplog - and that's just some.

By the way: There even is quite a comfortable way of doing exactly what you want whith vB album pictures: Pasting them as thumbnails linked to gallery/original into postings. See this mod: Photo Popup (https://vborg.vbsupport.ru/showthread.php?t=202385).

PakFuse
01-30-2009, 07:28 PM
^ That is the closest I was looking for :) Thanks for the help... though my goal was when I get such a solution, I would then, work to get watermark of my forum on images uploaded there...

Plus, I will have a designated folder for all images and thumbnails with user directories created within... separate from VBulletin file directory and hence, more control on things...

But for now, I think this the best I can get :)

cellarius
01-31-2009, 07:18 AM
^ That is the closest I was looking for :) Thanks for the help... though my goal was when I get such a solution, I would then, work to get watermark of my forum on images uploaded there...

Plus, I will have a designated folder for all images and thumbnails with user directories created within... separate from VBulletin file directory and hence, more control on things...

But for now, I think this the best I can get :)
Buy Photopost Pro. That does all that, including the watermarking.