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
Product: Vbulletin
Varname: rapidshare_header
Text: Rapidshare Upload
Phrase Type: GLOBAL
Product: Vbulletin
Varname: rapidshare_upload_extensions
Text: Upload your files to Rapidshare.
Phrase Type: GLOBAL
Product: Vbulletin
Varname: rapidshare_explain_header
Text: Little info about uploading
Phrase Type: GLOBAL
Product: Vbulletin
Varname: rapidshare_explain_text
Text: When file is done, you 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 : newreply, newthread, editpost
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=" + w + ",height=" + h + ",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=" + w + ",height=" + h + ",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.