TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,913
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 450
  • Total: 450

MemberColorLink in Recent Threads

Started by Ichitaka Seto, April 11, 2008, 02:11:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ichitaka Seto

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?

IchBin

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.

Ichitaka Seto


This website is proudly hosted on Crocweb Cloud Website Hosting.