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

Reply
 
Thread Tools
Rapidshare Upload Details »»
Rapidshare Upload
Version: 1.00, by HaYLaZ HaYLaZ is offline
Developer Last Online: Mar 2013 Show Printable Version Email this Page

Version: 3.5.3 Rating:
Released: 02-15-2006 Last Update: Never Installs: 58
 
No support by the author.

You can simply upload your files to rapid while opening newthread,posting new thread etc

İNSTALLATİON

upload rapid.php to forums root

upload rapid.gif to images folder


make template changes for each template below:

newreply, newthread, editpost, pm_newpm


find:

Code:
<if condition="$show['parseurl']"><div><label for="cb_parseurl"><input type="checkbox" name="parseurl" value="1" id="cb_parseurl" tabindex="1" $checked[parseurl] />$vbphrase[automatically_parse_links_in_text]</label></div></if>
						$disablesmiliesoption
					</div>
				</fieldset>

add under;

Code:
<!--Rapidshare-->
<SCRIPT LANGUAGE='JAVASCRIPT' TYPE='TEXT/JAVASCRIPT'>
 <!--
var win=null;
function NewWindow(mypage,myname,w,h,pos,infocus){
if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center' && pos!="random") || pos==null){myleft=0;mytop=20}
settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes";win=window.open(mypage,myname,settings);
win.focus();}
// -->
</script>

<a href="javascript:NewWindow('rapid.php','rapid','600','150','center','front');">
<img src="images/rapid.gif"  border="0"></a>
<!--Rapidshare finished-->
thats all enjoy

not: I added rapid.psd (button) in zip file you can edit what you want or you can make a new one

Show Your Support

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

Comments
  #22  
Old 02-23-2006, 03:43 AM
Mudvayne's Avatar
Mudvayne Mudvayne is offline
 
Join Date: Dec 2005
Location: /dev/null/
Posts: 393
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lowandloudinc
what did you do different? screen shots would be nice.
At ur service sir.. Screenshot added.. Chk the attachment ..
Reply With Quote
  #23  
Old 02-23-2006, 04:09 AM
VBUsers's Avatar
VBUsers VBUsers is offline
 
Join Date: Aug 2004
Posts: 830
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Shuvo
At ur service sir.. Screenshot added.. Chk the attachment ..

good stuff i will use it and thank you for the snap shots
Reply With Quote
  #24  
Old 02-28-2006, 02:42 PM
kpr's Avatar
kpr kpr is offline
 
Join Date: Jun 2005
Location: Scotland
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice addition

Thanks
Kev
Reply With Quote
  #25  
Old 03-09-2006, 01:22 PM
Cyberfreak Cyberfreak is offline
 
Join Date: Oct 2004
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hell yes.. this one was a good idea, and i liked it so much that i have installed it..

So thanks m8..

