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
User Posts

Go to Profile

Can this be optimized for TT 2.08so it uses "SQL_Query_exec"

and am having same problem as "celtic"

Quote:
But i've a problem when I want to delete a "ex-friend" from my listI have this message " Error!","ID not found in your friends list..."
I have attached my .php files as well...

Help please

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6328"]friend.php[/url]

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6329"]friends.php[/url]

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6330"]takedelfriend.php[/url]

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6331"]friends_block.php[/url]
blackjack mod — 2012-12-02 21:18:25 in General Chat
Hi!

I kind of fixed that with the blocks...

create an blackjack_block.php and add

Quote:
<?php begin_block("Black Jack"); ?><!-- HTML HERE -->

<div class="table"><p><object  width="100%" height="450" data="[url="http://tsmods.net/blackjack.swf"]http://tsmods.net/blackjack.swf"[/url] type="application/x-shockwave-flash"><param name="src" value="[url="http://tsmods.net/blackjack.swf"]http://tsmods.net/blackjack.swf"[/url] /></object></p>

<!-- HTML END -->

<?php end_block(); ?>

then upload it to /public_html/blocks/

go to your admincp - blocks and add it to middle...

But the code from above can also be used to edit index.php and integrate it where you want to appear...

in index.php find

if ($site_config['DISCLAIMERON']){
add above:




//////Black Jack////////



if ($site_config["MEMBERSONLY"] && !$CURUSER) {

echo "<br /><br /><center><b>".T_("BROWSE_MEMBERS_ONLY")."</b></center><br /><br />";

} else {

begin_frame("Black Jack");

echo '<p><object width="100%" height="450" data="http://tsmods.net/blackjack.swf" type="application/x-shockwave-flash"><param name="src" value="http://tsmods.net/blackjack.swf" /></object></p>';

end_frame();

}



or simply download index.php and overweight your [make backup first]

check it here: [url="http://www.divxhunt.tk"]www.+++++++++.tk[/url]

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6298"]blackjack_block.php[/url]

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6299"]index.php[/url]
THANKS! Works nicely
Got it! works fine...
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
I tried to implement it in cooly's mod class colors so the rank would show after nicknames...

here is the link to class color mod: https://www.torrenttrader.org/topic/12259-class-colors-function/

found this code but can't seam to make it work...

Quote:
function class_user($name)

{

global $site_config;

$a ="SELECT class, donated, warned FROM `users` WHERE username ='".$name."'";

$res = SQL_Query_exec($a);

$classy = @mysql_fetch_row($res);

switch ($classy[0]) {

case 10: // SYS:

$col = "#1c3b5f";

break;

case 7: // ADMINISTRATORSYS:

$col = "#d8830e";

break;

case 6: // Super Moderator

$col = "teal";

break;

case 5: // Moderator

$col = "#3300CC";

break;

case 4: // Uploader

$col = "#006600";

break;

case 3: // VIP

$col = "#ff0000";

break;

case 2: // Power User

$col = "#33FF33";

break;

default: // User

$name = $name;

}

if ($classy[1]>0){

$star="<img src='".$site_config[sITEURL]."/images/star.png' alt='donated' border='0'>";

}else{

$star="";

}

if($classy[2]=="yes"){

$warn="<img src='".$site_config[sITEURL]."/images/warn.png' alt='warned' border=0>";

}else{

$warn="";

}

if($classy[3]>0){

$rang="<img src='".$site_config[sITEURL]."/images/".$classy[5]."' alt='".$classy[4]."' border='0'>";

}else{

$rang="";

}

return unesc("<font color='".$col."'>".$name."".$star."".$warn."</font>");

}
I have no ranks after names in shoutbox and/or forum...

Help?
Hi!

I need help. I'm no coder and would like to add categories to this JWPlayer

I would like to add movies, music, TV an tutorials categories...

can someone help...
Thanks for the code Mythos

I added this ArcticWolf code to and it works great...
THANKS MicroMonkey - it helped

i simply changed all the

Quote:
$"???"[username]
in to

Quote:
".class_user($"???"[username])."

"???" = arr, user, a

THANKS
This is working like a charm

wondering if automatized adding of  rank can be done

example:

500 uploaded torrents bronze medal

1000  -------//--------- silver medal

2000 gold

and same with ratio uploaded

1tb uploaded bronze

2tb --//--  silver

3tb --//--  gold

i think that code would be awesome!
Uploader Rank — 2012-11-27 17:55:53 in v2 Only Mods Complete
THANKS to ArcticWolf

IT WORKS on 2.08

go here: [url="https://www.torrenttrader.org/topic/17364-uploader-rank-208/"]https://www.torrenttrader.org/topic/17364-uploader-rank-208/[/url]
THANKS it works great on 2.08

what needs to be edited to show the colors on forums also...
Uploader Rank — 2012-11-27 11:21:34 in v2 Only Mods Complete
is it possible to have this for 2.08 ver
can it be done so I upload to another server (like RapidShare, or some free hosting servers i own ) and add a link to them

will it play...?
I have added ownercp.php and did something wrong with classes it's not recognizing my owner class that's bigger then admin as ,well, bigger

on admincp which is as default 7 the mod is working perfect...
i keep getting when trying to log in the new created user:

The specified username or password was incorrect.

and am using this 2.08 code
The JW-Player.rar file contains all that's necessary to set up this CINEMA MOD?

Can thhis mod support links from other server...

example . I upload an .flv or .mp4, .avi files to Rapidshare and give the http link - will it work?
Can someone rewrite this with the new LANG system of 2.08

or if someone has this optimized for TT 2.08 please share the files

or update the first post and move to mods complete for 2.08

Please

THX
hi!

JUST WONDERING IF "use of the PayPal Sandbox" COULD BE IMPLEMENTED IN TO THIS CODE
THANKS for this

WORKS like a charm on 2.08
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