"martel_222, post: 73488":[url="http://www.torrenttrader.org/index.php?s=&showtopic=8001&view=findpost&p=41542"]http://www.torrenttrader.org/index.php?s=&...ost&p=41542[/url]Hello its possible to have an option for the admin change the bonus point of the members ????
thank you
//include dead
switch($_GET['incldead']) {
case 1:
$addparam .= "incldead=1&";
$wherea[] = "banned != 'yes'";
break;
case 2:
$wherea[] = "visible = 'no'";
break;
case 3:
$addparam .= "incldead=3&";
$wherea[] = "freeleech = '1'";
$wherea[] = "visible = 'yes'";
break;
case 4:
$addparam .= "incldead=4&";
$wherea[] = "silver = '1'";
$wherea[] = "visible = 'yes'";
break;
default:
$wherea[] = "visible = 'yes'";
}<select name=incldead>
<option value="0">Active</option>
<option value="1">Include Dead</option>
<option value="2">Only Dead</option>
<option value="3">FreeLeech</option>
<option value="4">SilverLeech</option>
</select>"SJC2TK, post: 72258":To add in torrent details
find in torrent-details.php
if ($row["external"]!='yes' && $row["freeleech"]=='1'){
print ("<B>Free Leech: </b><font color=red><b>This torrent is freeleech so only upload counts!</b></font><BR>");
}
and after add
if ($row["external"]!='yes' && $row["silver"]=='1'){
print ("<B>Silver torrent: </b><font color=red><b>This torrent is 50% freeleech so only 50% download counts!</b></font><BR>");
}
if ($row["silver"]=='1'){
print ("<B>Silver torrent: </b><font color=red><b>This torrent is 50% freeleech so only 50% download counts!</b></font><BR>");
}
Also add torrents-today in big query:
torrents.silver, case 'bookmark':
if ($variant == "bookmarks")
echo "<td class=ttable_col2 align=center><a href='takedelbookmark.php?bookmarkid=$id' title='Delete'><img src='images/delchat.gif' border='0' width='10px' alt='delete' title='delete' /></a></td>";
break;replace with this:case 'bookmark':
$bookt = mysql_query("SELECT torrentid FROM bookmarks WHERE torrentid = $row[id] AND userid = $CURUSER[id]");
if (mysql_num_rows($bookt) > 0)
print("<td class=ttable_col$x align=center><a href='takedelbookmark.php?bookmarkid=$id' title='Delete'><img src='images/delchat.gif' border='0' width='16px' alt='delete' title='delete' /></a></td>");
else
print("<td class=ttable_col$x align=center><a href='bookmarks.php?torrent=$id' title='Bookmark'><img src='images/MyBookmarks3.png' border='0' width='16px' alt='Bookmark' title='Bookmark' /></a></td>");
break;
"kevin63, post: 67790":You need:hello
Help me please forum
MySQL error occured.
Query:
Error: (1054) Unknown column 'guest_read' in 'field list'
guest_read` enum('yes', 'no') default 'yes'"rdesormiers, post: 66872":Hi War02,
Thanx for trying but the only thing I meant was this. Take a look at my SNAPSHOT. When I do a search, my tracker BOX is about half a inch below the SEARCH BOX! How can this be possible.!
Thanx. Regards.
//search
begin_frame("Advanced Search");
?>
<CENTER>
<form method="get" action="torrents-search.php"><br />
<input type="text" id="searchinput" name="search" autocomplete="off" style="width: 240px;" ondblclick="suggest(event.keyCode,this.value);" onkeyup="suggest(event.keyCode,this.value);" onkeypress="return noenter(event.keyCode);" value="<?= htmlspecialchars($searchstr) ?>" />
<select name="cat">
<option value="0">(All types)</option>
<?
$cats = genrelist();
$catdropdown = "";
foreach ($cats as $cat) {
$catdropdown .= "<option value=\"" . $cat["id"] . "\"";
if ($cat["id"] == $_GET["cat"])
$catdropdown .= " selected=\"selected\"";
$catdropdown .= ">" . htmlspecialchars($cat["parent_cat"]) . ": " . htmlspecialchars($cat["name"]) . "</option>\n";
}
?>
<?= $catdropdown ?>
</select>
<select name=incldead>
<option value="0">Active</option>
<option value="1">Include Dead</option>
<option value="2">Only Dead</option>
<option value="3">FreeLeech</option>
</select>
<?if ($site_config["ALLOWEXTERNAL"]){?>
<BR><BR>
<select name=inclexternal>
<option value="0">Local/External</option>
<option value="1">Local Only</option>
<option value="2">External Only</option>
</select>
<? } ?>
<input type="submit" value="Search!" />
</form>
<script language="JavaScript" src="suggest.js" type="text/javascript"></script>
<div id="suggcontainer" style="text-align: left; width: 520px; display: none;">
<div id="suggestions" style="cursor: default; position: absolute; background-color: #FFFFFF; border: 1px solid #777777;"></div>
</div>
</CENTER>
<?
end_frame();
//search end
"rdesormiers, post: 66809":Hi Guys,
I have tried this mod but I can't make it working correctly. When I click on the ADD USER, I get the following message:
Error
'Sorry you do not have the rights to view this page!'
Note: I am logged in as an administrator.
I will post my PHP file.
Thanx. Regards.