Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: How to put more videos on the home page?

  1. #1
    Join Date
    Jul 2007
    Posts
    13

    Default How to put more videos on the home page?

    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?

  2. #2
    Join Date
    May 2007
    Posts
    686

    Default

    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.

  3. #3
    Join Date
    Jul 2007
    Posts
    169

    Default

    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.

  4. #4
    Join Date
    May 2007
    Posts
    686

    Default

    Pm me

  5. #5
    Join Date
    May 2007
    Posts
    686

    Default

    I dont know why people stuff this up its a simple copy paste.

  6. #6
    Join Date
    Jul 2007
    Posts
    169

    Default

    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.

  7. #7
    Join Date
    May 2007
    Posts
    686

    Default

    Always edit the ones in public_html/templates/
    Although i think theyre mirror copies anyways.

  8. #8

    Default

    Quote Originally Posted by browniegirl
    I beleive I always edit the one in www folder
    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.
    This member is now known as Sitting Out

  9. #9
    Join Date
    Jul 2007
    Posts
    169

    Default

    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.

  10. #10
    Join Date
    May 2007
    Posts
    212

    Default

    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>

Page 1 of 2 12 LastLast

Similar Threads

  1. Recent page as home page
    By james739 in forum Template Modifications
    Replies: 3
    Last Post: 07-01-2009, 06:50 AM
  2. Changing home page
    By zulf in forum General Discussions
    Replies: 5
    Last Post: 09-28-2008, 12:55 AM
  3. number of videos on home page
    By inferno72 in forum Template Modifications
    Replies: 6
    Last Post: 07-30-2008, 05:48 AM
  4. BLANK HOME PAGE... HELP!
    By browniegirl in forum Template Modifications
    Replies: 3
    Last Post: 10-25-2007, 07:31 AM
  5. Changing the home page filename
    By dapanther99 in forum General Discussions
    Replies: 1
    Last Post: 07-10-2007, 12:06 PM

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
  •