But.. i din`t like everything, so i re-made it (hope it is okey?!) hehe..
Shuvo did one great job with this, but i have used his code and made some diffrence..

Here goes..


Add some phrases:
PHP Code:
Phrase Type: GLOBAL
ProductVbulletin
Varname
rapidshare_header
Text
Rapidshare Upload

Phrase Type
: GLOBAL
ProductVbulletin
Varname
rapidshare_upload_extensions
Text
Upload your files to Rapidshare.

Phrase Type: GLOBAL
ProductVbulletin
Varname
rapidshare_explain_header
Text
Little info about uploading

Phrase Type
: GLOBAL
ProductVbulletin
Varname
rapidshare_explain_text
Text
When file is doneyou see a msg "Scroll down to find your download link".
<
br>
ex.<br>
<
font color="green">Your Download-Link</font>: http://rapidshare.de/files/15073415/vbpager.zip.html<br> 
<font color="red">Your Delete-Link</font>: http://rapidshare.de/files/15073415/vbpager.zip?killcode=2442646880<br>
Then just copy&paste your link into your thread

PHP Code:
 in style newreplynewthreadeditpost
 Search 
for $attachmentoption "

 
Under add:

<!-- 
Rapidshare Upload -->
<
fieldset class="fieldset">
    <
legend>$vbphrase[rapidshare_header]</legend>
    <
div style="padding:$stylevar[formspacer]px">
        <
div style="margin-bottom:$stylevar[formspacer]px">
            <
div>$vbphrase[rapidshare_upload_extensions]</div>
        </
div>
        <
div>
<
SCRIPT LANGUAGE='JAVASCRIPT' TYPE='TEXT/JAVASCRIPT'>
 <!--
var 
win=null;
function 
NewWindow(mypage,myname,w,h,pos,infocus){
if(
pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(
pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
else if((
pos!='center' && pos!="random") || pos==null){myleft=0;mytop=20}
settings="width=" ",height=" ",top=" mytop ",left=" myleft ",scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resiz  able=yes";win=window.open(mypage,myname,settings);
win.focus();}
// -->
</script>
<
a href="javascript:NewWindow('rapidshare.php','rapid','600','260','center','front');"><img src="$stylevar[imgdir_button]/rapidshare_upload.gif" alt="$vbphrase[rapidshare_header]border="0" /></a>
            
        </
div>
    </
div>
</
fieldset>

<!-- / 
Rapidshare Upload --> 
PHP Code:
 And in pm_newpm
Search 
for
$disablesmiliesoption
                    
</div>
                </
fieldset>
add this text below
<!-- Rapidshare Upload -->
<
fieldset class="fieldset">
    <
legend>$vbphrase[rapidshare_header]</legend>
    <
div style="padding:$stylevar[formspacer]px">
        <
div style="margin-bottom:$stylevar[formspacer]px">
            <
div>$vbphrase[rapidshare_upload_extensions]</div>
        </
div>
        <
div>
<
SCRIPT LANGUAGE='JAVASCRIPT' TYPE='TEXT/JAVASCRIPT'>
 <!--
var 
win=null;
function 
NewWindow(mypage,myname,w,h,pos,infocus){
if(
pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(
pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
else if((
pos!='center' && pos!="random") || pos==null){myleft=0;mytop=20}
settings="width=" ",height=" ",top=" mytop ",left=" myleft ",scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resiz  able=yes";win=window.open(mypage,myname,settings);
win.focus();}
// -->
</script>
<
a href="javascript:NewWindow('rapidshare.php','rapid','600','260','center','front');"><img src="$stylevar[imgdir_button]/rapidshare_upload.gif" alt="$vbphrase[rapidshare_header]border="0" /></a>
            
        </
div>
    </
div>
</
fieldset>

<!-- / 
Rapidshare Upload --> 
PHP Code:
MAKE A NEW STYLE
 CALL IT 
"rapidshare"

 
COPY PASTE THIS TEXT


<head>
$headinclude
<title>$vbphrase[rapidshare_header] - $vboptions[bbtitle]</title>
</
head>
<
body style="margin:0px" onload="self.focus()">

<
script>if (self != top) { top.location.replace(window.location.href) }</script>
<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%">
<
tr>
    <
td class="tcat">
        <
span class="smallfont" style="float:$stylevar[right]"><a href="#" onclick="self.close()">$vbphrase[close_this_window]</a></span>
        
$vbphrase[rapidshare_header]
    </
td>
</
tr>

<
tr>
    <
td class="panelsurround" align="center">
        <
div class="panel">
        <
div style="padding:$stylevar[formspacer]px">
                        
            <
fieldset class="fieldset">
            <
legend>$vbphrase[rapidshare_header]</legend>
                <
table cellpadding="0" cellspacing="$stylevar[formspacer]width="100%" border="0">
        <
tr valign="bottom">
        <
td align="$stylevar[left]">

                <!-- <
iframe src="http://dl16.rapidshare.de/en/progress.html?uploadid=146476730136187882" width="600" height="85" frameborder="0" marginwidth="0" marginheight="0" scrolling="NO"></iframe>-->

              <
form method="post" action="http://ul16.rapidshare.de/cgi-bin/upload.cgi?rsuploadid=146476730136187882" enctype="multipart/form-data" onSubmit="this.u.value='Please wait ...';this.u.disabled=true">
                <
input type="hidden" name="english" value="1">
                <
input type="file" class="bginput" size="48" name="filecontent">
                  <
input type="submit" class="button" name="u" value="$vbphrase[upload]style="width:70px">
              </
form>


        </
td>            
                </
tr>
                </
table>
            </
fieldset>
<
br>
            <
fieldset class="fieldset">
            <
legend>$vbphrase[rapidshare_explain_header]</legend>
                <
table cellpadding="0" cellspacing="$stylevar[formspacer]width="100%" border="0">
        <
tr valign="bottom">
        <
td align="$stylevar[left]">

$vbphrase[rapidshare_explain_text]


        </
td>            
                </
tr>
                </
table>
            </
fieldset>
    
    </
div>
    </
div>
    
    <
div style="margin-top:$stylevar[cellpadding]px">
        <
input type="button" class="button" value="$vbphrase[close_this_window]onclick="window.close();" />
    </
div>    
    
    </
td>
</
tr>
</
table>



</
form>
</
body>
</
html
PHP Code:

Now create a new file, and call it rapidshare.php copy all this into that file, and upload that file to your forum root directory.

<?php 

// ####################### SET PHP ENVIRONMENT ########################### 
error_reporting(E_ALL & ~E_NOTICE); 

// #################### DEFINE IMPORTANT CONSTANTS ####################### 
define('NO_REGISTER_GLOBALS'1); 
define('THIS_SCRIPT''rapidshare'); // change this depending on your filename 

// ################### PRE-CACHE TEMPLATES AND DATA ###################### 
// get special phrase groups 
$phrasegroups = array( 

); 

// get special data templates from the datastore 
$specialtemplates = array( 
     
); 

// pre-cache templates used by all actions 
$globaltemplates = array( 
    
'rapidshare'
); 

// pre-cache templates used by specific actions 
$actiontemplates = array( 

); 

// ######################### REQUIRE BACK-END ############################ 
require_once('./global.php'); 

// ####################################################################### 
// ######################## START MAIN SCRIPT ############################ 
// ####################################################################### 

$navbits = array(); 
$navbits[$parent] = 'Rapidshare Upload'

$navbits construct_navbits($navbits); 
//eval('$navbar = "' . fetch_template('navbar') . '";'); 
eval('print_output("' fetch_template('rapidshare') . '");'); 


?>

And you are all done..

Diffrence is that this one uses the board forum style, and uses ohrases. Style is diffrent and placement.. other than that, the hack or mod is just the same as yours m8..

No screen shots needed, u just love it..

Sorry if you din`t like it, but hey.. i thought it was okey to share my ideas on it as well..

