Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
Hide section 3x [TTv3]
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Mods Completed

2019-07-17 13:52:06
Hello a new version section 3x
it is set at the level of the pc staff, we can also hide several sections at the same time eg Film 3x, E-book 3x, Cartoon 3X and other if necessary.

SQL: Yes
Author: Gollum

go! ..

SQL:

ALTER TABLE `users` ADD `xxx_filter` ENUM('yes',  'no') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'no';
CREATE TABLE IF NOT EXISTS `xxx_filter` (
 `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
 `cat` int(10) unsigned NOT NULL,
 PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;



In [color=rgb(251, 160, 38)]admincp.php[/color] add :
<td align="center"><a href="admincp.php?action=xxx_filter"><img src="images/admin/catxxx.png" border="0" width="32" height="32" alt="" /><br /><?php echo T_("xxx_filter_CP0"); ?></a><br /></td>



#======================================================================#
# TORRENT XXX MONTRER-CACHER BY GOLLUM
#======================================================================#
if($action == "xxx_filter") {
stdhead("xxx_filter");

if(isset($_POST['set_filter'])){
   $catid = $_POST["type"]+0;
   SQL_Query_exec("INSERT INTO xxx_filter SET cat = '".$catid."'");
autolink("admincp.php?action=xxx_filter",T_("CATEGORY_ADD"));
show_error_msg(T_("COMPLETED"), T_("CATEGORY_ADD"), 1);
}

if ($do == "del") {
   if ($_POST["delall"])
       SQL_Query_exec("TRUNCATE FROM xxx_filter");
    else {
       if (!@count($_POST["del"])) show_error_msg(T_("ERROR"), T_("NOTHING_SELECTED"), 1);
           $ids = array_map('intval', $_POST['del']);
           $ids = implode(',', $ids);
       SQL_Query_exec("DELETE FROM xxx_filter WHERE `id` IN ($ids)");
   }
autolink("admincp.php?action=xxx_filter", T_("CATEGORY_DEL"));
die;
}
#navmenu();

$res = SQL_Query_exec("SELECT xxx_filter.*, categories.name, categories.parent_cat, categories.sort_index FROM xxx_filter LEFT JOIN categories ON xxx_filter.cat = categories.id ORDER BY categories.parent_cat, categories.name");
stdhead('XXX Filter');
begin_frame(T_("xxx_filter_CP0"));
print("<br /><center><font style='font-family: Papyrus;'size='5'>".T_("MSG_3X")."</font><hr class='barre'/><center>");
print("<center><table width='95%' class='table_table'><tr>
<form method='post' action='admincp.php?action=xxx_filter' id='checking'>\n");
$s = "<select name=\"type\" id='tag_sel' class='stand_select'>\n
       <option style='font-weight:bold;font-style:italic;'>".T_("xxx_filter_CP")."</option>\n";      
       $query_select = "SELECT id AS cid, categories.name, categories.parent_cat AS hid, categories.parent_cat FROM categories ORDER BY parent_cat ASC, sort_index ASC";
       $result_select = SQL_Query_exec($query_select);
       $hr = "0";
       while($data = mysqli_fetch_array($result_select)){
       if($hr != $data["hid"]){$s .= "<option style='background-color:#444; text-shadow: 1px 2px 1px #F0F8FF;font-weight:bold;font-size:17px;color:#555;'>&#8664; ".htmlspecialchars($data["parent_cat"])." &#8665;</option>\n";}

               $s .= "<option value=\"" .$data["cid"]. "\">" . htmlspecialchars($data["name"]) . "</option>\n";

       $hr = $data["hid"];
       }
     
       $s .= "</select>\n";
       echo $s;
   print('<b><input type="submit" name="set_filter"  value="'.T_("SUBMIT").'" onfocus="this.blur()" /></b>');
   print("</form></tr></table></center><br />\n");

   print("<form id='xxx_filter' method='post' action='?action=xxx_filter&amp;do=del'>");
   print("<input type='hidden' name='do' value='del' />");
   print("<table class='table_table' width='90%' border='0' cellpadding='5' cellspacing='3' align='center'>");
   print("<tr><th class='table_head'>".T_("xxx_filter_CAT")."</th><th class='table_head'>".T_("xxx_filter_SUB")."</th><th class='table_head'><input type='checkbox' name='checkall' onclick='checkAll(this.form.id);' /></th></tr>");
while($data = mysqli_fetch_array($res)){
   print("<tr><td class='table_col1'align='center'>".$data["parent_cat"]."</td>");
   print("<td class='table_col2'align='center'>".$data["name"]."</td>");
   print("<td class='table_col1' align='center'><input type='checkbox' name='del[]' value='".$data["id"]."' /></td>");
   }
   print("</tr>");
   print("</table>");
   print("<br />");
   print("<input type='submit' value='Supprimer Les Cchés' /> <input type='submit' value='Supprimer Tout' name='delall' />");
   print("</form>");
   print("<br />");
     

end_frame();
navmenu();  
stdfoot();
}
#======================================================================#
# End TORRENT XXX MONTRER-CACHER BY GOLLUM
#======================================================================#



In [color=rgb(251, 160, 38)]account.php[/color] search :

$teams = "<option value='0'>--- ".T_("NONE_SELECTED")." ----</option>\n";
$sashok = SQL_Query_exec("SELECT id,name FROM teams ORDER BY name");
while ($sasha = mysqli_fetch_assoc($sashok))
$teams .= "<option value='$sasha[id]'" . ($CURUSER["team"] == $sasha['id'] ? " selected='selected'" : "") . ">$sasha[name]</option>\n";


Add After :

   $xxx_filter  = $CURUSER["xxx_filter"] == "yes";
   print ("<tr><td align='right' class='alt2'><b>" . T_("xxx_filter") . ":</b> </td><td class='alt2'><input type='radio' name='xxx_filter'" . ($xxx_filter ? " checked='checked'" : "") . " value='yes' /><b>" . T_("xxx_filter_OFF") . "</b> <input type='radio' name='xxx_filter'" . ($xxx_filter ? "" : " checked='checked'") . " value='no' /><b>" . T_("xxx_filter_ON") . "</b><br /><i>" . T_("DETERMINES_3X") . "</i></td></tr>");



Search :
$acceptpms = $_POST["acceptpms"];


Add After :
$xxx_filter = $_POST["xxx_filter"];


Search :
$updateset[] = "acceptpms = ".sqlesc($acceptpms);


Add After :
$updateset[] = "xxx_filter = ".sqlesc($xxx_filter);



In [color=rgb(251, 160, 38)]index.php[/color] search :

if ($site_config["MEMBERSONLY"] && !$CURUSER) {
   echo "<br /><br /><center><b>".T_("BROWSE_MEMBERS_ONLY")."</b></center><br /><br />";
} else {


Replace for  :

if ($site_config["MEMBERSONLY"] && !$CURUSER) {
   echo "<br/><br/><center><b>".T_("BROWSE_MEMBERS_ONLY")."</b></center><br/><br/>";
} else {
   // TORRENT XXX MONTRER-CACHER BY GOLLUM
if( $CURUSER['xxx_filter'] == 'yes'){
   $ressa = SQL_Query_exec("SELECT * FROM xxx_filter");
   while($datas =  mysqli_fetch_array($ressa)){
   $wherex .= "AND categories.id != '".$datas["cat"]."' ";
   }
}


Search on the line :
WHERE visible = 'yes' AND banned = 'no'


Add After :
$wherex



In [color=rgb(251, 160, 38)]torrents.php[/color] search :

//get http vars
$addparam = "";
$wherea = array();
$wherea[] = "visible = 'yes'";


Add After :

// TORRENT XXX MONTRER-CACHER BY GOLLUM
if($CURUSER["xxx_filter"] == 'yes'){
       $ressa = SQL_Query_exec("SELECT * FROM xxx_filter");
       while($datas = mysqli_fetch_array($ressa)){
       $wherea[] = "category != '".$datas["cat"]."' ";
       }
   }
// END TORRENT XXX MONTRER-CACHER


Search :
ON torrents.owner = users.id $orderby $limit";


Replace for  :
ON torrents.owner = users.id $where $orderby $limit";


Search :

// get all parent cats
echo "<center><b>".T_("CATEGORIES").":</b> ";
$catsquery = SQL_Query_exec("SELECT distinct parent_cat FROM categories ORDER BY parent_cat");
echo " - <a href='torrents.php'>".T_("SHOW_ALL")."</a>";
while($catsrow = mysqli_fetch_assoc($catsquery)){
       echo " - <a href='torrents.php?parent_cat=".urlencode($catsrow['parent_cat'])."'>$catsrow[parent_cat]</a>";
}


Replace for  :

// get all parent cats
echo "<center><b>".T_("CATEGORIES").":</b> ";
// TORRENT XXX MONTRER-CACHER BY GOLLUM
if($CURUSER["xxx_filter"] == 'yes'){
       $ressa = SQL_Query_exec("SELECT * FROM xxx_filter");
       $wherex = "WHERE categories.id ";
       while($datas = mysqli_fetch_array($ressa)){
       $wherex .= "AND id != '".$datas["cat"]."' ";
       }
   }
// END TORRENT XXX MONTRER-CACHER  
$catsquery = SQL_Query_exec("SELECT distinct parent_cat FROM categories  ".$wherex." ORDER BY parent_cat");

echo " - <a href='torrents.php'>".T_("SHOW_ALL")."</a>";
while($catsrow = mysqli_fetch_assoc($catsquery)){
       echo " - <a href='torrents.php?parent_cat=".urlencode($catsrow['parent_cat'])."'>$catsrow[parent_cat]</a>";
}


Search :
$cats = SQL_Query_exec("SELECT * FROM categories ORDER BY parent_cat, name");


Replace for  :

// TORRENT XXX MONTRER-CACHER BY GOLLUM
if($CURUSER["xxx_filter"] == 'yes'){
       $ressa = SQL_Query_exec("SELECT * FROM xxx_filter");
       $wherex = "WHERE categories.id ";
       while($datas = mysqli_fetch_array($ressa)){
       $wherex .= "AND id != '".$datas["cat"]."' ";
       }
   }
// END TORRENT XXX MONTRER-CACHER BY GOLLUM  
   $cats = SQL_Query_exec("SELECT * FROM categories ".$wherex." ORDER BY parent_cat, name");


Search :
$subcatsquery = SQL_Query_exec("SELECT id, name, parent_cat FROM categories WHERE parent_cat=".sqlesc($parent_cat)." ORDER BY name");


Replace for  :

   // TORRENT XXX MONTRER-CACHER BY GOLLUM
if($CURUSER["xxx_filter"] == 'yes'){
       $ressa = SQL_Query_exec("SELECT * FROM xxx_filter");
       while($datas = mysqli_fetch_array($ressa)){
       $wherexx .= "AND id != '".$datas["cat"]."' ";
       }
   }
// END TORRENT XXX MONTRER-CACHER
   $subcatsquery = SQL_Query_exec("SELECT id, name, parent_cat FROM categories WHERE parent_cat=".sqlesc($parent_cat)." $wherexx ORDER BY name");



In [color=rgb(251, 160, 38)]torrents-search.php[/color] search :

//include dead
if ($_GET["incldead"] == 1) {
       $addparam .= "incldead=1&amp;";
       $thisurl .= "incldead=1&amp;";
}elseif ($_GET["incldead"] == 2){
       $wherea[] = "visible = 'no'";
       $addparam .= "incldead=2&amp;";
       $thisurl .= "incldead=2&amp;";
}else
       $wherea[] = "visible = 'yes'";


Add :

// TORRENT XXX MONTRER-CACHER BY GOLLUM
if($CURUSER["xxx_filter"] == 'yes'){
              $ressa = SQL_Query_exec("SELECT * FROM xxx_filter");
              while($datas = mysqli_fetch_array($ressa)){
              $wherea[] = "category != '".$datas["cat"]."' ";
              }
       }
// END TORRENT XXX MONTRER-CACHER BY GOLLUM


Search :

$i = 0;

$cats = SQL_Query_exec("SELECT * FROM categories ORDER BY parent_cat, name");


Replace for  :

$i = 0;


// TORRENT XXX MONTRER-CACHER BY GOLLUM
if($CURUSER["xxx_filter"] == 'yes'){
              $ressa = SQL_Query_exec("SELECT * FROM xxx_filter");
              $wherex = "WHERE categories.id ";
              while($datas = mysqli_fetch_array($ressa)){
              $wherex .= "AND id != '".$datas["cat"]."' ";
              }
       }
// END TORRENT XXX MONTRER-CACHER BY GOLLUM

$cats = SQL_Query_exec("SELECT * FROM categories ".$wherex." ORDER BY parent_cat, name");



In [color=rgb(251, 160, 38)]english.php[/color] add :

// TORRENT XXX SHOW-HIDE
$LANG["xxx_filter"] = "Torrent XXX";
$LANG["xxx_filter_OFF"] = "Hide XXX";
$LANG["xxx_filter_ON"] = "Show XXX";
$LANG["DETERMINES_3X"] = "You do not want to see the XXX categories";
$LANG["MSG_3X"] = "Select the categories associated with the 3x torrents, which can be hidden by the user.";
$LANG["xxx_filter_CP"] = "Adding Categories";
$LANG["xxx_filter_CP0"] = "Hide Categories 3 XXX";
$LANG["xxx_filter_CAT"] = "Cat Parent";
$LANG["xxx_filter_SUB"] = "Sub Cat";
// END TORRENT XXX SHOW-HIDE BY GOLLUM


Add the image in [color=rgb(247, 218, 100)]images[/color] / [color=rgb(250, 197, 28)]admin[/color] / [color=rgb(243, 121, 52)]catxxx.png [/color]
catxxx.png
catxxx.png

2019-10-12 15:56:55
english

hello and a big thank you for this module, I have modified all the files without bugs except the torrent.php file because I have the torrent page which is modified in torrent page in images as in the picture below and I can't find or place the codes for the modification in the torrent.php file, can you help me to place the codes in the torrent.php file, thanks in advance.



French:

Bonjour et un grand merci pour ce module, j'ai modifié tous les fichiers sans bugs sauf le fichier torrent.php car j'ai la page torrent qui est modifiée en page torrent dans les images comme dans l'image ci-dessous et je ne peux pas trouver ou placer les codes pour la modification dans le fichier torrent.php, pouvez-vous m'aider à placer les codes dans le fichier torrent.php, merci par avance
torrents.rar
Download
2019-10-12 18:38:08
here I succeeded the problem is solved, it was missing a piece of code in my torrent.php file (y):D
Unknown User
2019-12-28 10:12:28
Works but i need it to modfy it here
if (!$site_config["MEMBERSONLY"] || $CURUSER) {


$news = mysql_query("SELECT id, name, added, image1, image2, sticky, seeders, leechers FROM torrents WHERE sticky = 'yes' AND visible='yes' ORDER BY torrents.id DESC LIMIT 10"); ///limi$

if (mysql_num_rows($news) > 0) {
print("<table class=xtd align=center cellpadding=0 cellspacing=0 width=100% border=0><tr>");
while ($row2 = mysql_fetch_array($news, MYSQL_NUM)) {
$tor = $row2['0'];
$altname = $row2['1'];
$where = "WHERE banned = 'no' AND visible='yes' AND torrents.id='$tor'";
$res = mysql_query("SELECT torrents.id, torrents.image1, torrents.image2, torrents.added, torrents.seeders, torrents.leechers, categories.name AS cat_name FROM torrents LEFT JOIN categories ON torrents.category = categories.id $where $orderby $limit");
$row = mysql_fetch_array($res);
$cat = $row['cat_name'];
$img1 = "<div class=extremlymtv><a class='hovertexty' title='Sticky' href='{$site_config[SITEURL]}/file.php?id=$row[id]'><img border='0'src='uploads/images/$row[image1]' title=\"Last Sticky: $altname | $cat\" height=140 width=100></a></div>";
if ($row["image1"] != ""){
print("<td align=center>". $img1 ."<div style='margin-top:10px; font-size:13px;'>
<img src=images/arrow_up.gif height='12' title='Seeders' border=0><font color=#00AA00><b>".$row['seeders']."</b></font> |
<img src=images/arrow_down.gif height='12' title='Leechers' border=0><font color=#FF0000> <b>".$row['leechers']."</b></font>
</div></td><td>&nbsp;</td>");

}
}
print("</tr></table>");
}

}
2019-12-29 04:13:55

if ($site_config['MEMBERSONLY'] || $CURUSER) {
   begin_frame(T_("TEST"));
// TORRENT XXX MONTRER-CACHER BY GOLLUM
if( $CURUSER['xxx_filter'] == 'yes'){
   $ressa = SQL_Query_exec("SELECT * FROM xxx_filter");
   while($datas =  mysqli_fetch_array($ressa)){
   $wherex .= "AND categories.id != '".$datas["cat"]."' ";
   }
}
$news = SQL_Query_exec("SELECT id, name, added, image1, image2, sticky, seeders, leechers FROM torrents WHERE sticky = 'yes' AND visible='yes' ORDER BY torrents.id DESC LIMIT 10"); ///limi$
if (mysqli_num_rows($news) > 0) {
print("<table class=table_table align=center cellpadding=0 cellspacing=0 width=100% border=0><tr>");
while ($row2 = mysqli_fetch_array($news, MYSQL_NUM)) {
$tor = $row2['0'];
$altname = $row2['1'];
$where = "WHERE banned = 'no' AND visible='yes' AND torrents.id='$tor'";
$res = SQL_Query_exec("SELECT torrents.id, torrents.image1, torrents.image2, torrents.added, torrents.seeders, torrents.leechers, categories.name AS cat_name FROM torrents LEFT JOIN categories ON torrents.category = categories.id $where $orderby $limit");
$row = mysqli_fetch_array($res);
$cat = $row['cat_name'];
$img1 = "<div class=ttable_header><a class='hovertexty' title='Sticky' href=".$site_config['SITEURL']."/file.php?id=$row[id]'><img border='0' src='uploads/images/".$row['image1']."' title=\"Last Sticky: $altname | $cat\" height=140 width=100></a></div>";
if ($row["image1"] != ""){
print("<td align=center>". $img1 ."<div style='margin-top:10px; font-size:13px;'>
<img src=images/arrow_up.gif height='12' title='Seeders' border=0><font color=#00AA00><b>".$row['seeders']."</b></font> |
<img src=images/arrow_down.gif height='12' title='Leechers' border=0><font color=#FF0000> <b>".$row['leechers']."</b></font>
</div></td><td>&nbsp;</td>");
}
}
print("</tr></table>");
}
end_frame();
}


[color=rgb(184, 49, 47)]update 5 fevrier[/color]
Thanks Gollum !


I haven't tested
2020-02-04 18:40:17
hello, Salut

Test like its I add the 3x function
Teste comme sa j'ai ajouter la fonction 3x

if ($site_config['MEMBERSONLY'] || $CURUSER) {
   begin_frame(T_("TEST"));
// TORRENT XXX MONTRER-CACHER BY GOLLUM
if( $CURUSER['xxx_filter'] == 'yes'){
   $ressa = SQL_Query_exec("SELECT * FROM xxx_filter");
   while($datas =  mysqli_fetch_array($ressa)){
   $wherex .= "AND categories.id != '".$datas["cat"]."' ";
   }
}
// END TORRENT XXX MONTRER-CACHER BY GOLLUM  
$news = mysql_query("SELECT id, name, added, image1, image2, sticky, seeders, leechers FROM torrents WHERE sticky = 'yes' AND visible='yes' ORDER BY torrents.id DESC LIMIT 10"); ///limi$
if (mysqli_num_rows($news) > 0) {
print("<table class=table_table align=center cellpadding=0 cellspacing=0 width=100% border=0><tr>");
while ($row2 = mysqli_fetch_array($news, MYSQLI_NUM)) {
$tor = $row2['0'];
$altname = $row2['1'];
$where = "WHERE banned = 'no' AND visible='yes' AND torrents.id='$tor'";
$res = SQL_Query_exec("SELECT torrents.id, torrents.image1, torrents.image2, torrents.added, torrents.seeders, torrents.leechers, categories.name AS cat_name FROM torrents LEFT JOIN categories ON torrents.category = categories.id  $where  $wherex $orderby $limit");
$row = mysqli_fetch_array($res);
$cat = $row['cat_name'];
$img1 = "<div class=ttable_header><a class='hovertexty' title='Sticky' href=".$site_config['SITEURL']."/file.php?id=$row[id]'><img border='0' src='uploads/images/".$row['image1']."' title=\"Last Sticky: $altname | $cat\" height=140 width=100></a></div>";
if ($row["image1"] != ""){
print("<td align=center>". $img1 ."<div style='margin-top:10px; font-size:13px;'>
<img src=images/arrow_up.gif height='12' title='Seeders' border=0><font color=#00AA00><b>".$row['seeders']."</b></font> |
<img src=images/arrow_down.gif height='12' title='Leechers' border=0><font color=#FF0000> <b>".$row['leechers']."</b></font>
</div></td><td>&nbsp;</td>");
}
}
print("</tr></table>");
}
end_frame();
}
2020-04-03 18:08:31
hello I would like to know if it is possible to hide the 3x category for the message to the shoutbox?


   //Message sur shout nouveau torrent
   if( $CURUSER['xxx_filter'] == 'yes'){
   $ressa = SQL_Query_exec("SELECT * FROM xxx_filter");
   while($datas =  mysqli_fetch_array($ressa)){
   $wherex .= "AND categories.id != '".$datas["cat"]."' ";
       }
   }  
   $image = $inames[0];
   $membre = ( $anon == 'yes' || $CURUSER['privacy'] == 'strong' ) ? 'Anonyme' : $CURUSER['username'];  
   $insert = sqlesc("
[img]".$site_config["SITEURL"]."/images/Torrents/NouveauTorrent.png[/img]\n[url=".$site_config['SITEURL']."/torrents-details.php?id=".$id."]".$torrent."[/url]\r[img1]".$site_config["SITEURL"]."/images/Torrents/3X.png[/img1]\nPartagé ".($anon == 'no' ? "Par [url=".$site_config['SITEURL']."/account-details.php?id=".$CURUSER['id']."]" .$CURUSER['username']. "[/url]" : "")."
");
   }else{  
   $insert = sqlesc("
[img]".$site_config["SITEURL"]."/images/Torrents/NouveauTorrent.png[/img]\n[url=".$site_config['SITEURL']."/torrents-details.php?id=".$id."]".$torrent."[/url]\r[img1]".$site_config["SITEURL"]."/uploads/images/".$image."[/img1]\nPartagé ".($anon == 'no' ? "Par [url=".$site_config['SITEURL']."/account-details.php?id=".$CURUSER['id']."]" .$CURUSER['username']. "[/url]" : "")."
");      
   SQL_Query_exec("INSERT INTO ajshoutbox (uid, date, name, text) VALUES(0,NOW(), 'Robot Crazy' ,".$insert."".$wherex.")");
   // Fin  


...your help would be much appreciated!

Thanks You!
2020-04-04 08:40:28
Hi spirtblue, do you mean in shoutbox
Show to some / hide to others

I dont have these mods but an idea
In ajshoutbox wrap select shout box query
if( $CURUSER['xxx_filter'] == 'no'){
Original query  WHERE name = !crazy robot
} else{
Original query
}

Note# I  was going to delete this I realized all system messages will be hidden but you can have special name eg crazyrobotxxx
2020-04-04 09:11:21
You can practically call anything in the 'user' table by appending it to the global CURUSER variable thanks to functions.php. Append, otherwise the table column and wrap - $CURUSER["signature"], $CURUSER["somefield"];

Keep note on the SQL table field type when using this & validation ***
2020-04-04 16:59:12
thanks your help friends, ;)

m-jay, I applied your recommendation but I have more messages on the shoutbox, it does not take into account the 3x categories and their ID

torrents-upload...

   //Message sur shout nouveau torrent
   if( $CURUSER['xxx_filter'] == 'yes'){    
   $image = $inames[0];
   $membre = ( $anon == 'yes' || $CURUSER['privacy'] == 'strong' ) ? 'Anonyme' : $CURUSER['username'];    
   $insert = sqlesc("
[img]".$site_config["SITEURL"]."/images/Torrents/NouveauTorrent.png[/img]\n[url=".$site_config['SITEURL']."/torrents-details.php?id=".$id."]".$torrent."[/url]\r[img1]".$site_config["SITEURL"]."/images/Torrents/3X.png[/img1]\nPartagé ".($anon == 'no' ? "Par [url=".$site_config['SITEURL']."/account-details.php?id=".$CURUSER['id']."]" .$CURUSER['username']. "[/url]" : "")."
");
   }else{    
   $insert = sqlesc("
[img]".$site_config["SITEURL"]."/images/Torrents/NouveauTorrent.png[/img]\n[url=".$site_config['SITEURL']."/torrents-details.php?id=".$id."]".$torrent."[/url]\r[img1]".$site_config["SITEURL"]."/uploads/images/".$image."[/img1]\nPartagé ".($anon == 'no' ? "Par [url=".$site_config['SITEURL']."/account-details.php?id=".$CURUSER['id']."]" .$CURUSER['username']. "[/url]" : "")."
");        
   SQL_Query_exec("INSERT INTO ajshoutbox (uid, date, name, text) VALUES(0,NOW(), 'Robot Crazy' ,".$insert."".$wherex.")");
   }
   // Fin    

2020-04-04 22:41:05
I would to do this for you on my time today, but having trouble understanding the purpose of this modification. Is this a custom category type in a new field? Is this for the purpose of filtering out against other cat results? Then I see about Shoutbox, and I get a bit lost.

Let me know :)
2020-04-04 23:06:43
"STorrents2020, post: 68286, member: 20382":

I would to do this for you on my time today, but having trouble understanding the purpose of this modification. Is this a custom category type in a new field? Is this for the purpose of filtering out against other cat results? Then I see about Shoutbox, and I get a bit lost.

Let me know :)

Allo  (y)

this line is on upload and it sends a message to the shoutbox, and it gives this ...
[ATTACH type="full" width="586px"]5423[/ATTACH]

once you have activated on your account not to see any more the categories of torrent 3X (porn) I want who recognizes the ID of the categories not to see the message or that the image of the covers 3x is not visible or to replace by} esle {

The work of all its is not to see the message to the shoutbox if it is 3x
Captu33re.PNG
Captu33re.PNG

2020-04-05 00:21:38
First problem: iframe. You should get rid of this and embed the code properly. iFrames are dying, too many cross-origin exploits sending Chrome and others in a frenzy of updates the past 5 years.

Solution: Okay, so you will want to use a url query and pick up on that, and if seen in Url, then hide message in shout box. I just did this last night for something (introduction mod, see comments).

I don't use Shoutbox anymore, but this should do the trick. ** Please post the 3X Url without the TLD (top level domain) ** so I can better help you.

There are two ways to go:
1 ) Detect url query - isset()
2 ) Pass query params back - parse_url()

If you want to hide anything like.. /torrents.php?cat=1 then we use this to find the ID specifically:

if (array_key_exists("id", $_GET)) && trim($_GET["id"]) == 'YOUR-3X-CAT-ID-GOES-HERE' && $CURUSER["xxx_filter"] == 'yes') {
   // Hide category
}else{
   // Show category
}

Let me know what that does, I haven't tested.

Next for category covers, this bit will need to be updated - functions.php (line 927 stock):


if (!empty($row["cat_name"])) {
                   print("<a href=\"torrents.php?cat=" . $row["category"] . "\">");
                   if (!empty($row["cat_pic"]) && $row["cat_pic"] != "")
                       print("<img border=\"0\"src=\"" . $site_config['SITEURL'] . "/images/categories/" . $row["cat_pic"] . "\" alt=\"" . $row["cat_name"] . "\" />");
                   else
                       print($row["cat_parent"].": ".$row["cat_name"]);
                   print("</a>");
               } else
                   print("-");
               print("</td>\n");


I'll update bit in functions today, its best I actually test this.
2020-04-05 03:22:38
"STorrents2020, post: 68288, member: 20382":

First problem: iframe. You should get rid of this and embed the code properly. iFrames are dying, too many cross-origin exploits sending Chrome and others in a frenzy of updates the past 5 years.

Solution: Okay, so you will want to use a url query and pick up on that, and if seen in Url, then hide message in shout box. I just did this last night for something (introduction mod, see comments).

I don't use Shoutbox anymore, but this should do the trick. ** Please post the 3X Url without the TLD (top level domain) ** so I can better help you.

There are two ways to go:
1 ) Detect url query - isset()
2 ) Pass query params back - parse_url()

If you want to hide anything like.. /torrents.php?cat=1 then we use this to find the ID specifically:

if (array_key_exists("id", $_GET)) && trim($_GET["id"]) == 'YOUR-3X-CAT-ID-GOES-HERE' && $CURUSER["xxx_filter" == 'yes') {
   // Hide category
}else{
   // Show category
}

Let me know what that does, I haven't tested.

Next for category covers, this bit will need to be updated - functions.php (line 927 stock):


if (!empty($row["cat_name"])) {
                   print("<a href=\"torrents.php?cat=" . $row["category"] . "\">");
                   if (!empty($row["cat_pic"]) && $row["cat_pic"] != "")
                       print("<img border=\"0\"src=\"" . $site_config['SITEURL'] . "/images/categories/" . $row["cat_pic"] . "\" alt=\"" . $row["cat_name"] . "\" />");
                   else
                       print($row["cat_parent"].": ".$row["cat_name"]);
                   print("</a>");
               } else
                   print("-");
               print("</td>\n");


I'll update bit in functions today, its best I actually test this.


Yes #1  fonctions..
[php]
           case 'category':
               print("<td class='ttable_col$x' align='center' valign='middle'>");
               if (!empty($row["cat_name"])) {
                   print("<a href=\"torrents.php?cat=" . $row["category"] . "\">");
                   if (!empty($row["cat_pic"]) && $row["cat_pic"] != "")
                       print("<img border=\"0\"src=\"" . $site_config['SITEURL'] . "/images/categories/" . $row["cat_pic"] . "\" alt=\"" . $row["cat_name"] . "\" height=\"45\" width=\"150\" style=\"padding: 3px 0px 3px 0px;\"/>");
                   else
                       print($row["cat_parent"].": ".$row["cat_name"]);
                   print("</a>");
               } else
                   print("-");
               print("</td>\n");
           break;
[/php]


for the paretie of sending the message, planted my page fell blank
[php]
   //Message sur shout nouveau torrent
if (array_key_exists("id", $_GET)) && trim($_GET["id"]) == '1,2,3' && $CURUSER["xxx_filter" == 'yes') {
   $image = $inames[0];
   $membre = ( $anon == 'yes' || $CURUSER['privacy'] == 'strong' ) ? 'Anonyme' : $CURUSER['username'];  
   $insert = sqlesc("
[img]http://".$site_config["SITEURL"]."/images/Torrents/NouveauTorrent.png[/img]\n".$torrent."\r[img1]".$site_config["SITEURL"]."/images/Torrents/3X.png[/img1]\nPartagé ".($anon == 'no' ? "Par " .$CURUSER['username']. "" : "")."

");
   }else{  
   $insert = sqlesc("
[img]http://".$site_config["SITEURL"]."/images/Torrents/NouveauTorrent.png[/img]\n".$torrent."\r[img1]".$site_config["SITEURL"]."/uploads/images/".$image."[/img1]\nPartagé ".($anon == 'no' ? "Par " .$CURUSER['username']. "" : "")."

");      
   SQL_Query_exec("INSERT INTO ajshoutbox (uid, date, name, text) VALUES(0,NOW(), 'Robot Crazy' ,".$insert."".$wherex.")");
   }
   // Fin
[/php]
2020-04-05 08:23:33
I must of been focusing on functions, in order to hide the cat pics. For the message this should be all that is needed.


//Message sur shout nouveau torrent
if ($CURUSER["xxx_filter"]){
   $image = $inames[0];
   $membre = ( $anon == 'yes' || $CURUSER['privacy'] == 'strong' ) ? 'Anonyme' : $CURUSER['username'];
   $insert = sqlesc("
[img]http://".$site_config["SITEURL"]."/images/Torrents/NouveauTorrent.png[/img]\n".$torrent."\r[img1]".$site_config["SITEURL"]."/images/Torrents/3X.png[/img1]\nPartagé ".($anon == 'no' ? "Par " .$CURUSER['username']. "" : "")."

");
}else{
   $insert = sqlesc("
[img]http://".$site_config["SITEURL"]."/images/Torrents/NouveauTorrent.png[/img]\n".$torrent."\r[img1]".$site_config["SITEURL"]."/uploads/images/".$image."[/img1]\nPartagé ".($anon == 'no' ? "Par " .$CURUSER['username']. "" : "")."

");    
   SQL_Query_exec("INSERT INTO ajshoutbox (uid, date, name, text) VALUES(0,NOW(), 'Robot Crazy' ,".$insert."".$wherex.")");
}
// Fin
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 3
  • Members: 0
  • Guests online: 3
  • Comments: 3
  • Messages: 1,728