Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
Rapidshare Upload In New Thread / Reply Details »»
Rapidshare Upload In New Thread / Reply
Version: 1.00, by technom8t technom8t is offline
Developer Last Online: Mar 2012 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.6.8 Rating:
Released: 02-23-2008 Last Update: Never Installs: 5
Template Edits
Re-useable Code Additional Files  
No support by the author.

How to make rapidshare upload link at newreply, new thread:

2 template edit : Newreply | Newthread
(please note this code can actually go on anytemplate you wish, i chose to put it in these templates for personal preference)

Easy edit 5 minutes

Installations for new reply:
1. Go to Styles & Templates > Style Manager > Default style > New Posting Templates > newreply

2. Find -
Code:
<!-- message area -->

</div>
		<div class="smallfont">$vbphrase[message]:</div>		
		$messagearea
		<!-- / message area -->
3. Add after

Code:
<html>
<head><title>RapidShare Upload</title>
<Style>
body {
 font-family: Verdana;
 font-size: 12px;
}
table {
 font-family: Verdana;
 font-size: 12px;
}
</Style>
</head>

<body bgcolor="#FFFFFF" text="#000000" alink="#555555" vlink="#555555" link="#555555" topmargin=0 leftmargin=0 bottommargin=0 rightmargin=0>
<script>if (self != top) { top.location.replace(window.location.href) }</script>
<table width=49% height=43% border=0 cellspacing=0 cellpadding=0>
  <tr></tr>
  <tr>
    <td height=100% align=center valign=top bgcolor=#E2E6ED><!-- rapidshare !-->
        <table width=621 border=0 cellpadding=0 cellspacing=0>
          <tr>
            <td nowrap colspan=5 bgcolor=#000000></td>
          </tr>
          <tr>
            <td nowrap bgcolor=#FCFEFE></td>
            <td align=center valign=top bgcolor=#FCFEFE><p></p>

                <script>function switchfiles() {alert("Please notice that when using multi-upload the sum of\nall files you upload at once must not exceed 100 MB.");
document.getElementById('files').innerHTML = 'File #01: <input type="file" size="64" name="filecontent"><br>File #02: <input type="file" size="64" name="filecontent2"><br>File #03: <input type="file" size="64" name="filecontent3"><br>' +
'File #04: <input type="file" size="64" name="filecontent4"><br>File #05: <input type="file" size="64" name="filecontent5"><br>File #06: <input type="file" size="64" name="filecontent6"><br>File #07: <input type="file" size="64" name="filecontent7"><br>' +
'File #08: <input type="file" size="64" name="filecontent8"><br>File #09: <input type="file" size="64" name="filecontent9"><br>File #10: <input type="file" size="64" name="filecontent10"><br><input type="submit" name="u" value="Upload!">'}</script>
<form name="ul" method="post" action="http://rapidshare.com/cgi-bin/upload.cgi" enctype="multipart/form-data" onsubmit="document.ul.u.value='Please wait ...';document.ul.u.disabled=true">
<a href="#" onclick="switchfiles()">Multi-Upload</a> Choose your upload-datapath: &nbsp;&nbsp;&nbsp; Cogent <input name="mirror" type="radio" onclick="document.ul.action='http://rapidshare.com/cgi-bin/upload.cgi';document.ul.u.value='Upload via Cogent'">
Level(3) <input checked name="mirror" type="radio" onclick="document.ul.action='http://rapidshare.com/cgi-bin/upload.cgi';document.ul.u.value='Upload via Level(3)'">
Telia <input name="mirror" type="radio" onclick="document.ul.action='http://rapidshare.com/cgi-bin/upload.cgi';document.ul.u.value='Upload via Telia'"><br>
<div id="files"><input type="file" size="64" name="filecontent"> <input type="submit" name="u" value="Upload!"></div></form>
<b>Upload-Limit: <font color="red">Unlimited!</font></b> (Max. <b><u>100 MB</u></b>)<br>

             
            <td nowrap bgcolor=#FCFEFE></td>
          </tr>
          <tr>
            <td nowrap colspan=5 bgcolor=#000000></td>
          </tr>
      </table>
      <!--rapidshare-->    </td>
  </tr>
