TinyPortal
Development => Resources => Topic started by: Ichitaka Seto on April 11, 2008, 02:11:52 PM
hi!
I am trying to modify the recent thread block with adding the membercolorlink mod (http://custom.simplemachines.org/mods/index.php?mod=111) but i don't know what to modify...
// TPortal recent topics block
function TPortal_recentbox()
{
global $context, $settings, $options, $txt , $modSettings;
// is it a number?
if(!is_numeric($context['TPortal']['recentboxnum']))
$context['TPortal']['recentboxnum']='10';
// leave out the recycle board, if any
if(isset($modSettings['recycle_board']))
$bb=array($modSettings['recycle_board']);
else
$bb=array();
$what=ssi_recentTopics($num_recent = $context['TPortal']['recentboxnum'], $bb, $output_method = 'array');
// Output the topics
echo '
<ul class="tp_recentblock" style="' , $context['TPortal']['recentboxscroll']==1 ? 'overflow: auto; height: 20ex;' : '' , '">';
foreach($what as $w){
echo '
<li style="overflow: auo;"><b><a href="'.$w['href'].'">'.$w['short_subject'].'</a></b> ', $txt[525], ' ', $w['poster']['link'];
if(!$w['new'])
echo ' <a href="'.$w['href'].'"><img src="'. $settings['images_url'].'/'.$context['user']['language'].'/new.gif" alt="new" /></a> ';
echo ' ['.$w['time'].']
</li>';
}
echo '
</ul>';
}
what could i do?
Since we are not the ones who wrote that mod, you should really ask the mod author. They can tell you what to add/change for their mod to work.
mh ok. thanks anyway