Um die letzten Beiträge im BoardIndex scrollen zu lassen, muss der unten stehende Code in der BoardIndex.template.php geändert werden.
// Show lots of posts.
elseif (!empty($context['latest_posts']))
{
echo '<marquee behavior="scroll" direction="up" height="50" scrolldelay="300" scrollamount="2">
<table width="100%" border="0">';
/* Each post in latest_posts has:
board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
subject, short_subject (shortened with...), time, link, and href. */
foreach ($context['latest_posts'] as $post)
echo '
<tr>
<td align="right" valign="top" nowrap="nowrap">[', $post['board']['link'], ']</td>
<td valign="top">', $post['link'], ' ', $txt[525], ' ', $post['poster']['link'], '</td>
<td align="right" valign="top" nowrap="nowrap">', $post['time'], '</td>
</tr>';
echo '
</table></marquee>';
}
echo '
</td>
</tr>';
}
im Orginial sieht der Code ungefähr so aus:
// Show lots of posts.
elseif (!empty($context['latest_posts']))
{
echo '
<table width="100%" border="0">';
/* Each post in latest_posts has:
board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
subject, short_subject (shortened with...), time, link, and href. */
foreach ($context['latest_posts'] as $post)
echo '
<tr>
<td align="right" valign="top" nowrap="nowrap">[', $post['board']['link'], ']</td>
<td valign="top">', $post['link'], ' ', $txt[525], ' ', $post['poster']['link'], '</td>
<td align="right" valign="top" nowrap="nowrap">', $post['time'], '</td>
</tr>';
echo '
</table>';
}
echo '
</td>
</tr>';
}
Es geht also um folgende Einträge:
<marquee behavior="scroll" direction="up" height="50" scrolldelay="300" scrollamount="2">
</marquee>
Original von: Owdy (http://www.simplemachines.org/community/index.php?topic=13985.0)
Deutsche Übersetzung von: noex
Um das Scrollen bei "Mouse Over" zu stoppen, den Code ändern auf:
<marquee behavior="scroll" direction="up" height="50" scrolldelay="100" scrollamount="2" onmouseover="this.stop()" onmouseout="this.start()">
Original von: FaSan (http://www.simplemachines.org/community/index.php?topic=13985.msg227011#msg227011)