Need help about message
User ID : test1 - test10
Password : test1 - test10
main page just display message
http://ittiphol.byethost11.com/smf/index.php
i want to display full message like this
http://ittiphol.byethost11.com/smf/index.php?action=recent
please modify my code
MY CODE
function template_menu7()
{
/**
* @author logooff.net
*/
//SETUP
$number_of_posts =5; // here you can change number of posts
$default_avatar = '' . $settings['images_url'] . '/smf/Themes/default/images/noavatar.png'; // enter URL of default avatar you want. Like this 'http://www.url.com/image.jpg'
global $context, $settings, $options, $scripturl, $modSettings, $txt;
global $boarddir, $memberContext;
require_once($boarddir.'/SSI.php');
//SETUP END
global $contex, $txt, $settings;
$array = ssi_recentTopics($number_of_posts, null, null, 'array');
echo '
<table border="0" height="300" width="160" align="center">
';
foreach ($array as $post)
{
global $memberContext;
loadMemberData($post['poster']['id']);
loadMemberContext($post['poster']['id']);
echo '
<tr>
<td>
<table border="0" width="505" align="center" height="238" class="picpGal0">
<tr>
<td width="55" align="left" rowspan="2" height="60" valign="top">
';
if (!empty($memberContext[$post['poster']['id']]['avatar']['href'])){
echo '<img src="' . $memberContext[$post['poster']['id']]['avatar']['href'] . '" width="50" height="50" alt="', $post['poster']['name'], '" />';
}
else {
echo '<img src="' . $default_avatar .'" alt="default_avatar" width="50" height="50" />';
}
echo'
</td>
<td width="413" align="left" valign="top">
<font size="4"><b>', $post['poster']['link'], '</b></font> <font color="cccccc"> ', $post['time'], '
</td>
</tr>
<tr>
<td width="413" height="43" align="center" valign="top">
<p align="left"><b>Post in</b> ', $post['board']['link'], '<br><hr></p>
</td>
</tr>
<tr>
<td width="499" align="left" colspan="2" height="135" valign="top">
<a href="'. $post['href']. '" target="_self" onmouseover="document.getElementById(\'a', $post['topic'], '\').style.display = \'block\'" onmouseout="document.getElementById(\'a', $post['topic'], '\').style.display = \'none\'"><font size="2">', $post['preview'], '</font></a></font>
', $post['message'], '
</td>
</tr>
<tr>
<td width="499" align="left" colspan="2">
<img src="', $settings['images_url'], '/reply.png" border="0">
<a href="', $scripturl, '?action=post;topic=', $post['topic'], '.', $post['start'], '"><span><font size="2">', $txt['reply'], '</font></a> • <a href="', $scripturl, '?action=post;topic=', $post['topic'], '.', $post['start'], ';quote=', $poster['id'], '"> <font size="2">', $txt['quote'], '</font></a> • <a href="', $scripturl, '?action=notify;topic=', $post['topic'], '.', $post['start'], '"><font size="2">', $txt['notify'], '</font></a></span>
</td>
</tr>
</table>
<br>
';
}
echo '</td>
</tr>
</table>
<br><hr>
';
}
Ok now i find way out
thank you ;D