whats line 313 of your torrents-details.php ?
<?php if ($IMDB->param['tomatoes'] == 'true'): ?>
<tr>
<td class="table_head" colspan="2"><b><?php echo T_("IMDB_TOMATOES"); ?></b></td>
</tr>
<tr>
<td class="table_col1"><b><?php echo T_("IMDB_METER"); ?></b></td>
<td class="table_col2"><?php echo $data->tomatoMeter; ?></td>
</tr>
<tr>
<td class="table_col1"><b><?php echo T_("IMDB_IMAGE"); ?></b></td>
<td class="table_col2"><?php echo $data->tomatoImage; ?></td>
</tr>
<tr>
<td class="table_col1"><b><?php echo T_("IMDB_RATING"); ?></b></td>
<td class="table_col2"><?php echo $data->tomatoRating; ?></td>
</tr>
<tr>
<td class="table_col1"><b><?php echo T_("IMDB_REVIEWS"); ?></b></td>
<td class="table_col2"><?php echo $data->tomatoReviews; ?> <b><?php echo T_("IMDB_FRESH"); ?></b> <?php echo $data->tomatoFresh; ?> <b><?php echo T_("IMDB_ROTTEN"); ?></b> <?php echo $data->tomatoRotten; ?></td>
</tr>
<tr>
<td class="table_col1"><b><?php echo T_("IMDB_CONSENSUS); ?></b></td>
<td class="table_col2"><?php echo $data->tomatoConsensus; ?></td>
</tr>
<?php endif; ?>
</table>
<br /><br />
<?php
endif;
public $param = array('plot' => 'full', 'tomatoes' => 'true');
to
public $param = array('plot' => 'full', 'tomatoes' => 'false');
after every 10 reppoint I add this codeQuote:if($CURUSER["id"] != $user["id"]) {
Quote:<?php
$total = $user["reputation"];
$nbrpics = $total / 10;
$nbrpics = (int) $nbrpics;
echo "<p>";
while ($nbrpics > 0) {
echo '<img src="images/reppoint.jpg"> ';
$nbrpics = $nbrpics - 1;
}
echo "</p>";
<?php
//
// MOD REPUTATION : View users by reputations points page
//
require_once("backend/functions.php");
dbconn(false);
loggedinonly();
////////////////////////// here choose the mim class allowed to see dat page /////////////////////////
if ($site_config["INVITEONLY"] || $CURUSER["class"] < 17)
show_error_msg("Error","<font size=2>You are not allowed to see this page.</font>",1);
//////////////////////// here i just decided to hide left blocks on my test site, quote it if not wanted or remove //////////
$site_config["LEFTNAV"] = false;
stdhead("users by reputation");
begin_frame("users by reputation");
// Si la variable $_GET['sort'] existe...
if(isset($_GET['sort'])) $sort = $_GET['sort'];
if(!isset($_GET['sort'])) $sort = $_POST['sort'];
elseif(empty($_GET['sort'])) $sort = "id";
print("$sort");
?>
<FORM method="post" action="viewreputations.php">
<TABLE>
<tr>
<td>Sort by:</td>
<td><select name="sort">
<OPTION value="">--Any--</OPTION>
<OPTION value="country">Country</OPTION>
<OPTION value="class">Class</OPTION>
<OPTION value="id">User</OPTION>
<OPTION value="reputation">Reputation</OPTION>
</select></td>
</tr>
<tr>
<td><INPUT type="submit" value="Sort now"></td>
<td></td>
</tr>
</TABLE>
</FORM>
<?php
echo "<br><B><CENTER>Please <a href=staff.php>contact</a> a member of staff if you would like explanations on the reputation system ...</CENTER></B><BR><BR>";
$messagesParPage=10;
$retour_total=mysql_query('SELECT COUNT(*) AS total FROM users'); //Nous récupérons le contenu de la requête dans $retour_total
$donnees_total=mysql_fetch_assoc($retour_total); //On range retour sous la forme d'un tableau.
$total=$donnees_total['total']; //On récupère le total pour le placer dans la variable $total.
$nombreDePages=ceil($total/$messagesParPage);
if(isset($_GET['page'])) // Si la variable $_GET['page'] existe...
{
$pageActuelle=intval($_GET['page']);
if($pageActuelle>$nombreDePages) // Si la valeur de $pageActuelle (le numéro de la page) est plus grande que $nombreDePages...
{
$pageActuelle=$nombreDePages;
}
}
else
{
$pageActuelle=1; // La page actuelle est la n°1
}
$premiereEntree=($pageActuelle-1)*$messagesParPage; // On calcul la première entrée à lire
$retour_messages=mysql_query('SELECT * FROM users ORDER BY '.$sort.' DESC LIMIT '.$premiereEntree.', '.$messagesParPage.' ');
print("$retour_messages");
if($nombreDePages == 0) { echo "<BR><B>.....................</b><BR>n"; }
else {
print("<table align=center cellpadding=3 cellspacing=0 class=table_table width=100% border=1>");
print("<tr><td class=table_head align=center>User ID</td>
<td class=table_head align=center>Username</td>
<td class=table_head align=center>Country</td>
<td class=table_head align=center>Class</td>
<td class=table_head align=center>Level</td>
<td class=table_head align=center>Total reputation points</td></tr>");
while($donnees_messages=mysql_fetch_assoc($retour_messages)) {
$countryname = get_user_country_name($donnees_messages[country]);
$levelname = get_user_class_name($donnees_messages['class']);
print("<tr><td class=table_col2 align=center>$donnees_messages[id]</td>
<td class=table_col1 align=center>$donnees_messages[username]</td>
<td class=table_col2 align=center>$countryname</td>
<td class=table_col1 align=center>$donnees_messages[class]</td>
<td class=table_col2 align=center>$levelname</td>
<td class=table_col2 align=center>$donnees_messages[reputation]n");
echo "<br>";
$total = $donnees_messages["reputation"];
$nbrpics = $total / 10;
$nbrpics = (int) $nbrpics;
echo "<p>";
while ($nbrpics > 0) {
echo '<img src="images/reppoint.jpg"> ';
$nbrpics = $nbrpics - 1;
}
echo "</p>";
print ("</td></tr>n");
}
echo "</table>";
}
echo "<br />Here showing our members Hall of Fame Reputations<br />";
echo '<p align="center">Page : '; //Pour l'affichage, on centre la liste des pages
for($i=1; $i<=$nombreDePages; $i++) //On fait notre boucle
{
//On va faire notre condition
if($i==$pageActuelle) //Si il s'agit de la page actuelle...
{
echo ' [ '.$i.' ] ';
}
else //Sinon...
{
echo ' <a href="viewreputations.php?sort='.$sort.'&page='.$i.'">'.$i.'</a> ';
}
}
echo '</p>';
end_frame();
stdfoot();
?>
// Uploader Rating
$user_rated_check_acc = get_row_count("reppoint", "WHERE userid='" . $CURUSER['id'] . "' AND uploader='" . $user["id"] . "' AND type ='account'");
$total_rep = $user["reputation"];
if ($total_rep > 0) {
$user_rep_pic = get_uploader_rep($total_rep);
}
print ("<br />Rep Pts :".$total_rep);
$user_rated_check_acc = get_row_count("reppoint", "WHERE userid='" . $CURUSER['id'] . "' AND uploader='" . $user["id"] . "' AND type ='account'");
$total_rep = $CURUSER["reputation"];
print ("<br />Reputation Pts: ".T_($CURUSER["reputation"])."");
<form method="post" action="takereppoints.php?userid=UID&comefrom=torrents&torrentid=TORID">
<input type="hidden" name="torrent" value="">
<input type="hidden" name="givepoints" value="">
<input type="submit" value="Thank">
</form>
"BigMax1, post: 89297":And where are recorded the points awarded? On what basis is verified whether a user has given one point to another?
No users online
Torrents
Members
Online