Witam
Czy ma ktos moze pomysl jak przerobic ten panel aby nie wyswietlal filmikow z pewnej kategorii, powiedzmy ze czesc filmikow jest dla osob pelnoletnich.
Filmiki takie maja nadane parametry ze sa dostepne tylko dla okreslonej grupy, jednak chcialbym rowniez zeby w panelu wyswietlaly sie tylko dla tej grupy uzytkownikow.
Ma ktos jakis pomysl co by tu trzeba bylo dopisac ?
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright ę 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
opentable("Najnowsze Media");
$tickerquery = dbquery("SELECT tn.*, tu.user_id,user_name ,COUNT(comment_item_id) AS movie_comments
FROM ".$db_prefix."movie tn
LEFT JOIN ".$db_prefix."users tu ON tn.movie_name=tu.user_id
LEFT JOIN ".$db_prefix."comments ON movie_id=comment_item_id AND comment_type='K'
GROUP BY movie_id
ORDER BY movie_datestamp DESC LIMIT 0,5");
while($data = dbarray($tickerquery)) {
$ticker_content .= "<a href=\"".BASEDIR."movies.php?movie_id=".$data['movie_id']."\">".$data['movie_subject']."</a> | Ogl±dano: <b>".$data['movie_reads']."</b> razy<hr>";
if($ticker_author+$ticker_date+$ticker_comments+$ticker_reads != "0" ) {
}
$ticker_content .= " ";
}
$ticker_content .= "</marquee></table>";
echo $ticker_content;
?>
Pozdrawiam i czekam na pomysly :) |