Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
ImageShack Like Multi Uploader for you vB Details »»
ImageShack Like Multi Uploader for you vB
Version: 1.3b, by flup flup is offline
Developer Last Online: Nov 2021 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 12-23-2008 Last Update: 12-24-2008 Installs: 4
Template Edits
Re-useable Code Additional Files Translations  
No support by the author.

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>
3. Create a link in the navigation bar (either in navbar template or header template) with the following link:
Code:
<a href="javascript:popUp('uploader.php')">Image Uploader</a>
4. Change the configuration values at top of the upload.php file:
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');
5. Upload the file in the attachment to your forum root directory aswell as the watermark.png image

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 12-25-2008, 04:29 PM
flup's Avatar
flup flup is offline
 
Join Date: Jan 2002
Location: Maastricht, NL
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #13  
Old 12-29-2008, 06:07 AM
Magnumutz's Avatar
Magnumutz Magnumutz is offline
 
Join Date: Feb 2006
Location: Romania
Posts: 731
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will this work on vB 3.7 or later?
Reply With Quote
  #14  
Old 12-29-2008, 04:47 PM
flup's Avatar
flup flup is offline
 
Join Date: Jan 2002
Location: Maastricht, NL
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #15  
Old 12-29-2008, 06:11 PM
scottct1 scottct1 is offline
 
Join Date: Mar 2002
Location: Connecticut
Posts: 391
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #16  
Old 12-29-2008, 11:27 PM
flup's Avatar
flup flup is offline
 
Join Date: Jan 2002
Location: Maastricht, NL
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..
Reply With Quote
  #17  
Old 01-31-2009, 02:16 PM
Nelly Nelly is offline
 
Join Date: Jul 2006
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This compatible with 3.8.1 and also is design editable?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:07 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04347 seconds
  • Memory Usage 2,266KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete