Latest News: Latest Mods:


 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Megaupload Button (upload to MU without leaving your site)
Author Message
Mikers
Tutorials Team Member


Posts: 146
Joined: Mar 2010
Reputation: 6
Post: #1
Megaupload Button (upload to MU without leaving your site)
Megaupload Button
Quick File Uploading for Your Users
by Mikers
Hey there gents.

Just a small little tut I wrote while writing up some guidelines for my site. I based it off this tutorial, which allows uploading to TinyPic and Imageshack (if you scroll down a bit) And the creds go to that gent for giving me the idea, and the javascript pop-up aspect idea of this is accredited to Mr. Dunlop03. Use this in combination with that tut, and your users should never need to use much of your attachment space. It's a very good alternative for those who have limited Disk Space and Bandwidth, or if you just wanna save on it anyway.

It makes use of Megaupload's Filebox service (you may have seen the BBCode), though you don't need special accounts or anything like that.


1. Upload the Files
Anyway, enough of my rambling. Let's get started, shall we?

First off, download megaupload.htm from the attachment, which I have created for your convenience.

  megaupload.htm (Size: 603 bytes / Downloads: 10)
Upload it to your forum root.

You'll also need a Megaupload logo or button, depending on where you intend to insert it. If you prefer the upload logo, like from the tutorial I mentioned earlier, use this. You'll have to edit and resize it yourself.
http://2.bp.blogspot.com/_LCph-cDpj_w/Sz...d+logo.jpg
If you prefer a round button, here you go. Once again, you'll need to resize it yourself.
http://essanet.net/FR/megaupload-logo.png
Or make your own. Whichever's fine with you.

Upload whatever you choose (and edit) to your forum's /image directory.


2. New Topic Insertion
(This is from the tutorial I based it on)

Go to ACP -> Templates & Styles -> Templates -> Your Style

Go to New Thread Templates -> newthread


Find,
Code:
<td class="trow2" valign="top"><strong>{$lang->your_message}</strong>{$smilieinserter}

Add after,
Code:
<a href="#" onClick="MyWindow=window.open('megaupload.htm.htm','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scro​​llbars=yes,resizable=yes,width=290,height=535');return false;"><img src="http://mysite.com/forum/images/uploadlogo.png" title="Megaupload File Hosting" alt="Megaupload" border="0"/></a>
Relplace "http://mysite.com/forum/images/uploadlogo.png" with the link to your Megaupload image.
--------

If you don't want it there, edit it to reflect where you want it to appear. I actually prefer to create an entire new box to contain mine, but it's your choice.


3. Quick Reply & New Reply Insertion
(This is also from the tutorial I based it on)

In Templates & Styles
Go to New Reply Templates -> newreply

Find,

Code:
<td class="trow2" valign="top"><strong>{$lang->your_message}</strong><br />{$smilieinserter}

Add After,
Code:
<a href="#" onClick="MyWindow=window.open('megaupload.htm.htm','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scro​​llbars=yes,resizable=yes,width=290,height=535');return false;"><img src="http://mysite.com/forum/images/uploadlogo.png" title="Megaupload File Hosting" alt="Megaupload" border="0"/></a>
Relplace "http://mysite.com/forum/images/uploadlogo.png" with the link to your Megaupload image.
---

In Templates & Styles
Go to Thread Templates -> showthread_quickreply

Find,

Code:
<label><input type="checkbox" class="checkbox" name="postoptions[disablesmilies]" value="1" />&nbsp;<strong>{$lang->disable_smilies}</strong></label>{$closeoption}</span><br />

Add After,
Code:
<a href="#" onClick="MyWindow=window.open('megaupload.htm.htm','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scro​​llbars=yes,resizable=yes,width=290,height=535');return false;"><img src="http://mysite.com/forum/images/uploadlogo.png" title="Megaupload File Hosting" alt="Megaupload" border="0"/></a>
Relplace "http://mysite.com/forum/images/uploadlogo.png" with the link to your Megaupload image.



That's it. This is and the other tutorial are a BEAUTIFUL integration for Pars' tutorial TopicStats, which adds a very beautiful posting suite below the Quick Reply. If you need direction on how to merge it with TopicStats, let me know.

That's it.

Once again, credits go to Mr. Afzulnizam for his tut that gave me the idea (and what I based it on), and Mr. Dunlop03 for his Javascript code.


Peace.
07-04-2010, 08:51 AM
leoj
Junior Member


Posts: 9
Joined: Jul 2010
Reputation: 0
Post: #2
RE: Megaupload Button (upload to MU without leaving your site)
Great tutorial, thanks Mikers.
07-17-2010, 10:07 PM
asgard
Junior Member


Posts: 5
Joined: Aug 2010
Reputation: 0
Post: #3
RE: Megaupload Button (upload to MU without leaving your site)
thanks for sharing.
08-17-2010, 04:12 AM
Don+
Junior Member


Posts: 47
Joined: Aug 2010
Reputation: 0
Post: #4
RE: Megaupload Button (upload to MU without leaving your site)
wow, Thank You. It is really useful
08-21-2010, 10:04 AM
Modder
Junior Member


Posts: 1
Joined: Dec 2010
Reputation: 0
Post: #5
RE: Megaupload Button (upload to MU without leaving your site)
Where can I download the round button?
12-28-2010, 11:11 PM
Vulgar
Junior Member


Posts: 14
Joined: Dec 2010
Reputation: 0
Post: #6
RE: Megaupload Button (upload to MU without leaving your site)
Than you very much
12-29-2010, 01:31 PM
KubaG
Junior Member


Posts: 8
Joined: Dec 2010
Reputation: 0
Post: #7
RE: Megaupload Button (upload to MU without leaving your site)
Thank you very much
22 hours ago
 




User(s) browsing this thread: 2 Guest(s)