Problem mój polega na tym iz :
chcę żeby 4 ostatnie zdjęcia dodane do galleri wyświetlały mi sie ad foru a konkretnie pomiedzy logo a forum .
Znalazłem taki mod do im portalu troszke pogłówkowałem i zrobiłem to tak :
ten kod wstawiłem w index_body.tpl w 1 linijke
Kod:
<table border="0" cellpadding="0" cellspacing="1" width="100%">
<tr>
<td class="row1" align="left"><span class="gensmall" style="line-height:100%"><center><br /><br /><a href="{U_PIC_LINK}"><img src="{PIC_IMAGE}" border="0" alt="{L_NEWEST_PIC}"></a><br /><br /><b>{PIC_TITLE}</b> by <b>{PIC_POSTER}</b><br />on {PIC_TIME}<br /> </span></td></center>
</tr>
</table>
to znów wstawiłem w index.php
Kod:
if ( !defined('IN_PHPBB') )
{
die("Hacking attempt");
}
if(!function_exists(imp_newest_pic_block_func))
{
function imp_newest_pic_block_func()
{
global $template, $table_prefix, $db, $lang, $phpEx, $board_config;
$sql = "SELECT pic_id, pic_title, pic_username, pic_time FROM " .$table_prefix. "album WHERE pic_approval <> 0 ORDER BY pic_time DESC LIMIT 0,1";
if (!$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Could not query album information', '', __LINE__, __FILE__, $sql);
}
$picrow = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
$template->assign_vars(array(
'L_NEWEST_PIC' => $lang['Newest_pic'],
'PIC_IMAGE' => append_sid('album_thumbnail.'. $phpEx . '?pic_id=' . $picrow['pic_id']),
'PIC_TITLE' => $picrow['pic_title'],
'PIC_POSTER' => $picrow['pic_username'],
'U_PIC_LINK' => append_sid('album_page.' . $phpEx . '?pic_id=' . $picrow['pic_id']),
'PIC_TIME' => create_date($board_config['default_dateformat'], $picrow['pic_time'], $board_config['board_timezone'])
)
);
}
}
imp_newest_pic_block_func();
No i wszystko ok Ale WYSWIETLA MI TYLKO OSTATNIĄ JEDNĄ FOTKE a ja chce ABY $ ostatnie wyświetlało . Pomóżcie mi pliska