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,973
  • Latest: NonStop
Stats
  • Total Posts: 196,219
  • Total Topics: 21,352
  • Online today: 556
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 204
  • Total: 205
  • Itchdog

Scrolling Recent Posts

Started by swampy, September 09, 2006, 08:39:53 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Swampy

Has anyone yet done an update to the code snippet for Scrolling Recent Posts.txt for TP version 0.9.5?

The previous one seems to be out of date now.

Thanks in advance for any assistance on this.

Swampy

Swampy

#1
This is the old snippet code.  Would appreciate someone updating it for me the lamer.

============

in
SMF_ROOT/Themes/default/TPortalBlocks.template.php
find


echo '<div style="width: 100%; overflow: hidden;">';
    foreach($what as $w){

above add

echo '<marquee  behavior="scroll" direction="up" height="200px" scrolldelay=" 10" scrollamount=" 1" onmouseover="this.stop()" onmouseout="this.start()">';
then find

           $counter++;
    }
    echo '</div>';
}

and replace with

           $counter++;
    }
    echo '</div></marquee>';

}

IchBin

How is this still out of date? I just looked at the TPortalBlocks.template.php file and I see the same exact code.


Swampy

I must be punchy (stupid), I did a search for the exact code and couldn't find it.

I will give it another try and see if I can't get it right this time

will let you know.

thanks for your time.

IchBin

Here's a modified one alreay done. Let me know if it works. Please MAKE A BACKUP of your file before putting this one in. :)


Swampy


IchBin

Very cool mate! I just might have to use this someday. :)

Swampy

it saves a lot of space on a side bar leaving room for things like a banner that pays.....

much thanks!


ashari

Where is the link to the updated one? Mine isn't working either

G6Cad

The attachments got lost during the server change.

This website is proudly hosted on Crocweb Cloud Website Hosting.