PDA

View Full Version : Image Hosting


loneranger
01-25-2005, 10:00 PM
Image hosting v1.0

This is my first relase of this script, if people can test it and let me know any bugs please.

Features
Upload image
Restrict Image Type
Restrict Image Size
Restrict Image Dimensions
Restrict amount of images
Delete upload images
Restrict who can upload images
and more...

nexialys
01-26-2005, 03:38 PM
would be great to have a screenshot or a description of your personal use of the script... because for now... vague!
(there is no such tool in the db right now, so it's a good thing to have this, but!)

loneranger
01-26-2005, 03:47 PM
i use this system so users can upload an image to my server and can hot link, The user can then post his image on other boards or just my board. I will get some screenshots for you

a Live demo at
www.sig-mania.co.uk/forums/index.php

the link is on the navbar, you will need to sign up first to use it

FleaBag
01-26-2005, 05:17 PM
Is this secure? IE what's the chances of someone manipulating it to upload php files?

yoyoyoyo
01-26-2005, 05:23 PM
cool idea! add this to the "add watermark" hack and it could be a great way to advertise your site! :D

SVTBlackLight01
01-26-2005, 06:30 PM
Great idea! The only suggestion I would have would be to limit users to max total upload size instead of number of uploads.

Red Blaze
01-26-2005, 07:30 PM
I'd like this merged as awards, or with the Ushop hack. Would be nice.

Reeve of shinra
01-26-2005, 07:37 PM
:: big thumbs up :: I cant wait to get home and install

noppid
01-26-2005, 07:42 PM
Good job coding, but couldn't this bring a hosting account down quickly?

I think if someone hosted an 800KB file and then linked to it on a busy forum in their signature, your bandwitch would be gone in no time.

10GB/800KB=12500 Downloads or displays to use 10GB of bandwidth.
12500/50=250 Downloads or displays each for 50 users to use up 10GB bandwidth.

This is the extreme, but as you can see it adds up fast. This will make the hosts that offer unlimited BW for $8.00 cringe I bet!

On the other hand, limiting pics to 64K...
10GB/64KB=156250 Downloads or displays to use 10GB of bandwidth.
That is alot more views per 10GB, but certainly possible to use up.

Ok, I'll put the calculator away now.

Have you seen the usage go up on your site with remote hits to the database to retrive the images? I'm wondering if this would be a great front end for uploading to a folder via php and just using a url for the link eliminating the DB calls for the vB backend and image retrival. You'd have all the security for uploading and managing images and none of the DB overhead on displays or storage.

Just some thoughts to consider.

Cheers!

SVTBlackLight01
01-26-2005, 08:28 PM
Another reason to limit upload file size instead of number of uploads. I think that the increase in bandwidth should be expected with this sort of hack, as with any other image hosting or gallery script would. Although it would be great if some sort of bandwidth limit or vB's built-in server load limit could be integrated with this hack.

Also, what dependable host offers true unlimited bandwidth for $8?

RMS-Chef
01-27-2005, 01:06 AM
Great addition. I will install on my test board to check it out.

He says that you can restrict number of uploads as well as file size so in effect you can limit the amount of space each user has. If you don't have the bandwidth then you shouldn't be offering this hack to all your users anyway.

If you want to offer this for your board but are afraid of crazy bandwidth usage, I see from his screenshot that this has a separate admin selectable folder for the images. You can easily just disable hot linking via .htaccess for that folder.

Again, nice hack sir and I look forward to new developments.

noppid
01-27-2005, 01:38 AM
I think you missed the point of my suggestions. It's all good though, if it works, don't fix it.

loneranger
01-27-2005, 11:14 AM
well you can limit the file size down from 800kb to less, i have tried to make this secure and as of yet i haven't been able to upload a php file, I have got loads of ideas for this project some of the things are

different limits for different usergroups
different limits of types of file
gallery of upload files

and more,

if there are any suggestions please let me know i will see what i can do

yinyang
01-27-2005, 04:14 PM
i have a suggestion for your subsequent versions. You should make these images moderatable before they go live.

loneranger
01-27-2005, 06:28 PM
yes i will try and add that feature next time

wolfe
01-29-2005, 02:28 AM
yes i will try and add that feature next time
m8 im getting

"unable to get image size"

everytime i try to upload

Elfo King
01-29-2005, 11:50 AM
m8 im getting

"unable to get image size"

everytime i try to upload


I have the same problem :ermm:

wolfe
01-30-2005, 05:31 PM
right i have fixed a few problems look in attachments

if anyone wants it i will attach new files with all fixes so it works perfectly and layout is better ;)

yoyoyoyo
01-30-2005, 05:41 PM
right i have fixed a few problems look in attachments

if anyone wants it i will attach new files with all fixes so it works perfectly and layout is better ;)I would like to see what you have :)

wolfe
01-30-2005, 05:55 PM
i will be adding a confirm delete page.

plus other feature if the hack maker allows me to do so.


full working new one in attachment ;)

Elfo King
01-31-2005, 03:54 PM
Now work all ok....but i have one line of code in the bottom (see attach) and the watermark are not show on the jpg image....why?
where are the template to modify the line on the bottom?

wolfe
01-31-2005, 08:24 PM
Now work all ok....but i have one line of code in the bottom (see attach) and the watermark are not show on the jpg image....why?
where are the template to modify the line on the bottom?
m8 try using the new zip file in post #20 https://vborg.vbsupport.ru/showpost.php?p=605066&postcount=20

and replace all templates and files.

it will work and get rid of any errors ;)

yoyoyoyo
01-31-2005, 08:28 PM
i will be adding a confirm delete page.

plus other feature if the hack maker allows me to do so.


full working new one in attachment ;)very cool- any chance of the jokes factory making it to vb3? :)

wolfe
01-31-2005, 08:41 PM
very cool- any chance of the jokes factory making it to vb3? :)
i might release all my hacks i was halfway through vB Add Forum but i thought it was not allowed to be released

Elfo King
02-17-2005, 07:32 PM
m8 try using the new zip file in post #20 https://vborg.vbsupport.ru/showpost.php?p=605066&postcount=20

and replace all templates and files.

it will work and get rid of any errors ;)

now Work, but i not have the preview of images,and the watermark are not present in the images...


U can help me , pls ?! :(

bigmonay2k
02-18-2005, 01:09 AM
I thinking, is there way to only limit it to post in your *forum only*if whoever use it post it somewhere else my forum logo will show up instead of the pic.?????

loneranger
02-20-2005, 12:57 PM
This has been fully relased now so all comments and support will be given over here https://vborg.vbsupport.ru/showthread.php?t=75293, i have also updated it alot check it out