More "New Videos" on Startpage
Hi,
i just upgraded from 2.5 to 2.6, before the upgrade i had 3 line of new videos on the startpage (index.tpl). It seems like the old code i used in 2.5 is not working anymore. Have somebody of you any idea?
This is my old code from 2.5
Code:
<table width="100%" class="bg2">
<tr valign="top">
{section name=i loop=$new_video start=0 max=4}
<td width="25%" align="center" onmouseout="this.style.backgroundColor='#e1e4f2';" onmouseover="this.style.backgroundColor='#d0e8f3';"><a href="{$baseurl}/view/{$new_video[i].VID}/{$new_video[i].title|lower|regex_replace:"/[^a-z0-9]+/":"-"}/">[img]{$tmburl}/1_{$new_video[i].VID}.jpg[/img]
{$new_video[i].title}</a></td>
{/section}
</tr>
<tr valign="top">
{section name=i loop=$new_video start=4 max=4}
<td width="25%" align="center" onmouseout="this.style.backgroundColor='#e1e4f2';" onmouseover="this.style.backgroundColor='#d0e8f3';"><a href="{$baseurl}/view/{$new_video[i].VID}/{$new_video[i].title|lower|regex_replace:"/[^a-z0-9]+/":"-"}/">[img]{$tmburl}/1_{$new_video[i].VID}.jpg[/img]
{$new_video[i].title}</a></td>
{/section}
</tr>
<tr valign="top">
{section name=i loop=$new_video start=8 max=4}
<td width="25%" align="center" onmouseout="this.style.backgroundColor='#e1e4f2';" onmouseover="this.style.backgroundColor='#d0e8f3';"><a href="{$baseurl}/view/{$new_video[i].VID}/{$new_video[i].title|lower|regex_replace:"/[^a-z0-9]+/":"-"}/">[img]{$tmburl}/1_{$new_video[i].VID}.jpg[/img]
{$new_video[i].title}</a></td>
{/section}
</tr>
</table>
VioTV.net - Broadcasting Democracy
Bookmarks