Jo Ich habe das selbe Problem!
Kann uns da jemand weiter helfen ?
Hier das ist auch noch ein anderer php code für einen block im ez Portal, hier kann man sogar "max songs" (10) angeben, aber leider auch wieder nicht aus welcher Kategorie
Code: Alles auswählen
/*****************************************************/
/********* Start Newest Song by DB Angel *********/
/********** V 1 ***************/
$song_total = "10";
include_once($phpbb_root_path . 'music_box/music_constants.' . $phpEx);
$template -> assign_block_vars('song_newest', array(
'L_NEWEST_SONG_IMAGE' => $lang['L_NEWEST_SONG_IMAGE'],
'L_NEWEST_SONG_TITLE' => $lang['L_NEWEST_SONG_TITLE'],
'L_NEWEST_NAME' => $lang['L_NEWEST_NAME'],
'L_NEWEST_VIEW' => $lang['L_NEWEST_VIEW'],
'L_NEWEST_SINGER' => $lang['L_NEWEST_SINGER'],
'L_NEWEST_TIME' => $lang['L_NEWEST_TIME'],
'L_NEWEST_TITLE' => $lang['L_NEWEST_TITLE']. $song_total . $lang['L_NEWEST_SONG'])
);
$q = "SELECT *
FROM ". MUSIC_TABLE ."
ORDER BY song_time DESC
LIMIT 0, ". $song_total;
$r = $db -> sql_query($q);
while($row = $db -> sql_fetchrow($r))
{
$row['song_image'] = "<img src='images/newest.gif' height='12' width='35'>";
$row['song_time'] = create_date($board_config['default_dateformat'], $row['song_time'], $board_config['board_timezone']);
$row['song_titleurl'] = $phpbb_root_path . "music_page.$phpEx?song_id=". $row['song_id'];
$row['song_nameurl'] = $phpbb_root_path . "profile.php?mode=viewprofile&u=" . $row['song_user_id'];
$template -> assign_block_vars('song', array(
'NEWEST_SONG_IMAGE' => $row['song_image'],
'NEWEST_SONG_TITLE' => $row['song_title'],
'NEWEST_SONG_TITLEURL' => $row['song_titleurl'],
'NEWEST_NAME' => $row['song_username'],
'NEWEST_NAMEURL' => $row['song_nameurl'],
'NEWEST_VIEW' => $row['song_view_count'],
'NEWEST_TIME' => $row['song_time'],
'NEWEST_SINGER' => $row['song_singer'])
);
}
/**********¡i http://www.dbangel.net ¡j**********/
/*********** End Newest Song by DB Angel ***********/
/*******************************************************/