TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

April 30, 2024, 05:22:57 AM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,174
  • Total Topics: 21,220
  • Online today: 147
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online

Scrolling Recent Posts

Started by tattooedpierre, November 12, 2005, 11:01:44 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

IchBin

TPortalBlocks.template should be located in the SMF default theme.

Teknomancer

I've got scrolling to work flawlessly!!

Here's what to do

REPLACE

echo '<table style="table-layout: fixed;" cellpadding="0" height="'.$context['TPortal']['shoutbox_height'].'" cellspacing="0" border="0" width="100%"><tr><td class="smalltext"><div style="height: '.$context['TPortal']['shoutbox_height'].'px; overflow: auto; width: 100%;">', $context['TPortal']['shoutbox'], '
       </div></td></tr></table><form style="margin-top: 8px; text-align: center;" class="smalltext" name="tp-shoutbox" action="'.$scripturl.'?action=tpmod&id=shout" method="post">
       ';


WITH


echo ' <marquee  behavior="scroll" direction="up" height='.$context['TPortal']['shoutbox_height'].'px scrolldelay=" 10" scrollamount=" 1" onmouseover="this.stop()" onmouseout="this.start()"><table style="table-layout: fixed;" cellpadding="0" height="'.$context['TPortal']['shoutbox_height'].'" cellspacing="0" border="0" width="100%"><tr><td class="smalltext"><div style="height: '.$context['TPortal']['shoutbox_height'].'px; width: 100%;">', $context['TPortal']['shoutbox'], '
       </div></td></tr></table></marquee><form style="margin-top: 8px; text-align: center;" class="smalltext" name="tp-shoutbox" action="'.$scripturl.'?action=tpmod&id=shout" method="post">
       ';


Oh it's ALMOST the same as snork13's idea but only extra thing is instead of hardcoding 100 has height of shoutbox, it takes it from the Admin panel settings of the shoutbox.

Cool!

tattooedpierre

Excellent I got this to work great for the shoutbox.. for the recent topics though... ? any ideas?

houston

Mine is running somewhat jerky. Although I do have a few gifs running in the forum as well.

Thanks anyways for the code.

MetalHellsangel

#14
If anyone is interested I found a way to scroll posts Look at THIS TOPIC

Reko

that like to scrolling potss isnt valid anymore

IchBin