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
Reputation system 2.08
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2.08 Mods Completed

Unknown User
2012-11-19 01:59:27
whats line 313 of your torrents-details.php ?
Unknown User
2012-11-19 02:02:42
line 311 to 339



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

Unknown User
2012-11-19 02:50:52
ah tomatos thing has not worked in decades.. imdb api site removed it decades ago!!!

my guess you using some old imdb addon so without the link to it hard to say what you should edit to disable that..

once you find it change

 public $param = array('plot' => 'full', 'tomatoes' => 'true'); 

to

 public $param = array('plot' => 'full', 'tomatoes' => 'false'); 
Unknown User
2012-11-19 07:22:32
Thanks ArcticWolf, nice work indeed :)
Unknown User
2012-11-28 22:40:18
To add this small picture after every 10 reppoint I add this code

in account-details

BEFORE :

Quote:
if($CURUSER["id"] != $user["id"])   {


add:

Quote:
<?php

$total = $user["reputation"];

$nbrpics = $total / 10;

$nbrpics = (int) $nbrpics;

echo "<p>";

while ($nbrpics > 0) {

echo '<img src="images/reppoint.jpg">&nbsp;';

$nbrpics = $nbrpics - 1;

}

echo "</p>";

I'm wondering if it could be adjusted,  in case a user earnes  many many points,

for example  100 to 500,  replacing  the green pic, by  a blue one,

with a range  of  every 50 points ...

and if this code (statistics for users gathering points) can be adjusted for 2.08



<?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">&nbsp;';

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

?>


THANKS
Unknown User
2012-11-29 00:39:59
  [url="https://www.torrenttrader.org/user/69200-mostvotedplaya/"][size=12px]mostvotedplaya[/size][/url][size=12px] [/size]??? can u help us??
Unknown User
2013-02-28 20:52:19
How to ad rep points in to login_block?

THANKS!
Unknown User
2013-02-28 21:25:17
well its under the users table variable reputation .. anyone with an 1/4 of an brain could figure out how to call it:)

I could maybe see if in another table but .. users LOL!!!!!
Unknown User
2013-02-28 23:56:33
Look - I have your rep system which is a bit updated by you...

I tried multiple things and non is giving me Reputation points in login - block

last i tried was inserting this in to login_block.php





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



THANKS!
Unknown User
2013-03-01 02:47:07
a: you cant use $user info in login_block in only the current user viewing the block!!!

b: you cant give rep to yourself anyway!!!!

c: change $user to $CURUSER and you might get someplace!!!!!!!!!!!!!!!!!!!!!!!
Unknown User
2013-03-01 08:29:30
YES, THAD SOLVED MY PROBLEMS, THANKS

Now, I learned that to...

 $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"])."");
Unknown User
2013-03-04 14:50:15
This mod is very useful and works fine, but it's a problem here. A member can gives an unlimited number of points to another.

On my tracker, a joker had the patience to give to a friend almost 1000 points  :lol:

There should be a limit here, maybe only one point to a member in a week, or something...
Unknown User
2013-03-04 17:34:39
i solved giving unlimited rep point issue with this mod;

[url="https://www.torrenttrader.org/index.php?/topic/6740-mod-thanks/"]https://www.torrentt...740-mod-thanks/[/url]

kinda mixed mods together but i forget now, how i did it.:/



<form method="post" action="takereppoints.php?userid=UID&amp;comefrom=torrents&amp;torrentid=TORID">

<input type="hidden" name="torrent" value="">

<input type="hidden" name="givepoints" value="">

<input type="submit" value="Thank">

</form>



worked fine for me.

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6627"]takereppoints.php[/url]
takereppoints.php
Download
Unknown User
2013-03-05 04:49:34
And where are recorded the points awarded? On what basis is verified whether a user has given one point to another?
Unknown User
2013-03-05 07:21:59
"BigMax1, post: 89297":
And where are recorded the points awarded? On what basis is verified whether a user has given one point to another?

and thats the question...
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: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728