Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Torrent Strike
Reply
  #1  
Old 12th February 2009, 13:16
torrentfreak torrentfreak is offline
Member
 
Join Date: Dec 2008
Default
Posts: 12
Default VIPs can upload also
As you all know the VIP status is lower than Uploader status. Its interesting. But VIPS are special persons and i want them to upload torrents also. It does not allow because in upload.php the code is as such that class lower than uploader cant upload. And i cant make VIPs uploaders also as the list will show no VIPs. Now How do i change upload.php so thatVIPs can upload also.
Reply With Quote
  #2  
Old 12th February 2009, 14:08
hack346 hack346 is offline
Banned
 
Join Date: Mar 2008
Turkey
Posts: 80
Default
Open your upload.php & find:

Code:
if ((get_user_class() < UC_UPLOADER)&&(!ENA_UPLOAD_FOR_EVERYONE))
replace with:
Code:
if ((get_user_class() < UC_VIP)&&(!ENA_UPLOAD_FOR_EVERYONE))
Reply With Quote
  #3  
Old 12th February 2009, 15:48
torrentfreak torrentfreak is offline
Member
 
Join Date: Dec 2008
Default
Posts: 12
Default
Code:
<?

require_once("include/bittorrent.php");



loggedinorreturn();
parked();
stdhead("Upload");

if ($CURUSER["uploadpos"] == 'no' || (!ENA_UPLOAD_FOR_EVERYONE && $CURUSER['class'] < UC_UPLOADER))
{
stdmsg("Sorry...", "You are not authorized to upload torrents.  (Request <a href=\"phpbb2.php?page=viewtopic&t=9\">Here For Being A Torrent Uploader</a>)");
stdfoot();
exit;
}

?>

<div align="center">
<form enctype="multipart/form-data" action="takeupload.php" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="<?=$max_torrent_size?>" />
<p>The tracker's announce url is <b><?= $announce_urls[0] ?></b></p>
<p>
<p>
<b><a href="phpbb2.php?page=viewforum&f=3">Click Here To Learn How To Create and Seed a Torrent</a></b>
<p>
<b><a href="phpbb2.php?page=viewtopic&p=23#23">Click Here To View Torrent Upload Rules</a></b>
<p><b>Releasing any torrent in our site means that you accept the Torrent Upload Rules.</b></p>
</p>
</p>
</p>
<?
begin_frame("Upload",false,10,false);
begin_table(true);
tr("Torrent file", "<input type=\"file\" name=\"file\" size=\"80\" />\n", 1);
tr("Torrent name", "<input type=\"text\" name=\"name\" size=\"80\" /><br />(Taken from filename if not specified. <b>Please use descriptive names.</b>)\n", 1);
tr("Small Description", "<input type=\"text\" name=\"description\" size=\"80\" /><b></b><br>Small Description for the uploaded file (Example: A good movie!!!)<br>This Description is shown in browse.php under the Torrentname.", 1);
tr("Poster", "<input type=text name=poster size=80><br>(Direct link for a poster image to be shown on the details page)\n", 1);
tr("NFO file", "<input type=\"file\" name=\"nfo\" size=\"80\" /><br />(<b>Optional.</b> Can only be viewed by power users.)\n", 1);
tr("Description", "<textarea name=\"descr\" rows=\"10\" cols=\"80\"></textarea>" .
  "<br />(HTML/BB code is <b>not</b> allowed.)", 1);
//==== offer dropdown for offer mod  from code by S4NE
$res66 = mysql_query("SELECT id, name, allowed FROM offers WHERE userid = $CURUSER[id] ORDER BY name ASC") or sqlerr(__FILE__, __LINE__);
if (mysql_num_rows($res66) > 0) {
$offer = "<select name=offer><option value=0>Your Offers</option>";
while($row66 = mysql_fetch_array($res66)) {
if ($row66["allowed"] == 'allowed')
$offer .= "<option value=\"" . $row66["id"] . "\">" . htmlspecialchars($row66["name"]) . "</option>";
}
$offer .= "</select>";
tr("Offer", $offer."<br> If you are uploading one of your offers please select it here so the voters will be notified." , 1);
}
//===end
$s = "<select name=\"type\">\n<option value=\"0\">(choose one)</option>\n";

$cats = genrelist();
foreach ($cats as $row)
    $s .= "<option value=\"" . $row["id"] . "\">" . htmlspecialchars($row["name"]) . "</option>\n";

$s .= "</select>\n";
tr("Type", $s, 1);
?>
<tr><td align="center" class="row2" colspan="2"><input type="submit" class="btn" value="Do it!" /></td></tr>
<? end_table();
end_frame();
?>
</form>
</div>
<?

stdfoot();

?>
This is how my upload.php looks and i dont seem to find what u told me. Can u please edit it and post the codes. Moreover i use Torrentstrike fully modded v1
Reply With Quote
  #4  
Old 12th February 2009, 21:07
hack346 hack346 is offline
Banned
 
Join Date: Mar 2008
Turkey
Posts: 80
Default
replace

Code:
if ($CURUSER["uploadpos"] == 'no' || (!ENA_UPLOAD_FOR_EVERYONE && $CURUSER['class'] < UC_UPLOADER))
with:

Code:
if ($CURUSER["uploadpos"] == 'no' || (!ENA_UPLOAD_FOR_EVERYONE && $CURUSER['class'] < UC_VIP))

Next time, when u have trouble post & version of source ;)
Reply With Quote
Reply

Tags
upload , vips

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to upload a torrent for VIPS yoligim Free Torrent Source 0 12th January 2010 18:16



All times are GMT +2. The time now is 13:44. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.