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

Class Change — 2015-04-08 11:48:44 in v2.08 Mods Completed
Hello,
 
Here is a mod that allows you to change classes without going through your database, but through your login block.
 
It is very old and I just put it updated.
 
Modified file: Yes
 
SQL: YES
 
BEFORE ANY CHANGES MAKE A Service
 
 
SQL :
 
ALTER TABLE users ADD `changemode` enum('yes','no') NOT NULL default 'no';

Once the query executed go in your users table to put 'yes' to your nickname in the ChangeMode column.

Open your blocks / login_block.php and searching

<?php if ($CURUSER["control_panel"]=="yes") {print("<a href="admincp.php">".T_("STAFFCP")."</a>");}?>

Add below:

<?php
if ($CURUSER["changemode"]=="yes") {
   print("<center><form name='mod_form_1' method=post action=changemode.php>n");
$actualclass=$CURUSER['class'];
$class = "<option value=0>---Sélectionnez ----</option>n";
$query = SQL_Query_exec("SELECT group_id,level FROM groups ORDER BY level") or die;

   while ($result = mysql_fetch_array($query))
$class .= "<option value=$result[group_id]" . ($actualclass == $result['group_id'] ? " selected" : "") . ">$result[level]</option>n";

   print("<br/><font color=red><b>Changer de Grade</b></font><br/><select name=class>n$classn</select>");
   print("<br/><br/><center><input type=submit class=buton value='Envoyer'></center>");
   print("</form></center>");
}
   else
   print("<input type=hidden name=class value=$actualclass>");
   print("</form></center>");
?>

Changemode.php open the file (I provide) and search

$maxclass = 10;

Replace the figure by the number of groups you have on your site.

result


