Results 1 to 2 of 2

Thread: how to put channel videos on homepage?

  1. #1

    Default how to put channel videos on homepage?

    I'm starting to get the hang of these .tpl files, but there's one thing I'd like to change that may not be possible to change.

    Basically, instead of the New Videos and Recently Viewed lists, I would like to have a list of all the recent videos from each of my Channels.

    Does anyone know how this might be done?

    I tried copy/pasting the appropriate code from channel_detail.tpl, which starts out like this:

    {section name=j loop=$recadd}

    <TD style="WIDTH: 20%; TEXT-ALIGN: center" vAlign=top>
    <A href="{$baseurl}/view/{$recadd[j].VID}/{$recadd[j].title|lower|regex_replace:"/[^a-z0-9]+/":"-"}/">
    [img]{$tmburl}/1_{$recadd[j].VID}.jpg[/img]
    </A> etc...

    However, I don't really understand the {recadd[j].VID} stuff. It's obviously referring to the current channel that's being viewed, but I'm wondering if there's a way to change it so that it refers to a specific channel. And then I can just duplicate that code for each channel whose videos I want to display.

    Does that make sense? Any help would be greatly appreciated.

  2. #2

    Default

    Can anyone explain what this {section name=j loop=$recadd} command does exactly.
    And when the script says {$recadd[j]=VID}, what exactly is the j calling up? Is it possible to replace that with a more specific command, such as the channel id or something? In other words, is it possible to call up a specific list of video thumbs without using this weird section name thing?
    Anyone?

Similar Threads

  1. Registered Only Channel/Videos
    By kylemj in forum Feature Requests
    Replies: 0
    Last Post: 10-07-2008, 10:11 PM
  2. Is it posible to add more videos to channel page?
    By tnuriel in forum Template Modifications
    Replies: 6
    Last Post: 03-30-2008, 12:47 AM
  3. Channel Videos
    By SportsGamingTV.com in forum Feature Requests
    Replies: 2
    Last Post: 08-31-2007, 03:23 AM
  4. Videos to show only when channel is clicked
    By local_master in forum Feature Requests
    Replies: 0
    Last Post: 06-19-2007, 07:35 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
  •