Results 1 to 7 of 7

Thread: How To: Align Videos to the top

  1. #1
    Join Date
    May 2007
    Location
    Planet Earth
    Posts
    1,389

    Default How To: Align Videos to the top

    On the main page, if the videos have different lengths to the name,the thumbnail images look a bit jumbled.

    To make it all even out open index.tpl

    LOOK FOR
    Code:
    <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}
    REPLACE WITH

    Code:
    <td width="25%" align="center" valign="top">
    <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}
    If it's not fun, stop doing it!

  2. #2
    Join Date
    May 2007
    Posts
    588

    Default Re: How To: Align Videos to the top

    that was on my list of little things to fix when i get free time to look at...now i dont have to, cheers :)

  3. #3
    Join Date
    May 2007
    Location
    Planet Earth
    Posts
    1,389

    Default Re: How To: Align Videos to the top

    It's also in a couple of other places I noticed later tonight.

    Basically look for
    Code:
    <td width="25%" align="center">
    and stick in the valign="top". When I remember where this happens on the other pages, I'll post an update.
    If it's not fun, stop doing it!

  4. #4
    Join Date
    Apr 2007
    Posts
    2,202

    Default Re: How To: Align Videos to the top

    Thanks for the fix. I have updated the template and will be available in next release.

    Instead of adding to each <td> add it on <tr>, will do for all td's

    Code:
    <tr valign="top">

  5. #5
    Join Date
    May 2007
    Location
    Planet Earth
    Posts
    1,389

    Default Re: How To: Align Videos to the top

    Oh duh, yeah. LOL Thanks ADMIN!!! You rock!!
    If it's not fun, stop doing it!

  6. #6

    Default Re: How To: Align Videos to the top

    It would be great if there was a place in control panel where we could set the max number of title characters displayed on the front page. I dont mind if someone types a really long title to a video in general, but I really don't care for the thought of what it will do to my recent videos list on the front page.
    This member is now known as Sitting Out

  7. #7
    Join Date
    May 2007
    Location
    Planet Earth
    Posts
    1,389

    Default Re: How To: Align Videos to the top

    Maybe as admin you can go in and change it when that happens.

    It's good to be the admin. ;)
    If it's not fun, stop doing it!

Similar Threads

  1. How do I align the "Recent" page?
    By grynmoors in forum Template Modifications
    Replies: 0
    Last Post: 11-11-2007, 09:09 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
  •