</table>
</body></html>
press save and your done.

Installations for NEW THREAD:

1. Go to Styles & Templates > Style Manager > Default style > show thread Templates > NEWTHREAD

2. Find
Code:
<!-- message area -->
		<div class="smallfont">$vbphrase[message]:</div>		
		$messagearea
		<!-- / message area -->
3. add after

Code:
<html>
<head><title>RapidShare Upload</title>
<Style>
body {
 font-family: Verdana;
 font-size: 12px;
}
table {
 font-family: Verdana;
 font-size: 12px;
}
</Style>
</head>

<body bgcolor="#FFFFFF" text="#000000" alink="#555555" vlink="#555555" link="#555555" topmargin=0 leftmargin=0 bottommargin=0 rightmargin=0>
<script>if (self != top) { top.location.replace(window.location.href) }</script>
<table width=49% height=43% border=0 cellspacing=0 cellpadding=0>
  <tr></tr>
  <tr>
    <td height=100% align=center valign=top bgcolor=#E2E6ED><!-- rapidshare !-->
        <table width=621 border=0 cellpadding=0 cellspacing=0>
          <tr>
            <td nowrap colspan=5 bgcolor=#000000></td>
          </tr>
          <tr>
            <td nowrap bgcolor=#FCFEFE></td>
            <td align=center valign=top bgcolor=#FCFEFE><p></p>

                <script>function switchfiles() {alert("Please notice that when using multi-upload the sum of\nall files you upload at once must not exceed 100 MB.");
document.getElementById('files').innerHTML = 'File #01: <input type="file" size="64" name="filecontent"><br>File #02: <input type="file" size="64" name="filecontent2"><br>File #03: <input type="file" size="64" name="filecontent3"><br>' +
'File #04: <input type="file" size="64" name="filecontent4"><br>File #05: <input type="file" size="64" name="filecontent5"><br>File #06: <input type="file" size="64" name="filecontent6"><br>File #07: <input type="file" size="64" name="filecontent7"><br>' +
'File #08: <input type="file" size="64" name="filecontent8"><br>File #09: <input type="file" size="64" name="filecontent9"><br>File #10: <input type="file" size="64" name="filecontent10"><br><input type="submit" name="u" value="Upload!">'}</script>
<form name="ul" method="post" action="http://rapidshare.com/cgi-bin/upload.cgi" enctype="multipart/form-data" onsubmit="document.ul.u.value='Please wait ...';document.ul.u.disabled=true">
<a href="#" onclick="switchfiles()">Multi-Upload</a> Choose your upload-datapath: &nbsp;&nbsp;&nbsp; Cogent <input name="mirror" type="radio" onclick="document.ul.action='http://rapidshare.com/cgi-bin/upload.cgi';document.ul.u.value='Upload via Cogent'">
Level(3) <input checked name="mirror" type="radio" onclick="document.ul.action='http://rapidshare.com/cgi-bin/upload.cgi';document.ul.u.value='Upload via Level(3)'">
Telia <input name="mirror" type="radio" onclick="document.ul.action='http://rapidshare.com/cgi-bin/upload.cgi';document.ul.u.value='Upload via Telia'"><br>
<div id="files"><input type="file" size="64" name="filecontent"> <input type="submit" name="u" value="Upload!"></div></form>
<b>Upload-Limit: <font color="red">Unlimited!</font></b> (Max. <b><u>100 MB</u></b>)<br>

             
            <td nowrap bgcolor=#FCFEFE></td>
          </tr>
          <tr>
            <td nowrap colspan=5 bgcolor=#000000></td>
          </tr>
      </table>
      <!--rapidshare-->    </td>
  </tr>
</table>
</body></html>
4. save and your done.

now upload this button to your /images folder


now upload the attached rapid.php to your forum root directory

