on the main page when you have 4 new video's how can i make it so there is 2 lines of new video's ( basiclly so there is 8 video's ) ?
how can i do that?
on the main page when you have 4 new video's how can i make it so there is 2 lines of new video's ( basiclly so there is 8 video's ) ?
how can i do that?
Go into your cpanel area go into templates/index.tpl find this line:
{section name=i loop=$new_video start=0 max=4}
<td></td>
<td width="25%" align="center">
<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>
Replace It All with:
{section name=i loop=$new_video start=0 max=4}
<td></td>
<td width="25%" align="center">
<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>
{section name=i loop=$new_video start=4 max=4}
<td></td>
<td width="25%" align="center">
<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>
That will give you 8, you can repeat and change as necessary to do more.
I tried this, and now here are NO vids showing on my home page. Tried to undo what was done, but still -- nothing on my home page. Can someone help please?
SPEED UP YOUR VSHARE SITE!
Speed up your vshare site by "offloading" your images and video thumbs!
Just visit http://offload.limbar.com for details.
Pm me
I dont know why people stuff this up its a simple copy paste.
I think because there are index.tpl files in "www", "public_htm;", etc -- You dont specify which file to edit -- I beleive I always edit the one in www folder
SPEED UP YOUR VSHARE SITE!
Speed up your vshare site by "offloading" your images and video thumbs!
Just visit http://offload.limbar.com for details.
Always edit the ones in public_html/templates/
Although i think theyre mirror copies anyways.
If you are on a cpanel server, you should really not be editing in www. You should do your editing in public_html and let the server mirror everything over to www.Originally Posted by browniegirl
This member is now known as Sitting Out
I leave this the hard way last nite :) I had been editing using FTP before I knew I could use my cpanel.
SPEED UP YOUR VSHARE SITE!
Speed up your vshare site by "offloading" your images and video thumbs!
Just visit http://offload.limbar.com for details.
thanks for the tip zeffer i just used it on my site
but how would you get more reciently viewed to 8?
I applied the same principle...but it didnt work
i changed the 0 to a 4 and copied the code to another <tr> bla bla and it didnt even show up on the screen.
this is what I have
<table width="100%">
<tr>
{section name=i loop=$recent start=0 max=4}
<td>
</td>
<td width="25%" align="center">
<A href="{$baseurl}/view/{$recent[i].VID}/{$recent[i].title|lower|regex_replace:"/[^a-z0-9]+/":"-"}/">[img]{$tmburl}/1_{$recent[i].VID}.jpg[/img]
{$recent[i].title}</a>
<font size="1px">{insert name=timediff value=var time=$recent[i].viewtime}</font>
</td>
{/section}
</tr>
<tr>
{section name=i loop=$recent start=4 max=4}
<td></td>
<td width="25%" align="center">
<A href="{$baseurl}/view/{$recent[i].VID}/{$recent[i].title|lower|regex_replace:"/[^a-z0-9]+/":"-"}/">[img]{$tmburl}/1_{$recent[i].VID}.jpg[/img]
{$recent[i].title}</a>
<font size="1px">{insert name=timediff value=var time=$recent[i].viewtime}</font>
</td>
{/section}
</tr>
</table>
Bookmarks