Welcome, Guest. Please login or register.

ShoutBox!

Scrubmeister

Yesterday at 10:32:40
Good to see the site back faster than ever. :)
 

Skhilled

2024-04-18, 21:09:09
I've upgraded the server...more resources. ;)
 

Ken

2024-04-18, 20:57:10
Now that you mention it...  :D
 

Skhilled

2024-04-18, 20:47:19
...and, you should notice that the site is much faster.  :o
 

Ken

2024-04-18, 20:31:37
Hey Steve.
 

Skhilled

2024-04-18, 17:56:10
Re-read the message below...
 

Skhilled

2024-03-31, 15:22:06
Oh yeah, you need to upgrade the site first...
 

Ken

2024-03-30, 09:54:54
Whoops! I forgot that the SMF install here on OFF is out of date!  :'(
 

Ken

2024-03-30, 09:44:48
 Conga-Rats Steve!  :thumbup:
Me gonna install it here just for the fun of it!  :)
 

Skhilled

2024-03-29, 22:15:23
Released!  :D

Recent Topics

TP Articles


Search in titles
Search in article texts

Author Topic: recent post scroll over 5  (Read 1261 times)

0 Members and 1 Guest are viewing this topic.

Offline Maxx (OP)

  • Too Young to feel this old :)
  • FF Friends
  • *
  • Posts: 238
  • Gender: Male
  • Vietnam Veteran Sgt.
  • View Gallery
    • SurfaceThemes
recent post scroll over 5
« on: October 11, 2015, 08:15:03 PM »
still working on it. did not work well :(

regards,
Maxx
« Last Edit: October 11, 2015, 11:57:16 PM by Maxx »
Nothing worth having comes easy! Back up all your stuff! And step into the Mystery!

Offline Maxx (OP)

  • Too Young to feel this old :)
  • FF Friends
  • *
  • Posts: 238
  • Gender: Male
  • Vietnam Veteran Sgt.
  • View Gallery
    • SurfaceThemes
Re: recent post scroll over 5
« Reply #1 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
Nothing worth having comes easy! Back up all your stuff! And step into the Mystery!

Offline Ken

  • Vietnam Era Veteran
  • Administrator
  • *
  • Posts: 11668
  • Gender: Male
  • View Gallery
Re: recent post scroll over 5
« Reply #2 on: October 20, 2015, 10:49:34 AM »
Thanks Maxx. :)
"Not all who wander are lost."-Tolkien
Yesterday When I was Young.