hejsa jeg vil lige høre om der skul være den der kun hjælpe mig har et lille poblem
den panel jeg har vil jeg gerne ha at jeg også kun bruge den til pro download panel
da download_plus_panel er til download.php
hvor maget skal jeg ratte i den for den også kan bruges til pro download panel
jeg køre php fusion v7.02.06
Kode <?php
// PHP-Fusion Content Management System
// Copyright © 2002 - 2008 Nick Jones
// http://www.php-fusion.co.uk/
// ------------------------------------
// Infusion: Download Plus Panel
// Displays the X amount of popular and latest downloads with total number of files, categories
// and number of overall downloaded files from your phpfusion site.
// Author: John Kirchner
// Web: http://www.programmingsource.net
// ------------------------------------
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
//Enter a number to display the top X/latest X/recent rated amount of downloads.
$topx = "5";
$lastx = "5";
$ratex = "5";
openside('Download Plus Stats', 'on');
if ($topx == "0" and $lastx == "0" and $ratex == "0") {
echo "All options are set to 0, make changes in the download_plus_panel.php file!";
}
if ($topx == "0") {
echo "";
} else {
echo "<center><font size='2' color='#FFFFFF'>Top $topx Downloads</font></center>";
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr><td align='left'><font size='1' color='#990000'>File</font></td>
<td align='right'><font size='1' color='#990000'>Hits</font></td></tr></table>
";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,$topx");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 15);
echo "<tr>\n<td class='small'><img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'><font size='1'>$itemsubject</font></a></td>\n
<td align='right'>".$data['download_count']."</td>\n</tr>\n";
}
echo "</table>";
} else {
echo "<center>No downloads added yet.</center>\n";
}
}
if ($lastx == "0") {
echo "";
} else {
echo "<br><center><font size='2' color='#FFFFFF'>$lastx Recently Added</font></center>";
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr><td align='left'><font size='1' color='#990000'>File</font></td>
<td align='right'><font size='1' color='#990000'>Date</font></td></tr></table>
";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,$lastx");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 15);
$dateadded = date('n-j-y', $data['download_datestamp']);
echo "<tr>\n<td class='small' align='left'><img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'><font size='1'>$itemsubject</font></a></td>
<td align='right' width='25%'>$dateadded</td>\n</tr>\n";
}
echo "</table>";
} else {
echo "<center>No new downloads added yet.</center>\n";
}
}
if ($ratex == "0") {
echo "";
} else {
echo "<br><center><font size='2' color='#FFFFFF'>$ratex Recently Rated</font></center>";
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr><td align='left'><font size='1' color='#990000'>File</font></td>
<td align='right'><font size='1' color='#990000'>Rating</font></td></tr></table>
";
$result = dbquery("SELECT * FROM ".$db_prefix."ratings WHERE rating_type='D' ORDER BY rating_vote DESC LIMIT 0,$ratex");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while($data = dbarray($result)) {
$result2 = dbquery("SELECT * FROM ".$db_prefix."downloads WHERE download_id=".$data['rating_item_id']."");
$data2 = dbarray($result2);
$filename = $data2['download_title'];
$fileid = $data2['download_id'];
$filecat = $data2['download_cat'];
$itemsubject = trimlink($filename, 15);
$rating = $data['rating_vote'];
if ($rating == "5") { $rating = "Awesome!";}
if ($rating == "4") { $rating = "VeryGood";}
if ($rating == "3") { $rating = "Good";}
if ($rating == "2") { $rating = "Average";}
if ($rating == "1") { $rating = "Poor";}
echo "<tr>\n<td class='small'><img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."downloads.php?cat_id=$filecat&download_id=$fileid' title='$filename' class='side'><font size='1'>$itemsubject</font></a></td>\n
<td align='right' width='25%'><font size='1'>$rating</font></td>\n</tr>\n";
}
echo "</table>";
} else {
echo "<center>No downloads rated yet.</center>\n";
}
}
//get category and file totals
echo "<hr>";
$sql1 = dbquery("SELECT * FROM ".DB_DOWNLOAD_CATS." WHERE ".groupaccess('download_cat_access')."");
$rowcount = dbrows($sql1);
$sql2 = dbquery("SELECT * FROM ".DB_DOWNLOADS." WHERE ".groupaccess('download_access')."");
$rowcount2 = dbrows($sql2);
$sql3 = dbquery("SELECT *, SUM(download_count) FROM ".$db_prefix."downloads");
while($row = dbarray($sql3))
{
$dlcount = $row['SUM(download_count)'];
}
echo "<font color='#990000'>$rowcount</font> categories.<br>";
echo "<font color='#990000'>$rowcount2</font> downloadable files.<br>";
echo "<font color='#990000'>$dlcount</font> total download hits.<br>";
closeside();
?>
er det mulig og lave så den her også kan arbejde med pro download panel vil bare lige høre
da jeg både bruger
download.php og pro download panel på siden
vil bare lige høre
HILSEN J_K_NIELSEN:)
J_K_NIELSEN tilknyttede følgende billede:fil:
Du har ikke lov til at se downloads i denne debat.
|