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

 
 
Thread Tools
Imageshack & MEGAUPLOAD Uploader Details »»
Imageshack & MEGAUPLOAD Uploader
Version: 3.7.007, by Mosh Mosh is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 3.7.x Rating:
Released: 02-06-2008 Last Update: 08-28-2008 Installs: 294
Uses Plugins Auto-Templates
Re-useable Code Translations  
No support by the author.

Hack Support

This hack is now discontinued - this means that while it will remain available for download and use, there will be no further updates, nor will support be provided as the thread is no longer monitored. You can now check out the 3.8.x version of this hack, as it also works with v3.7.5, v3.6.12 (and maybe even earlier versions).

Please click Mark as Installed if you are using this hack.


NOTE: You can not change the language/text in either the Imageshack or MEGAUPLOAD embedded upload boxes as they are actually being hosted on their respective websites, and this hack can in NO way control that.

If you need support (they embed but don't upload, they are slow, etc), information (how they work, FAQ etc) in regards either of the embedded upload boxes, then you are best off checking out their respective websites, as I will not help you out there (you need to do the research yourself) - MEGAUPLOAD, Imageshack



vBulletin Version Compatibility

This hack can be used with v3.6.10 and v3.7.x. This has not been tested with earlier versions of v3.6.x, but should work.


What Does This Hack Do?

This is an update of my v3.6.x hack available here, with the added bonus of being able to upload files to MEGAUPLOAD.

The v3.6.x version of this hack has been listed on the official ImageShack's 3rd Party Tools page, and that links to the v3.8.x version of this hack - see ImageShack :: 3rdparty ::

This is an hack that adds the ability to upload image images to the Imageshack service and upload files to the MEGAUPLOAD service and be given a url to post in your posts to show your now uploaded file(s), it is available (if enabled) when creating a new thread, new post, editing a post, quick editing a post or doing a quick reply.

Both Imageshack and MEGAUPLOAD are controlled by the same permissions, but you can show one of them or both of them when creating a new thread, new post, editing a post, quick editing a post or doing a quick reply independently (via settings in AdminCP).

You can control the size and color of both the Imageshack (fully customisable) and MEGAUPLOAD (3 sizes and 6 colors) boxes from the AdminCP.

You do NOT need a premium account to upload using either Imageshack or MEGAUPLOAD.


NOTE 2: This hack works in total harmony with the latest version of Dannyloski's Photobucket Image Upload hack (Dannyloski, with my permission, used the base code of v3.6.x version of this hack to create his hack), so you can use Imageshack, MEGAUPLOAD and Photobucket all at the same time (if you choose to).

AdminCP settings for this hack available in vBulletin Options > Imageshack Image Upload.
Settings that can be changed are:
  1. Usergroup permissions - which groups will see the Imageshack/MEGAUPLOAD Upload boxes
  2. Choose which locations the Imageshack Image Upload box are displayed
  3. Imageshack iFrame properties - size of the upload input field. The width, height and color (this setting will work instantly once the Imageshack developers fix this) of the iframe
  4. Choose which locations the MEGAUPLOAD Uploader box are displayed
  5. MEGAUPLOAD Embedded box properties - size and color of the embedded MEGAUPLOAD box
Note: If you have highly customised templates or styles and the imageshack/MEGAUPLOAD dialog box does not display after usergroup permissions are set, then you may need to manually add the contents of the imageshack template to the templates where you want the dialog box to appear.


Installation Instructions
  1. Import ms_imageshack_upload.xml into vB using the AdminCP Product Manager. If upgrading then set Allow Overwrite to Yes.
  2. In the Admin CP, select vBulletin Options > Imageshack/MEGAUPLOAD Uploader, and change the settings to enter usergroups that you want to use this, which locations you want to display the imageshack and MEGAUPLOAD dialog boxes and change other settings to your liking.
  3. Enjoy the new addition to your posting arsenal !!!

Uninstall Instructions
  1. Uninstall the product in vB using the AdminCP Product Manager.

Screenshots
Show in this order:
  • Imageshack and MEGAUPLOAD (in Quick Reply)
  • Imageshack and MEGAUPLOAD (in Quick Edit)
  • Imageshack and MEGAUPLOAD (in Additional Posting Options)
  • Imageshack only (in Additional Posting Options)
  • AdminCP options (2)
  • AdminCP options (1)
  • MEGAUPLOAD only (in Additional Posting Options)


Version History

v3.7.007 - Friday 29th August 2008
-- Final Release
-- Changed: Check boxes now for usergroup selection, instead of needing comma separated numbers
-- Changed: Removed dependency, now works with v3.6.10
-- Changed: Screenshots
-- Added: New plugin, for processing usergroup permissions

v3.7.006 - Sunday 29th June 2008
-- Changed: Hack name
-- Changed: Total code rewrite
-- Added: MEGAUPLOAD Upload

v3.7.005 - Saturday 28th June 2008
-- Fixed: Quick Reply now works with Photobucket Image Uploader hack

v3.7.004 - Wednesday 25th June 2008
-- Fixed: Imageshack in Quick Reply not showing

v3.7.003 - Wednesday 25th June 2008
-- Changed: Version numbering
-- Added: AdminCP option to display to all usergroups

v3.1.0 - Wednesday 2nd April 2008
-- Added: QuickEdit option
-- Added: AdminCP Options input validation

v3.0.0 - Thursday 7th February 2008
-- Initial v3.7.x Release


Thanks

Thanks go out to Paul M who gave me permission to use some of his install code.


Show Your Appreciation

Although not required, if you have enjoyed the benefits of this hack, and would like show your appreciation for my efforts, then please feel free to click on the Support Developer link and donate any amount you feel is appropriate.

Show Your Support

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

Comments
  #82  
Old 07-06-2008, 07:28 AM
Mosh's Avatar
Mosh Mosh is offline
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 1,968
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Warden-B- View Post
I installed it and now it shows both imageshack and megauploader twice...any fix for this?
Please elaborate.

Can you tell me:
  • Where it is showing twice? (please indicate each location)
  • What actions are you taking, when it shows twice?
  • Did you have a previous version of this hack installed? If you had, what version?
  • If you have, have you tried reverting the imageshack and imageshack_quickreply templates in all your styles?
  • Does it happen with each and every style? Or just specific styles?
Reply With Quote
  #83  
Old 07-07-2008, 02:42 AM
SuperTaz's Avatar
SuperTaz SuperTaz is offline
 
Join Date: Apr 2007
Location: Pennsylvania
Posts: 744
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mosh View Post
Please elaborate.

Can you tell me:
  • Where it is showing twice? (please indicate each location)
  • What actions are you taking, when it shows twice?
  • Did you have a previous version of this hack installed? If you had, what version?
  • If you have, have you tried reverting the imageshack and imageshack_quickreply templates in all your styles?
  • Does it happen with each and every style? Or just specific styles?
It is showing twice in the quick reply area.
When you activate the quick reply, it shows two of both.
No previous version was ever installed.
I never reverted. The site is a brand new install of 3.7.0 and is only a few months old.
Yes. Each style shows this.

Here is a screenshot of the double uploaders.
Reply With Quote
  #84  
Old 07-07-2008, 05:28 AM
Mosh's Avatar
Mosh Mosh is offline
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 1,968
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Warden-B- View Post
It is showing twice in the quick reply area.
When you activate the quick reply, it shows two of both.
No previous version was ever installed.
I never reverted. The site is a brand new install of 3.7.0 and is only a few months old.
Yes. Each style shows this.

Here is a screenshot of the double uploaders.
I am pretty sure you have installed another hack that affect quick reply, which also means it affects this hack. What hack is it? As it is adding an extra </fieldset> to the SHOWTHREAD template and as a consequence you are getting Imageshack and MEGAUPLOAD showing twice.

If I am correct in my assumption, then turning off that hack will stop mine showing up twice (can you confirm this please?). And if that is the case, then the solution will probably be manually editing a template and editing a plugin.
Reply With Quote
  #85  
Old 07-07-2008, 06:04 AM
SuperTaz's Avatar
SuperTaz SuperTaz is offline
 
Join Date: Apr 2007
Location: Pennsylvania
Posts: 744
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mosh View Post
I am pretty sure you have installed another hack that affect quick reply, which also means it affects this hack. What hack is it? As it is adding an extra </fieldset> to the SHOWTHREAD template and as a consequence you are getting Imageshack and MEGAUPLOAD showing twice.

If I am correct in my assumption, then turning off that hack will stop mine showing up twice (can you confirm this please?). And if that is the case, then the solution will probably be manually editing a template and editing a plugin.
I do have another hack..This one:

https://vborg.vbsupport.ru/showthread.php?t=180330

For now I will disable yours till I can find a way to use them both. I am not a coder, but I will have my webhost look into it for me.

And yes, when I disabled the hack above, yours does work fine.
Reply With Quote
  #86  
Old 07-07-2008, 06:55 AM
Mosh's Avatar
Mosh Mosh is offline
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 1,968
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Warden-B- View Post
I do have another hack..This one:

https://vborg.vbsupport.ru/showthread.php?t=180330

For now I will disable yours till I can find a way to use them both. I am not a coder, but I will have my webhost look into it for me.

And yes, when I disabled the hack above, yours does work fine.
I had a quick look at the hack you posted about and here is a quick solution, I will not post a step-by-step guide (as it is not one of my hacks that you want this to work with), but it should now only show 1 instance of Imageshack and MEGAUPLOAD:
  1. Copy the contents of the imageshack template and paste into the phpkd_aqr_showthread_quickreply template where you want it shown.
  2. In Plugin Manager, edit the Imageshack Image Upload (5) plugin.
    Near the bottom, find:
    PHP Code:
    if ($imageshack_qr == 1
    Directly above it add:
    PHP Code:
    $imageshack_qr 0

So if does not work and you can not figure it out from the above simple instructions, then you will have to post in the other hack's thread as my hack is a lot simpler than that one.
Reply With Quote
  #87  
Old 07-09-2008, 07:16 AM
Mosh's Avatar
Mosh Mosh is offline
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 1,968
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jbear6 View Post
Thanks Mosh, but that did not work. I think it is because there are several instances of
Code:
</if>
within each template before the last line of code in each.

The mod did work for all forums after I removed the conditional.

Thanks again,
Jbear6
You did not do the below, you just put it at the beginning and end of each template. You need to do it 4 times, that is the imageshack and megaupload code in the 2 templates.
Quote:
Originally Posted by Mosh View Post
I would put it around both the Imageshack and MEGAUPLOAD code seperately.
Reply With Quote
  #88  
Old 07-09-2008, 02:02 PM
jbear6 jbear6 is offline
 
Join Date: Oct 2001
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mosh View Post
You did not do the below, you just put it at the beginning and end of each template. You need to do it 4 times, that is the imageshack and megaupload code in the 2 templates.
Thanks Mosh, I'll try again!

Jbear6


Hours later:
I tried placing the conditional everywhere I could think of, but I still couldn't get it to work. I did get the megaupload iframe to show one time, but it was empty... LOL. I'll try again later, and make note of everywhere I tried that didn't work.
Reply With Quote
  #89  
Old 07-11-2008, 12:38 AM
Mosh's Avatar
Mosh Mosh is offline
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 1,968
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jbear6 View Post
Thanks Mosh, I'll try again!

Jbear6


Hours later:
I tried placing the conditional everywhere I could think of, but I still couldn't get it to work. I did get the megaupload iframe to show one time, but it was empty... LOL. I'll try again later, and make note of everywhere I tried that didn't work.
Sorry to hear that mate, it was just a suggestion that should have worked.

But saying that, I have not really looked into it and it is not something I plan on adding to this hack, so hopefully you will be able to work out how to get this working yourself at some point.
Reply With Quote
  #90  
Old 07-11-2008, 04:30 PM
jbear6 jbear6 is offline
 
Join Date: Oct 2001
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mosh View Post
Sorry to hear that mate, it was just a suggestion that should have worked.

But saying that, I have not really looked into it and it is not something I plan on adding to this hack, so hopefully you will be able to work out how to get this working yourself at some point.
No problem friend, thanks for trying to help.

Jbear6
Reply With Quote
  #91  
Old 07-15-2008, 03:17 PM
Forum Lover Forum Lover is offline
 
Join Date: Jun 2007
Location: Sydney
Posts: 503
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed and appreciated.
Reply With Quote
 


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 11:21 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.05175 seconds
  • Memory Usage 2,336KB
  • Queries Executed 25 (?)
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
  • (1)bbcode_code
  • (2)bbcode_php
  • (10)bbcode_quote
  • (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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_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