This is the script I am using. http://www.celerondude.com/php-uploader-v6 Really nice script. Costs 25$
Mailzas can you please help me on telling me where I put the javascript code you mentioned? I've pasted them below: JAVASCRIPT IMAGE RESIZE: Place some code //Scale image if needed $h = $file_info['1']; $w = $file_info['0']; $oh = $file_info['1']; $ow = $file_info['0']; //width - new_width //height - new_height if ($w > 830){ $new_width = 830; $new_height = ($h * 830) / $w; $w = $new_width; $h = $new_height; }; if ($h > 650){ $new_height = 650; $new_width = ($w * 650) / $h; $w = $new_width; $h = $new_height; }; print <<<HTML <script type="text/javascript"> function scale_img(){ pic = document.getElementById('thepic'); pic.height = $h; pic.width = $w; link = document.getElementById('thelink'); link.href = "javascript: max_img()"; }; function max_img(){ pic = document.getElementById('thepic'); pic.height = $oh; pic.width = $ow; link = document.getElementById('thelink'); link.href = "javascript: scale_img()"; }; </script> HTML; Code (markup): and Showing image //resized $href= "#"; if (($w <> $ow) or ($h <> $oh)) $href = "javascript: max_img();"; $img = "<a id='thelink' href=\"$href\"><img id='thepic' src=\"{$path}{$file}\" width='$w' height='$h' alt=\"{$file}\" title=\"{$file}\" /></a>"; Code (markup): I don't know where you were saying to put these chunks of code, can you please help me? Can you tell us what to put in our htaccess files to redirect those that are linking directly to our fullsize images so that it redirects them to the website page with the image that has ads? Can you also tell us how to got the redirecting of thumbnails you mentioned? Thank you for a great thread, I just wish I understood how to do some of the things you mentioned.
i'm not into this image hosting business. but this thread is VERY INSPIRING. Thanks for sharing Mailzas
Hey Mailzas, how are things going with your website? Have you been able to sell it for a fortune like you thought you would?