Our FamilyForum

Our FamilyForum Welcome Center => Chit Chat & Humor => Topic started by: Maxx on October 11, 2015, 08:15:03 PM

Title: recent post scroll over 5
Post by: Maxx on October 11, 2015, 08:15:03 PM
still working on it. did not work well :(

regards,
Maxx
Title: Re: recent post scroll over 5
Post by: Maxx on October 20, 2015, 09:55:35 AM
OK if by chance you did not find the recent topics, scroll block code that Bloc created:

Start a new PHP block the add this code to it and give the title;e you wish:

Code: [Select]
global $context, $modSettings;
$context['TPortal']['recentboxnum'] = '15';

if(isset($modSettings['recycle_board']))
    $bb = $modSettings['recycle_board'];

$what = ssi_recentTopics($context['TPortal']['recentboxnum'], NULL, NULL, 'array');
$counter=1;
$cmax = count($what);

echo '
<div style="width: 100%; overflow: auto; height: 55ex;">';

foreach($what as $w)
{
    echo '
    <div class="smalltext"><a href="'.$w['href'].'">' . $w['short_subject'] . '[/url]</div>
    <div class="smalltext">', $txt['by'], ' ', $w['poster']['link'], '</div>
    <div class="smalltext">';
    if(!$w['new'])
        echo '<a href="'.$w['href'].'"><img border="0" src="'.$settings['images_url'].'/'.$context['user']['language'].'/new.gif" alt="new" />[/url] ';

    echo '['.$w['time'].']
    </div>';

    if($counter != $cmax)
        echo '';
    $counter++;
}
echo '
</div>';


Once you get this goping you turn off the current recent topics block! :)


Maxx
Title: Re: recent post scroll over 5
Post by: Ken on October 20, 2015, 10:49:34 AM
Thanks Maxx. :)