Results 1 to 7 of 7

Thread: Video listing on index page - increasing to more than 4?

  1. #1
    Join Date
    Jul 2007
    Posts
    4

    Default Video listing on index page - increasing to more than 4?

    Anyone knows how I can increase the number of videos listed under 'New Videos' or 'Recently Viewed'?

    I have tried changing the loop counter in index.tpl, but to no effect.

    {section name=i loop=$new_video start=0 max=4}
    => {section name=i loop=$new_video start=0 max=9}

    $new_video only holds 4 records?

  2. #2

    Default

    Go to templates > video.tpl and search for this line

    {if $smarty.request.viewtype eq "" or $smarty.request.viewtype eq "basic"}
    {section name=i loop=$answers}

    undernearth it is a line that has

    {if $smarty.section.i.index mod 2 eq "0" and $smarty.section.i.index gt "0"}

    Change the 2 to the number of columns you want to have. Mine is set at 4.
    Then change the number in "list per page" in the admin settings. Mine is set at 16. 4 columns X 4 rows.
    http://www.skivideos.co.uk/recent/
    Look, it's not steep till you need to stop ok !

  3. #3
    Join Date
    Jul 2007
    Posts
    4

    Default

    This is useful.

    But what about the listings on the index page? There are only 4 videos shown for new videos and another 4 shown for recently viewed. I am looking for ways to increase these numbers.

  4. #4

    Default

    Quote Originally Posted by mindasda
    This is useful.

    But what about the listings on the index page? There are only 4 videos shown for new videos and another 4 shown for recently viewed. I am looking for ways to increase these numbers.
    oops! My mistake. Should have read the topic title better.
    There was a thread about this recently, which I seem to remember came to no real conclusion.
    Look, it's not steep till you need to stop ok !

  5. #5
    Join Date
    May 2007
    Posts
    686

    Default

    Here is what you all have been waitn for.



    <tr>

    {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=5 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.title}</a>

    </td>
    {/section}

    </tr>

    </table>

  6. #6
    Join Date
    Jul 2007
    Posts
    4

    Default

    I tried it. Doesn't work for me.

  7. #7
    Join Date
    May 2007
    Posts
    686

    Default

    It does work to see go to http://gamertube.com and see.

Similar Threads

  1. make other page with new video like in index page
    By cmedia in forum Template Modifications
    Replies: 4
    Last Post: 05-29-2008, 10:23 PM
  2. Up banner active, but NOT visible in index page(index.tpl)?
    By cmedia in forum Template Modifications
    Replies: 0
    Last Post: 03-06-2008, 12:46 AM
  3. video alignment on index page
    By bigbuttsTV in forum Template Modifications
    Replies: 3
    Last Post: 02-16-2008, 10:38 AM
  4. Admin listing per page
    By browniegirl in forum Template Modifications
    Replies: 1
    Last Post: 09-18-2007, 06:35 AM
  5. How add in index page ''Videos being watched right now'' ¿?
    By joako30 in forum General Discussions
    Replies: 6
    Last Post: 09-02-2007, 07:45 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •