Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Torrent Strike (http://www.bvlist.com/forumdisplay.php?f=21)
-   -   VIPs can upload also (http://www.bvlist.com/showthread.php?t=1997)

torrentfreak 12th February 2009 13:16

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.:sos:

hack346 12th February 2009 14:08

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))


end_frame();
?>



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
torrentfreak 12th February 2009 15:48

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 Here For Being A Torrent Uploader)");
stdfoot();
exit;
}

?>




The tracker's announce url is




Click Here To Learn How To Create and Seed a Torrent


Click Here To View Torrent Upload Rules

Releasing any torrent in our site means that you accept the Torrent Upload Rules.





begin_frame("Upload",false,10,false);
begin_table(true);
tr("Torrent file", "\n", 1);
tr("Torrent name", "(Taken from filename if not specified. Please use descriptive names.)\n", 1);
tr("Small Description", "Small Description for the uploaded file (Example: A good movie!!!)This Description is shown in browse.php under the Torrentname.", 1);
tr("Poster", "(Direct link for a poster image to be shown on the details page)\n", 1);
tr("NFO file", "(Optional. Can only be viewed by power users.)\n", 1);
tr("Description", "" .
  "(HTML/BB code is not 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 = "";
tr("Offer", $offer." If you are uploading one of your offers please select it here so the voters will be notified." , 1);
}
//===end
$s = "\n";
tr("Type", $s, 1);
?>

hack346 12th February 2009 21:07

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 ;)


All times are GMT +2. The time now is 22:42.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.