Welcome, Guest. Please login or register.

ShoutBox!

 

Skhilled

2024-06-14, 22:09:12
I hope so! LOL
 

Ken

2024-06-14, 21:41:30
My B-Day is forthcoming and maybe it will be far enough along so that I can be a regular Dancing Fool for that day!!! :banana: :2funny:
 

Ken

2024-06-14, 21:38:38
Happy Friday everyone! I'm  SOOO glad to see Friday and not just because it's the weekend, but because it marks one more day in the recovery of my foot!  laughing7

Scrubmeister

2024-04-19, 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...

Recent Topics

TP Articles


Search in titles
Search in article texts

Author Topic: recent post scroll over 5  (Read 1330 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: 11718
  • 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.