[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=7209"]changemode.php[/url]
Torrents images — 2015-04-08 11:38:51 in v2.08 Mods Completed
Hello,
 
Before any changes are advised to make a service of your files.
 
Modified files: Yes
 
SQL: No
 
Open your index.php and look for:
 
//Site News
if ($site_config['NEWSON'] && $CURUSER['view_news'] == "yes"){
begin_frame(T_("NEWS"));
$res = SQL_Query_exec("SELECT news.id, news.title, news.added, news.body, users.username FROM news LEFT JOIN users ON news.userid = users.id ORDER BY added DESC LIMIT 10");
if (mysql_num_rows($res) > 0){
print("<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td>n<ul>");
$news_flag = 0;

while($array = mysql_fetch_assoc($res)){

           if (!$array["username"])
                $array["username"] = T_('UNKNOWN_USER');

$numcomm = get_row_count("comments", "WHERE news='".$array['id']."'");

// Show first 2 items expanded
if ($news_flag < 2) {
$disp = "block";
$pic = "minus";
} else {
$disp = "none";
$pic = "plus";
}

print("<br /><a href="javascript: klappe_news('a".$array['id']."')"><img border="0" src="".$site_config["SITEURL"]."/images/$pic.gif" id="pica".$array['id']."" alt="Show/Hide" />");
print("&nbsp;<b>". $array['title'] . "</b></a> - <b>".T_("POSTED").":</b> " . date("d-M-y", utc_to_tz_time($array['added'])) . " <b>".T_("BY").":</b> $array[username]");

print("<div id="ka".$array['id']."" style="display: $disp;"> ".format_comment($array["body"])." <br /><br />".T_("COMMENTS")." (<a href='comments.php?type=news&amp;id=".$array['id']."'>".number_format($numcomm)."</a>)</div><br /> ");

$news_flag++;
}
print("</ul></td></tr></table>n");
}else{
echo "<br /><b>".T_("NO_NEWS")."</b>";
}
end_frame();
}

Add below:

begin_frame("Torrents en Image ");
 
echo '<IFRAME  src="'.$site_config["SITEURL"].'/carroussel.php" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="160"  scrolling="no" align="middle"></IFRAME>';
end_frame();

Put the "carroussel.php" file in the root of your, dice zipper "js" file and put the js folder at the root of your site.Enfin image "arrow.png" in your "images" folder.

Css of this mod is in the php file carousel it will play with the values for a good fit on your sites

result:




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

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=7208"]js.zip[/url]
Hello,
 
A nice little hack that is used to put the name and the member of the country's flag.
 
Files modified: Yes
 
Sql: No
 
BEFORE ANY CHANGES MAKE A VAS.
 
 
Open blocks / login_blocks.php and searching
 
 
$avatar = htmlspecialchars($CURUSER["avatar"]);
if (!$avatar)
$avatar = $site_config["SITEURL"]."/images/default_avatar.png";

$userdownloaded = mksize($CURUSER["downloaded"]);
$useruploaded = mksize($CURUSER["uploaded"]);
$privacylevel = T_($CURUSER["privacy"]);
 $bonus = $CURUSER['seedbonus'];
if ($CURUSER["uploaded"] > 0 && $CURUSER["downloaded"] == 0)
$userratio = "Inf.";
elseif ($CURUSER["downloaded"] > 0)
$userratio = number_format($CURUSER["uploaded"] / $CURUSER["downloaded"], 2);
else
$userratio = "---";

Add below:

/*On affiche le drapeau*==*/
$res = SQL_Query_exec("SELECT name,flagpic FROM countries WHERE id=$CURUSER[country] LIMIT 1") ;
if (mysql_num_rows($res) == 1)    {
   $arr = mysql_fetch_assoc($res);
      $country = "".$arr['name']."    <img src=images/countries/$arr[flagpic] height=10 width=25 border=0>";
                               }
               else{
       $country = "<img src='images/flags/inconnu.png' width='25' />"; ///change default image

Search :

". T_("RATIO") .": $userratio

Next add:

<br />Country: $country</b>

result:
mod excluded — 2015-04-08 11:24:28 in v2.08 Mods Completed
Files modified: Yes

Sql: Yes

Make service before any changes.

SQL :

ALTER TABLE torrents ADD `exclue` enum('yes','no') NOT NULL default 'no';

Open torrents-upload.php and search :

//anonymous upload
$anonyupload = $_POST["anonycheck"];
if ($anonyupload == "yes") {
$anon = "yes";
}else{
$anon = "no";
}
After :

$exclue =   unesc($_POST["exclue"]);
Search :

last_action,
Add after :

exclue
Search :

'$anon',
Add :

'".$exclue."',
Search :

if ($site_config['ANONYMOUSUPLOAD'] && $site_config["MEMBERSONLY"] ){ ?>
   <tr><td align="right"><?php echo T_("UPLOAD_ANONY");?>: </td><td><?php printf("<input name='anonycheck' value='yes' type='radio' " . ($anonycheck ? " checked='checked'" : "") . " />".T_("YES")." <input name='anonycheck' value='no' type='radio' " . (!$anonycheck ? " checked='checked'" : "") . " />".T_("NO").""); ?> &nbsp;<i><?php echo T_("UPLOAD_ANONY_MSG");?></i>
   </td></tr>
Add after :

if (get_user_class() >= 4) {

print("<tr><td align=right>Exclusivit&eacute;: </td><td align=left><input name=exclue value=yes type= radio>Oui<input name=exclue value=no type=radio  checked=checked>Non<br>(Activez la case si c'est une exclusivit&eacute;)</td></tr>");


}
Open torrents-edit.php and search :

$updateset[] = "torrentlang = " . (int) $_POST["language"];
Add after :

$updateset[] = "exclue = '" . ($_POST["exclue"] ? "yes" : "no") . "'";
Search :

if ($site_config['ANONYMOUSUPLOAD']) {
echo "<tr><td class='table_col1' align='right'><b>".T_("ANONYMOUS_UPLOAD").": </b></td><td class='table_col2'><input type="checkbox" name="anon"" . (($row["anon"] == "yes") ? " checked="checked"" : "" ) . " value="1" />(".T_("ANONYMOUS_UPLOAD_MSG").")<br /></td></tr>";
}
Add after :

echo "<tr><td class='table_col1' align='right'><b>Exclusivit&eacute;: </b></td><td class='table_col2'><input type="checkbox" name="exclue"" . (($row["exclue"] == "yes") ? " checked="checked"" : "" ) . " value="1" /> (Activez la case si c'est une exclusivit&eacute;)<br>";
Open backend/funstions.php and search :

if ($row["freeleech"] == 1)
$dispname .= " <img src='images/free.gif' border='0' alt='' />";
Add after :

if ($row["exclue"] == "yes")
$dispname .= " <img src='images/exclue.gif' border='0' alt='' />";  
Open torrents-search.php and search :

begin_frame(T_("SEARCH_TORRENTS"));
add after :

echo "<center><b><a href=exclue.php>Voir toutes nos Exclusivit&eacute;s</a></b><br><br> ";
Open torrents.php and search :

torrents.anon,
Add after :

torrents.exclue,
Ouvrez index.php and search :

torrents.anon,
Add after :

torrents.exclue,
Search :

if ($CURUSER["shoutboxbanned"] == "yes" )  {
Add to the above:

begin_frame("Les exclusivit&eacute;s du site");

echo "<center><table align="center" width="98%" height="200"border="0"><tr>";

$res = SQL_Query_exec("SELECT id, image1 FROM torrents WHERE banned='no' AND visible='yes' AND exclue='yes' ORDER BY id DESC LIMIT 20");

echo "<td> ";
echo "<MARQUEE behavior=scroll direction='left' height='150' scrollamount='2' scrolldelay='1' onmouseover='this.stop()' onmouseout='this.start()'>";
while ($arr=mysql_fetch_assoc($res))
{
if($arr[image1]=="")
{
echo '<a title="'.$arr['name'].'" href="'.$site_config['SITEURL'].'/torrents-details.php?id='.$arr['id'].'&hit=1"><img class="corner" border="0" src="images/nocover.jpg" alt="'.$arr['name'].'" title="'.$arr['name'].'" width="112" height="152"></a>&nbsp;&nbsp;';
}else{
echo '<a title="'.$arr['name'].'" href="'.$site_config['SITEURL'].'/torrents-details.php?id='.$arr['id'].'&hit=1"><img class="corner" border="0" src="uploads/images/'.$arr['image1'].'" alt="'.$arr['name'].'" title="'.$arr['name'].'" width="100" height="177"></a>&nbsp;&nbsp;';
}
}
echo "</marquee></td></tr></table><br></center>";

end_frame();
Put exclue.php file in the root of your site and the image "exclue.gif" in your Pictures folder.

results:











[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=7205"]exclue.php[/url]
searchcloud — 2014-10-19 15:01:52 in v2 Only Mods Complete
mysql_query

???

This is not quite :


SQL_Query_exec
Thank you to you this mod works perfectly and can also be more for multiple files as torrents-uploads, faq, etc. rules.php
hi,

Then you send your error by a lack of function in your function.php then you either follow clickhere and make changes.

[url="https://www.torrenttrader.org/index.php?/topic/17452-class-colors-function-for-208/?hl=user-class-selec-color-in-admincp"]https://www.torrenttrader.org/index.php?/topic/17452-class-colors-function-for-208/?hl=user-class-selec-color-in-admincp[/url]

or you open friends.php you go to line 90 and you change this part of code

".class_user($user[username])."

by

".$user[username]."

Besides, if this code appears several times in the file make the following changes above.
nice work

thanks Tiloup
on index i think
non rien ne change thib , le mod fonctionne très bien je n'ai juste que ce petit soucis d'accent
Moi je suis comme l'un des message de Tiloup les accents ne passent même en essayant le false dans l'api sachant que je savais que cela aurait pour effect d'arrêter le décodage des accents ; j'ai mis le fichier api en UTF8 également mais rien ne change , j'ai pas d'accents sur cette partie dans torrent-details
Thanks works great
s'est bon sa fonctionne , je n'avais pas mis les images dans le bon dossier lol
je viens d'essayer de le mettre sur la v2.08 mais rien n'apparait

dans mon thème css je mets ceci :



input#nick, input#passw, input#searchinput{

padding-left: 20px;

background-repeat: no-repeat;

background-position: 2px center;

}

input#nick{

background-image: url(images/login_.gif);

}

input#passw {

background-image: url(images/password_.gif);

}

input#searchinput {

background-image: url(images/search.gif);

}






et dans account-login.php







<tr><td align="center"><b><?php echo T_("USERNAME"); ?>:</b> <input type="text" size="40" name="username" id="nick" /></td></tr>

 <tr><td align="center"><b><?php echo T_("PASSWORD"); ?>:</b> <input type="password" size="40" name="password" id="passw" /></td></tr>

Thanks thib

Its working now for the V.2.08
hello,

I just installed the version 2.08 but now when I want to upload an avatar once I arrived on upavatar.php an error message:



Direct access not allowed !!!

Go to: ACCOUNT






But my files are chmod777 and I do not see why I note this
group premium — 2012-03-06 07:20:18 in General Chat
thank you for the clarification
group premium — 2012-03-05 22:07:43 in General Chat
hello,

I wanted to know if there is always the Premium Package?

Or group TT Contributor   equals the group prenium?

Otherwise what is the minimum amount to become prenium

Thanks
"Noname12, post: 81047":
in my 2.08 i have the code as you see in first post with a little changes in language(greek) and other. take it and test it if you want. For me its perfect.

i have the table as first post

CREATE TABLE `staffmessages` (

`id` int( 10 ) unsigned NOT NULL AUTO_INCREMENT ,

`sender` int( 10 ) unsigned NOT NULL default '0',

`added` datetime default NULL ,

`msg` text,

`subject` varchar( 100 ) NOT NULL default '',

`answeredby` int( 10 ) unsigned NOT NULL default '0',

`answered` tinyint( 1 ) NOT NULL default '0',

`answer` text,

PRIMARY KEY ( `id` )

) TYPE = MYISAM ;
and the admincp.php


<td align="center"><a href=staffbox.php><img src="images/admin/contact.png" border=0 width=32 height=32><br />Staff contacts<br /></a></td>



and the below codes

Thanks but can you put the files in English easier for me to put then in French

thank you
hi tiloup, / Salut tiloup

now I just follow your hack but no images appear in my

voil
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: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728