thats it, all done

( please not you can insert the actuall code anywere you wish the upload button to appear)

screenshot

Supporters / CoAuthors

Show Your Support

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

Comments
  #12  
Old 02-26-2008, 11:56 AM
technom8t technom8t is offline
 
Join Date: Oct 2007
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rmxs View Post
Its not my code
THANK YOU THATS ALL I WANTED TO HEAR CASE CLOSED :-)
Reply With Quote
  #13  
Old 02-26-2008, 04:32 PM
PH03N1X PH03N1X is offline
 
Join Date: Sep 2007
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^ ^ You're a dumbass.
Ripping people's work aint' cool man -_-
Reply With Quote
  #14  
Old 02-26-2008, 10:13 PM
Coders Shack Coders Shack is offline
 
Join Date: Apr 2007
Location: Culver City, CA
Posts: 807
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

...

dont fight over a simple mod like this...

if any of you want to get your hands dirty, i translated the rsapi (perl) to php. So if you want you can actually make your server convert all uploads to RS links.

and a cool feature would be to store a version of the file locally and externally then pass the DL through a gateway that actually first checks if the DL still exists and if it doesn't it would re upload the file and update the link in the post.

OMG DON'T STEAL MY IDEA... Lame. Don't post your idea if you are planning on doing it. Not his fault you missed the boat. How is he supposed to know that you are really going to release the mod?

if someone really needs this done, i do paid mods
Reply With Quote
  #15  
Old 02-27-2008, 06:40 AM
saotome saotome is offline
 
Join Date: Jul 2007
Location: Indonesia
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i think it is better put credits goes to for the authors code so the authors will respect it.
Reply With Quote
  #16  
Old 02-27-2008, 11:21 AM
technom8t technom8t is offline
 
Join Date: Oct 2007
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Coders Shack View Post
...

dont fight over a simple mod like this...

if any of you want to get your hands dirty, i translated the rsapi (perl) to php. So if you want you can actually make your server convert all uploads to RS links.

and a cool feature would be to store a version of the file locally and externally then pass the DL through a gateway that actually first checks if the DL still exists and if it doesn't it would re upload the file and update the link in the post.

OMG DON'T STEAL MY IDEA... Lame. Don't post your idea if you are planning on doing it. Not his fault you missed the boat. How is he supposed to know that you are really going to release the mod?

if someone really needs this done, i do paid mods
Thank you, finally someone who actully speaks sense lol

i also understand your concept of what you are planning to do with uplaods being transformed into RS links, this is unfortunetly way beyonde me i think lol, but i would pay for summit like this :-)

keep me informed

Thanks
Reply With Quote
  #17  
Old 02-28-2008, 06:11 PM
Coders Shack Coders Shack is offline
 
Join Date: Apr 2007
Location: Culver City, CA
Posts: 807
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

for like $50 ill code up a system like this. (of course i would release it)
Reply With Quote
  #18  
Old 03-03-2008, 09:55 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Warning

Feel free to discuss or disagree with eachother, but keep the conversation respectfull. No more disrespectfull posts or namecalling will be tolerated in this thread.
Reply With Quote
  #19  
Old 03-09-2008, 06:14 AM
cajunboy2208 cajunboy2208 is offline
 
Join Date: Jan 2007
Location: Louisiana
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by COBRAws View Post
Any way to add a login (inside the code, admin configured only) for uploading using a RS premium account?
I would love this also.
Can it... or will it, be done?
Reply With Quote
  #20  
Old 07-11-2009, 08:28 AM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does this still work?
Reply With Quote
  #21  
Old 07-13-2009, 01:31 AM
relaxiha relaxiha is offline
 
Join Date: Jan 2009
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i tested and does not work on 3.8.3
Reply With Quote
Reply

Thread Tools

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 08:07 AM.


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.04556 seconds
  • Memory Usage 2,318KB
  • Queries Executed 26 (?)
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
  • (4)bbcode_code
  • (3)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
  • (1)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