View Single Post
  #43  
Old 06-13-2006, 08:53 PM
nymyth nymyth is offline
 
Join Date: Jun 2002
Location: New York
Posts: 367
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cyberfreak
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.
when you say make a new style, do you mean add a new template within a style...kidna confused here.....thanks

Peace
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01461 seconds
  • Memory Usage 1,998KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete