Quote:i have found a bug here. if i apply cooly's class color function nd apply uploader rank . thn the user name color does not appear untill i give a uploader rank. If i assign a uploader rank thn user color according to class works
so i have removed aboved code nd applied original cooly's class color fun nd color is working :S
any solution?
"fozshell, post: 47441":This mod allows people on ur site to contact admins who have control on the cp u can then reply to there message from the staff pannel or delete and mark as answered
Alter tables
`id` int( 10 ) unsigned NOT NULL AUTO_INCREMENT ,CREATE TABLE `staffmessages` (
`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 ;
Open admincp.php
Find
Add bellow<td align="center"><a href=admincp.php?action=ipbans><img src="images/admin/blocked.gif" border=0 width=32 height=32><BR>Banned IPs</a><BR></td>
<td align="center"><a href=staffbox.php><img src="images/admin/contact.png" border=0 width=32 height=32><BR>Staff contacts</a><BR></td>
Upload these 3 files to ur root
[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=3013"]contactstaff.php[/url]
[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=3014"]staffbox.php[/url]
[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=3015"]takecontact.php[/url]
Image
Please let me no what u think and if it works as it is like 4.00am here lol
"BlazTorrents, post: 77026":can you pls tel me where to put recommendedtorrents_block.php and where to add these lines?? i mean in index.php if so pls give me location of index.php that after which lines to add these as i edit other instruction i.e account.php,torrents-edit.php,config.php.Thanks
Quote://Site Noticeif ($site_config['SITENOTICEON']){
begin_frame(T_("NOTICE"));
echo $site_config['SITENOTICE'];
end_frame();
}
Quote:/// Recommended torrents imagesbegin_frame("Recommended");
$news = mysql_query("SELECT id, name, added, image1, image2 FROM torrents WHERE banned ='no' AND visible='yes' AND torrents.recommended='yes' ORDER BY torrents.id DESC LIMIT 7"); ///limit number of images
if (mysql_num_rows($news) > 0) {
print("<table align=center cellpadding=0 cellspacing=0 width=100% border=0><tr>");
while ($row2 = mysql_fetch_array($news, MYSQL_NUM)) {
$tor = $row2['0'];
$altname = $row2['1'];
$where = "WHERE banned = 'no' AND visible='yes' AND torrents.id='$tor'";
$res = mysql_query("SELECT torrents.id, torrents.image1, torrents.image2, torrents.added, categories.name AS cat_name FROM torrents LEFT JOIN categories ON torrents.category = categories.id $where $orderby $limit");
$row = mysql_fetch_array($res);
$cat = $row['cat_name'];
$img1 = "<a href='$site_config[sITEURL]/torrents-details.php?id=$row[id]'><img border='0'
src='uploads/images/$row[image1]' alt=\"$altname / $cat\" width=90></a>";
if ($row["image1"] != ""){
print("<td align=center>". $img1 ."<BR></td><td> </td>");
}
}
print("</tr></table>");
}
end_frame();
/// end recommended torrent images
Quote:<?php
begin_block("Recommended");
$news = mysql_query("SELECT id, name, added, image1, image2 FROM torrents WHERE banned ='no' AND visible='yes' AND torrents.recommended='yes' ORDER BY torrents.id DESC LIMIT 7"); ///limit number of images
if (mysql_num_rows($news) > 0) {
print("<table align=center cellpadding=0 cellspacing=0 width=100% border=0><tr>");
while ($row2 = mysql_fetch_array($news, MYSQL_NUM)) {
$tor = $row2['0'];
$altname = $row2['1'];
$where = "WHERE banned = 'no' AND visible='yes' AND torrents.id='$tor'";
$res = mysql_query("SELECT torrents.id, torrents.image1, torrents.image2, torrents.added, categories.name AS cat_name FROM torrents LEFT JOIN categories ON torrents.category = categories.id $where $orderby $limit");
$row = mysql_fetch_array($res);
$cat = $row['cat_name'];
$img1 = "<a href='$site_config[sITEURL]/torrents-details.php?id=$row[id]'><img border='0'
src='uploads/images/$row[image1]' alt=\"$altname / $cat\" width=90></a>";
if ($row["image1"] != ""){
print("<td align=center>". $img1 ."<BR></td><td> </td>");
}
}
print("</tr></table>");
}
end_block();
?>
"Mush, post: 61309":i can't for the life of me get this to work , i got the option to mail ban them , but if i click yes then submit, it just reverts back to no ......... any idea what i may of done wrong would be a help, THANKS ................. I'm using tt v 2.05
"Dalibor, post: 42434":Ban user from torrents upload
Go to PhPMyAdmin and run this query:
ALTER TABLE `users` ADD `uploadbanned` char(3) NOT NULL default 'no';
Now Edit account-details.php
Find code
$forumbanned = $user["forumbanned"] == 'yes';
Add After:
$uploadbanned = $user["uploadbanned"] == 'yes';
Find code:
print("<tr><td>Forum Banned: </td><td align=left><input name=forumbanned value=yes type=radio" . ($forumbanned ? " checked" : "") . ">Yes <input name=forumbanned value=no type=radio" . (!$forumbanned ? " checked" : "") . ">No</td></tr>\n");
Add after code:
print("<tr><td>Torrents Submit Banned: </td><td align=left><input name=uploadbanned value=yes type=radio" . ($uploadbanned ? " checked" : "") . ">Yes <input name=uploadbanned value=no type=radio" . (!$uploadbanned ? " checked" : "") . ">No</td></tr>\n");
In admin-modtasks.php:
FInd code
$forumbanned = $_POST["forumbanned"];
Add after code:
$uploadbanned = $_POST["uploadbanned"];
Find code
mysql_query("UPDATE users SET title='$title', downloaded='$downloaded', uploaded='$uploaded', signature='$signature', avatar='$avatar', ip='$ip', donated='$donated', forumbanned='$forumbanned', warned='$warned', modcomment='$modcomment', enabled='$enabled', invites='$invites' WHERE id=$userid");
Add For Exemple after:
forumbanned='$forumbanned',
Add this bit of code :
uploadbanned='$uploadbanned',
In torrents-upload.php
Find code
if($CURUSER["can_upload"]=="no")
show_error_msg("Error","You do not have permission to upload",1);
Add after code
$subbanned = mysql_query("SELECT id FROM users WHERE id=$CURUSER[id] AND uploadbanned='no' LIMIT 1") or err('Tracker error (1)');////////////////////////Torrent Submit Banned?///////////////////////////////////////////////////
if (mysql_num_rows($subbanned) < 1){
stdhead("Upload Banned");
begin_frame("You are Banned from Torrents Upload");
echo "<center><br><BR><B>You don't respect Torrent submission rules, a Admin had banned you from Torrents Upload.<br><b>";
echo "<br>If you have any complain, contact us :<ahref=mailto:$SITEEMAIL>$SITEEMAIL</a><br><BR></center>";
end_frame();
stdfoot();
exit;
}
/////////////////////////////////////////////////////////////////////////////////////////////////
Quote::)Fatal error: Call to undefined function err() in /home/toraa/public_html/torrents-upload.php on line 20
"Skayver, post: 33791":MissDanni after installing this Addon.In file backend/config.php
edit line:
$site_config['RECO_CLASS'] = 6;
confgure who is recomende torrents;
7=Administrator
6=Super Moderators and Administrator
5=Moderators, Super Moderator and Administrator
4=Uploader, Moderators, Super Moderator and Administrator (not recomended)
Defilt this mod configured to onli Super Moderator and Administrator recommende torent.
Sorry for my BAD English
Quote:;)/// START RECOMMENDED TORRENTS ///$site_config['RECOMMENDED_ON'] = true; //enable/disable Recommended Torrents
$site_config['RECO_CLASS'] = 8; /// Level of users to recommende torrent (5=MOD) (6=SUPER MOD)
// END RECOMMENDED TORRENTS ///
"djhowarth, post: 46889":Thanks
Add <BR> Before The User Class Because Unless The User Has A Ratio It Will Look Like Below
Downloaded: 0.00 KB
Uploaded: 0.00 KB
Privacy level: normal
Ratio: --- User Class:
Administrator
The <BR> Makes It Look Like
Downloaded: 0.00 KB
Uploaded: 0.00 KB
Privacy level: normal
Ratio: ---
User Class:
Administrator
Quote:working gr8 :angry: thanks :love:<CENTER><BR><b><?=$CURUSER["level"] ?></b><BR></CENTER>
"Stevo, post: 72088":the 2nd part of your code didn't work for me so i just used what i posted and it works perfect
"buzz_me, post: 69883":If any one know how to fix it.please help on this mod :)i have found a bug here. if i apply cooly's class color function nd apply uploader rank . thn the user name color does not appear untill i give a uploader rank. If i assign a uploader rank thn user color according to class works
so i have removed aboved code nd applied original cooly's class color fun nd color is working :S
any solution?