File: mod_smf_recent_topics.xml
Find:
Code:
<param name="namedisplay" type="radio" default="0" label="Display Real Name Instead" description="Display real name instead of login name?">
<option value="0">No</option>
<option value="1">Yes</option>
</param>
<option value="0">No</option>
<option value="1">Yes</option>
</param>
Add:
Code:
/* LukaszP - All */
<param name="smf_show_all" type="radio" default="1" label="Display All" description="Display all">
<option value="0">No</option>
<option value="1">Yes</option>
</param>
File: mod_smf_recent_topics.php<param name="smf_show_all" type="radio" default="1" label="Display All" description="Display all">
<option value="0">No</option>
<option value="1">Yes</option>
</param>
Find:
Code:
/*1.6.1 Use our own smf prefix*/
$smf_tprefix = $params->get( 'smf_tprefix', '' );
Add:$smf_tprefix = $params->get( 'smf_tprefix', '' );
Code:
/* LukaszP - show all */
$smf_show_all = $params->get( 'smf_show_all',1 );
$smf_show_all = $params->get( 'smf_show_all',1 );
Find:
Code:
/* 1.6 post['href'] contains the link to a new post as well, use it (-Wolverine) */
echo ($numchar != '' ? substr($post['subject'],0,$numchar).(strlen($post['subject']) > $numchar ? '...' : '') : $post['subject']) , '</a> (',
$post['replies'], ') ', $txt[525], ' ', ($mosConfig_sef == '1' ? str_replace(";","/",$post['member']['link']) : $post['member']['link']) , '
', ($post['new'] ? '<a href="' . $post['href'] . '"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt[302] . '" border="0" /></a>' : '');
Replace:echo ($numchar != '' ? substr($post['subject'],0,$numchar).(strlen($post['subject']) > $numchar ? '...' : '') : $post['subject']) , '</a> (',
$post['replies'], ') ', $txt[525], ' ', ($mosConfig_sef == '1' ? str_replace(";","/",$post['member']['link']) : $post['member']['link']) , '
', ($post['new'] ? '<a href="' . $post['href'] . '"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt[302] . '" border="0" /></a>' : '');
Code:
/* 1.6 post['href'] contains the link to a new post as well, use it (-Wolverine) */
echo ($numchar != '' ? substr($post['subject'],0,$numchar).(strlen($post['subject']) > $numchar ? '...' : '') : $post['subject']) , '</a>';
/* LukaszP Display all*/
if ( $smf_show_all == 1)
{
echo ' (',
$post['replies'], ') ', $txt[525], ' ', ($mosConfig_sef == '1' ? str_replace(";","/",$post['member']['link']) : $post['member']['link']) , ' ';
}
echo ''. ($post['new'] ? '<a href="' . $post['href'] . '"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt[302] . '" border="0" /></a>' : '');
echo ($numchar != '' ? substr($post['subject'],0,$numchar).(strlen($post['subject']) > $numchar ? '...' : '') : $post['subject']) , '</a>';
/* LukaszP Display all*/
if ( $smf_show_all == 1)
{
echo ' (',
$post['replies'], ') ', $txt[525], ' ', ($mosConfig_sef == '1' ? str_replace(";","/",$post['member']['link']) : $post['member']['link']) , ' ';
}
echo ''. ($post['new'] ? '<a href="' . $post['href'] . '"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt[302] . '" border="0" /></a>' : '');
No You must go to Your SQL table and add
Code:
smf_show_all=1
{mambo/jomla_prefix]_menu , your modul Joomla-SMF Recent Topics in to Code:
params
Or simply copy this files in to Your server.
Thats all.
Forum 







