TinyPortal

Development => Support => Topic started by: Swampy on September 09, 2006, 08:39:53 AM

Title: Scrolling Recent Posts
Post by: Swampy on September 09, 2006, 08:39:53 AM
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
Title: Re: Scrolling Recent Posts
Post by: Swampy on September 10, 2006, 11:46:16 PM
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>';

}
Title: Re: Scrolling Recent Posts
Post by: IchBin on September 11, 2006, 05:19:19 AM
How is this still out of date? I just looked at the TPortalBlocks.template.php file and I see the same exact code.

Title: Re: Scrolling Recent Posts
Post by: Swampy on September 11, 2006, 05:39:38 AM
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.
Title: Re: Scrolling Recent Posts
Post by: IchBin on September 11, 2006, 05:45:25 AM
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. :)

Title: Re: Scrolling Recent Posts
Post by: Swampy on September 11, 2006, 05:53:12 AM
works like a charm, thank you very much

have a look see at

http://www.tvgrapevine.com/smf/index.php

http://www.jamesbb6.com/smf/index.php
Title: Re: Scrolling Recent Posts
Post by: IchBin on September 11, 2006, 05:57:58 AM
Very cool mate! I just might have to use this someday. :)
Title: Re: Scrolling Recent Posts
Post by: Swampy on September 11, 2006, 05:59:24 AM
it saves a lot of space on a side bar leaving room for things like a banner that pays.....

much thanks!

Title: Re: Scrolling Recent Posts
Post by: ashari on December 09, 2006, 12:28:00 AM
Where is the link to the updated one? Mine isn't working either
Title: Re: Scrolling Recent Posts
Post by: G6Cad on December 09, 2006, 07:55:09 AM
The attachments got lost during the server change.
Title: Re: Scrolling Recent Posts
Post by: whoflungdoo on January 02, 2007, 07:47:14 AM
If anyone has a copy of the lost attachment, please post, I would very much like to implement the scrolling posts
Title: Re: Scrolling Recent Posts
Post by: Swampy on January 02, 2007, 10:59:32 AM
here you go
Title: Re: Scrolling Recent Posts
Post by: whoflungdoo on January 02, 2007, 04:10:52 PM
Oh ok thanks, I thought the attachment had something "updated" in it. Anyway, i tried it and it works great with my tp v.97

Thanks!