Results 1 to 4 of 4

Thread: Help Relocation Related Videos

  1. #1

    Default Help Relocation Related Videos

    Hello to all!

    I'm going crazy trying to move the section of "related videos".

    I want that the videos appear on a block at the end of view_video.tpl, similar to youporn.com (adult), but I have tried everything and it does not appear in a block, only to appear in a column.

    Someone has an idea of how this can be done?

  2. #2

    Default Re: Help Relocation Related Videos

    Copy and paste the code into view_video.tpl ( only works in view video page )

    Code:
    <div class="section bg2">
    <div class="hd">
    <div class="hd-l">Related Videos</div>
    </div>
    
    
    <div id="side_results" style="overflow: auto; width: 100%;margin: 0.4em auto;" name="side_results">
    
    <table width="100%" cellpadding="1" cellspacing="2" border="0" align="center">
    <tr>
    
    {section name=i loop=$related_videos}
    
    <td align="center" class="moduleFrameEntry" valign="top">
    
    <table cellspacing="0" cellpadding="0" width="100%" border="0">
    
    <tr valign="top">
    <td>
    <a href="{$baseurl}/view/{$related_videos[i].VID}/{$related_videos[i].seo_name}/" target="_parent">
    [img]{$tmburl}/1_{$related_videos[i].VID}.jpg[/img]
    </a>
    </td>
    </tr>
    <tr>
    <td>
    <div class="moduleFrameTitle">{$related_videos[i].title}</div>
    <div class="moduleFrameDetails">by
    {insert name=id_to_name assign=uname un=$related_videos[i].UID}
    {$uname}
    </div>
    
    <div class="moduleFrameDetails">Time: {$related_videos[i].video_length}
    
    Views: {$related_videos[i].viewnumber}
    
    {insert name=comment_count assign=commentcount vid=$related_videos[i].VID}
    Comments: {$commentcount}
    </div>
    
    
    {if $smarty.request.id eq $related_videos[i].VID}
    <div style="padding-right: 6px; padding-left: 6px; font-weight: bold; font-size: 10px;
    padding-bottom: 3px; color: #cc6600; padding-top: 3px; background-color: #ffcc66">
    <nobr>&lt;&lt;&lt;NOW PLAYING!</nobr>
    </div>
    {/if}
    
    </td>
    </tr>
    </table>
    
    </td>
    {/section}
    
    </tr>
    </table>
    
    </div> 
    
    </div>
    Thanks

  3. #3

    Default Re: Help Relocation Related Videos

    It works very, very fine.

    Thank you!!!!

  4. #4

    Default Re: Help Relocation Related Videos

    Welcome... :)

Similar Threads

  1. Related Videos Not Working
    By blissfind in forum Bug Reports
    Replies: 1
    Last Post: 01-27-2008, 09:46 PM
  2. related videos not working
    By devarioj in forum Fixed Bugs
    Replies: 0
    Last Post: 09-23-2007, 06:29 AM
  3. Related Videos Do Not Relate
    By SportsGamingTV.com in forum Fixed Bugs
    Replies: 0
    Last Post: 08-19-2007, 06:53 AM
  4. Related Videos.
    By joecool6101 in forum Fixed Bugs
    Replies: 6
    Last Post: 07-27-2007, 08:17 AM
  5. why does only 1 video shows up in Related Videos
    By pdiddy8117 in forum General Discussions
    Replies: 1
    Last Post: 06-16-2007, 04:20 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
  •