"thedarklord, post: 77192":put this in between your <head></head> tags on every theme u wish to use glossy on
<script type="text/javascript" src="<?php echo $site_config["SITEURL"]; ?>/backend/glossy.js"></script>
change it to your path where glossy.js is
"thedarklord, post: 77185":u have to put that in every theme u use u know that ?
"XIII, post: 77182":echo '<script type="text/javascript" src="'.$site_config["SITEURL"].'/themes/default/js/glossy.js"></script>';
that would refrence that your using the default theme is that correct?
"cooly, post: 63464":It is actually working just some codes breaking it in index file so the solution...
open up functions.php and search..
add after...function stdfoot() {
global $site_config, $CURUSER, $THEME, $LANGUAGE;
echo '<script type="text/javascript" src="'.$site_config["SITEURL"].'/backend/glossy.js"></script>';
and change backend to your glossy path :)
"XIII, post: 76987":to bottom of file before ?>
"XIII, post: 77041":Well if you followed thedarklord's advice im sure it would of fixed the issue.
"XIII, post: 77036":in 2-svn english.lang is depreciated.
The error is saying you do not have that field in the database.
"thedarklord, post: 77029":it tells you everything you need to know in the install_en.txt
"XIII, post: 77025":@BlazTorrents Modifications are here for a reference. We are not here to assist anyone with building there trackers to there specification.
"Skayver, post: 33787":####################################################
##
## MOD Title: Recommendet Torrents
##
## MOD Author: Sk@yver
##
## MOD Description: This MOD will add the ability to
## recommend torrents and show
## recommended or top 10 torrents
## in torrent browse page.
##
## MOD Required Settings: NO
##
## MOD Compatibility: TTv2.x
## Support multilanguage: Yes
## Installation Level: Easy
## Installation Time: 5min.
## SQL changes: YES
##
## Files To Edit: 5
## languages/english.lang #Or your language
## torrents.php
## torrents-edit.php
## account.php
## backend/config.php
##
## Files To Upload: 0
##
####################################################
MOD instruction is in the Attachment.
"XIII, post: 77021":Shoutbox
Toecho '</td><td style="font-size: 12px; padding-left: 5px"><a href="'.$site_config['SITEURL'].'/account-details.php?id='.$row['userid'].'" target="_parent"><b>'.$row['user'].':</b></a> '.nl2br(format_comment($row['message']));
echo '</td><td style="font-size: 12px; padding-left: 5px"><a href="'.$site_config['SITEURL'].'/account-details.php?id='.$row['userid'].'" target="_parent"><b>'.class_user($row['user']).':</b></a> '.nl2br(format_comment($row['message']));
"cooly, post: 77008":slightly updated...
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 8: // SYS:
$col = "#15CFCD";
break;
case 7: // ADMINISTRATORSYS:
$col = "#ff0000";
break;
case 6: // Administrator
$col = "teal";
break;
case 5: // Super Moderator
$col = "#3300CC";
break;
case 4: // Moderator
$col = "#006600";
break;
case 3: // VIP
$col = "#FFFF00";
break;
case 2: // Uploader
$col = "#33FF33";
break;
default: // User
$name = $name;
}
if ($classy[1]>0){
$star="<img src='".$site_config["SITEURL"]."/images/star.gif' alt='donated' border='0' />";
}else{
$star="";
}
if($classy[2]=="yes"){
$warn="<img src='".$site_config["SITEURL"]."/images/warn.gif' alt='warned' border='0' />";
}else{
$warn="";
}
return unesc("<span style='color:".$col.";'>".$name."</span>".$star."".$warn."");
}
"thedarklord, post: 77004":np m8 moved to mods completed
"thedarklord, post: 77002":there was a problem but it does work
find
add afterprint("<tr><td align='left'><b>" .T_("INFO_HASH"). ":</b></td><td>" . $row["info_hash"] . "</td></tr>\n");
print("");
$q = SQL_Query_exec("SELECT `class` FROM `users` WHERE `id` = '".$row['owner']."'");
$r = mysql_fetch_assoc($q);
# VIP Class By Default...
$vip = null;
if ( $r['class'] == 3 )
{
$vip = '<img src="/images/star.png" title="VIP" />';
}
this was missing the ; at the end of the image so gave a syntax error
then
find
print("<tr><td align='left'><b>" .T_("ADDED_BY"). ":</b></td><td><a href='account-details.php?id=" . $row["owner"] . "'>" . $row["username"] . "</a></td></tr>");
replace with
print("<tr><td align='left'><b>" .T_("ADDED_BY"). ":</b></td><td><a href='account-details.php?id=" . $row["owner"] . "'>" . $row["username"] . " $vip</a></td></tr>");
screen
"SJC2TK, post: 76998":have you added an image to your image folder ?
"XIII, post: 76995":Im not angry i just find it frustrating when members, dont use search or cant perform a simple task... in torrent-details.php search for this
replace to<a href='account-details.php?id=" . $row["owner"] . "'>" . $row["username"] . "</a>
<a href='account-details.php?id=" . $row["owner"] . "'>" . $row["username"] . " $vip</a>
put my code above it? or is that too hard lol
"XIII, post: 76993":How hard is it to use search? then say well ok thats the line hes referencing and compare it to what i changed? people assme to copy and paste you need to know PHP and you dont... PHP is like tying your shoe laces
"XIII, post: 76989":to...print("<tr><td align='left'><b>" .T_("ADDED_BY"). ":</b></td><td><a href='account-details.php?id=" . $row["owner"] . "'>" . $row["username"] . "</a></td></tr>");
print("<tr><td align='left'><b>" .T_("ADDED_BY"). ":</b></td><td><a href='account-details.php?id=" . $row["owner"] . "'>" . $row["username"] . " $vip</a></td></tr>");
It may not work for you depending what version you are using but you will get the jist of it...
"XIII, post: 76979":For vip on torrents-details.php
$q = mysql_query("SELECT `class` FROM `users` WHERE `id` = '".$row['owner']."'");
$r = mysql_fetch_assoc($q);
# VIP Class By Default...
$vip = null;
if ( $r['class'] == 3 )
{
$vip = '<img src="PATH/TO/IMAGE" title="VIP" />'
}
u need to echo $vip; next to the username of the uploader...
"ArcticWolf, post: 76972":just use the mod here [url="http://www.torrenttrader.org/index.php?showtopic=12259&hl="]http://www.torrenttrader.org/index.php?sho...c=12259&hl=[/url] you can add custom stuff to it for other icons then just following the instructions in the mod to add it places you want. I use it on my site, well an modified version but its not hard to do.