Take care now..

Cheers.
Reply With Quote
  #26  
Old 03-09-2006, 01:27 PM
Cyberfreak Cyberfreak is offline
 
Join Date: Oct 2004
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh.. btw.. the image if you would like to use that, u must eiahter chance the file name your self, or call it rapidshare_upload.gif

Save it under your images/buttons folder..

Cheers
Reply With Quote
  #27  
Old 03-10-2006, 02:46 AM
b00k b00k is offline
 
Join Date: Feb 2005
Posts: 251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what does this do exactly?
Reply With Quote
  #28  
Old 03-10-2006, 01:09 PM
Mudvayne's Avatar
Mudvayne Mudvayne is offline
 
Join Date: Dec 2005
Location: /dev/null/
Posts: 393
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cyberfreak.. seems very nice.. screenshot plz ..
Reply With Quote
  #29  
Old 03-10-2006, 01:26 PM
Cyberfreak Cyberfreak is offline
 
Join Date: Oct 2004
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry m8.. i forgot...

But here you have two images..

It`s just like your code, only that i have made it so it follows the style un your board.

Cheers.
Reply With Quote
  #30  
Old 03-17-2006, 01:05 PM
prows prows is offline
 
Join Date: Nov 2005
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyway we could get the Rapidshare image button to be a html generated button..just like the one im about to hit to post this message? This would speed up load times on slow connections.
Reply With Quote
  #31  
Old 04-08-2006, 11:56 AM
gigaenvy gigaenvy is offline
 
Join Date: Jul 2004
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works for 3.0.9 thanks!!
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 12:00 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04790 seconds
  • Memory Usage 2,418KB
  • 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
  • (2)bbcode_code
  • (5)bbcode_php
  • (2)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