Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Mods & Themes (http://www.bvlist.com/forumdisplay.php?f=109)
-   -   Anonymous Uploader (http://www.bvlist.com/showthread.php?t=1337)

dyzzy 5th November 2008 08:44

Anonymous Uploader
 
This mod will change all your uploaders name into anonymous!Just some simple changes :)
DEMO HERE
Let

wMan 7th November 2012 15:45

@upload.php Add
PHP Code:

tr("Show uploader""<input type=checkbox name=uplver value=yes><b>Don't Show My Username In ( Uploaded By ) Field In Torrents Page.</b>"1); 

@takeupload.php Add

PHP Code:

  if ($_POST['uplver'] == 'yes') {
  
$anonymous "yes";
  
$anon "Anonymous";
  }
  else {
  
$anonymous "no";
  
$anon $CURUSER["username"];
  } 

@ the big query Add

PHP Code:

anonymous

And

PHP Code:

$anonymous

And

PHP Code:

  ////////Shoutbox announce with adult ban by Mag////////////

  
if ($CURUSER["anonymous"] == 'yes')
  
$message "New Torrent : [url=$DEFAULTBASEURL/details.php?id=$id] " htmlspecialchars($torrent) . "[/url] Uploaded - Anonymous User";
  else
  
$message "New Torrent : [url=$DEFAULTBASEURL/details.php?id=$id] " htmlspecialchars($torrent) . "[/url] Uploaded by " htmlspecialchars($CURUSER["username"]) . ""

And

PHP Code:

  // ===add karma
  
sql_query("UPDATE users SET seedbonus = seedbonus+15.0 WHERE id = $CURUSER[id]") or sqlerr(__FILE____LINE__);
  
// ===end
  
if ($CURUSER["anonymous"] == 'yes')
  
//write_log("Torrent $id($torrent) was uploaded by Anonymous $CURUSER[username]");
  
write_log("torrentupload""Torrent $id ($torrent) was uploaded by Anonymous $CURUSER[username]");
  else
  
//write_log("Torrent $id ($torrent) was uploaded by $CURUSER[username]");
  
write_log("torrentupload""Torrent $id ($torrent) was uploaded by $CURUSER[username]");
  
// //////new torrent upload detail sent to shoutbox////////// 

@details.php Add to the big query

PHP Code:

torrents.anonymous

Add where you like

PHP Code:

  $keepget "";
  if(
$row['anonymous'] == 'yes') {
  if (
get_user_class() < UC_UPLOADER)
  
$uprow "<i>Anonymous</i>";
  else
  
$uprow "<i>Anonymous</i> (<a href=userdetails.php?id=$row[owner]><b>$row[username]</b></a>)";
  }
  else {
  
$uprow = (isset($row["username"]) ? ("<a href=userdetails.php?id=" $row["owner"] . "><b>" htmlspecialchars($row["username"]) . "</b></a>") : "<i>(unknown)</i>");
  } 

@edit.php Add

PHP Code:

 tr("Anonymous uploader""<input type=\"checkbox\" name=\"anonymous\"" . (($row["anonymous"] == "yes") ? " checked=\"checked\"" "" ) . " value=\"1\" />  Check this box to hide the uploader of the torrent"1); 

@takeedit.php Add

PHP Code:

$updateset[] = "anonymous = '" . ($_POST["anonymous"] ? "yes" "no") . "'"

And to DB

PHP Code:

ALTER TABLE `torrentsADD `anonymousenum('yes','no'NOT NULL default 'no'

@browse.php Add to the big query

PHP Code:

torrents.anonymous



All times are GMT +2. The time now is 05:33.

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