The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
ImageShack Like Multi Uploader for you vB Details »» | |||||||||||||||||||||||||
For this modification I used the 'yet another vB Login on non-vB Page' by 'Calorie'.
What does it do Well, it's pretty simple actually. I created a page which can be called from the navbar in a popup and will allow your users to upload up to 10 images at a time. Non logged-in users will be prompt with an error message. It has no restriction on filesize and dimensions what so ever! But it does resize all images according to a 640*480 dimension with keeping the original aspect ratio. What do you have to do? 1. Create a folder in your forum folder called 'uploaded' and CMODD it with 777 2. Add the following JS to your headinclude template BEFORE <!-- CSS Stylesheet -->: Code:
<SCRIPT LANGUAGE="JavaScript"> function popUp(URL) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=500,left = 390,top = 150');"); } </script> Code:
<a href="javascript:popUp('uploader.php')">Image Uploader</a> Code:
$maxwidth = 640; $maxheight = 480; ## Location to your watermark.PNG file, default images/watermark.png $watermark_resource = "images/watermark.png"; ## Define watermark location, 1 = lefttop, 2 = righttop, 3 = leftbottom, 4 = rightbottom $watermark_location = 4; // set allowed usergroups - separate with a comma define('UGS','6,7,2,5'); // set the full path to your main forum directory define('FWD','/home/clubpunto/domains/clubpunto.nl/public_html'); // set vB version you are using - use 307 or 350 define('VBN','350'); // set the name of this script - no .php extension define('THIS_SCRIPT','uploader'); 6. Finished! Test Results I tested the script by uploading this image: File Dimensions: 2576 x 1920 pixels (7.1 Megapixels) File Size: 2,14 MB (~ 2214 kb) After uploading there was a file with these stats: File Dimensions: 640 ? 477 pixels (notice the aspect ratio is kept original) File Size: 278 kb (~ 0,2 MB) Version Changes v1.3 - Added the option to choose where the watermark is placed (left/right-top, left/right-bottom) Version Changes v1.3b - This version is similar to v1.3, but instead of YOU having the option to select the position of the watermark, a user will be able to choose via a dropdown menu. (See screenshot) Version Changes v1.2 - Support for PNG watermarks (I noticed that the PNG background is not made transparant, I have no time to look at this, cause of having to celebrate christmas, I'll look at it asap!) (See screenshot of the car (bottomright is the watermark)) Version Changes v1.1 - Support for image resize for .GIF and .PNG images aswell Version 1.0 - Support for image uploads (gif/jpg/png) - Support for image resize for jpg images - Up to 10 files at a time Show Your Support
|
Comments |
#12
|
||||
|
||||
Not really planning on adding that, it's just basic functionality to improve using the [IMG] tag and images on forums. If there's an URL already just use that one between the [IMG] tags or save the images to your harddrive for uploading
|
#13
|
||||
|
||||
Will this work on vB 3.7 or later?
|
#14
|
||||
|
||||
Yep, will work for any version. There is no version related material.. however I'm in doubt now.. the login check might be changed during the versions after 3.5.4, give it a quick test.. it only involves 2 simple template changes which can be reverted in a seconden
|
#15
|
|||
|
|||
Does adding this prevent uploads of other files, such as MP3, PDF etc?
I am looking for something that watermarks my photos as I will be doing live coverage from a major tradeshow in Las Vegas next week and I don't want others stealing my photos but I dont want to prevent members uploading other types of files. |
#16
|
||||
|
||||
it checks the file's mimetypes (image/jpg image/jpeg image/png image/gif image/xjpg image/xjpeg I believe) otherwise the upload will be terminated..
|
#17
|
|||
|
|||
This compatible with 3.8.1 and also is design editable?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|