Author Topic: video-watch.tpl Link Problem  (Read 1372 times)

0 Members and 1 Guest are viewing this topic.

Offline Zug

  • Newbie
  • *
  • Posts: 35
  • Karma: +12/-0
    • View Profile
    • http://www.teensinporn.biz
video-watch.tpl Link Problem
« on: February 01, 2014, 03:25:07 AM »
Shared / VPS / Dedicated server: Shared

Script Version: Purchased Latest/ last TubeX Licensed Version
PHP Version: 5.2.12-2
MySQL Version: 5.1.62

Have you tried the server test script: Yes
If yes, results (all passed, some issues (if so what?)): All Passed

Have you modified any code yourself:
If yes, briefly describe changes: many template changes

Link to site: http://www.unexplainedmedia.net

Description of issue: Trying to get the text and links to show and work correctly on video-watch.tpl information UNDER THE VIDEO .. very odd problem.

I seem to have an issue with the links within the video-watch.tpl file. Specifically underneath the video where it shows the User Profile Thumb and Title of Post and Date posted an by whom.
For logged out users it should show the video user as 'Registered User' with a clickable link. But when you hover on it it doesn't show as a link. But on some pages it does. It leads me to believe there is some sort of dimension issue with the video itself. Please check both urls for comparison of this problem.

Working URL: http://www.unexplainedmedia.net/video/26/the-pyramid-code-sacred (user profile thumb is partially clickable and the registered user link works.)
Not Working URL: http://www.unexplainedmedia.net/video/29/top-10-most-credible-ufo (user profile thumb is partially clickable and the registered user link does NOT work. ?)

Here is my code for all the text and info below the video:
Code: [Select]
        <div class="section-header center">{$video.title}</div>
        <div class="section-content center">

          <div style="padding: 0px 40px;" class="justify"><h1>{$video.brief_desc}</h1></div>

          <div class="video-player-container" style="display: inline-block; margin-bottom: 35px;">
            {clips var=$clips videoid=$g_video_id}
            {player clips=$clips flv="video-player-flash.tpl" wmv="video-player-silverlight.tpl" qt="video-player-quicktime.tpl" other="video-player-other.tpl"}

            <div style="position: relative; text-align: left;">
              {if $video.allow_ratings}
              <div class="rater-div" stars="1"></div>
              <div class="rater-div" stars="2" style="left: 18.6px;"></div>
              <div class="rater-div" stars="3" style="left: 37.2px;"></div>
              <div class="rater-div" stars="4" style="left: 55.8px;"></div>
              <div class="rater-div" stars="5" style="left: 74.4px;"></div>
              {/if}
              <img src="{$g_config.template_uri}/images/{$video.total_avg_rating|t_nearesthalf}-stars-large.png"
                   osrc="{$g_config.template_uri}/images/{$video.total_avg_rating|t_nearesthalf}-stars-large.png" id="rater-stars" width="93" height="20" />
              <span id="rater-text"></span>
              <span class="normal" style="position: absolute; right: 0; top: 0.3em">{$video.total_num_views|t_tostring} {"_Text:Views"} &hellip; {$video.total_num_ratings|t_tostring} {"_Text:Ratings"} &hellip; {$video.total_num_comments} {"_Text:Comments"} &hellip; {$video.total_num_favorited|t_tostring} {"_Text:Favorited"}</span>
            </div>
          </div>

          <div id="panel-rating-message"></div>

          <div style="padding: 0px 40px;" class="large justify">
          {user var=$user username=$video.username}
          {if $user}
          <a href="{$g_config.base_uri}/profile/{$video.username}/"><img src="{if $user.uri}{$user.uri}{else}{$g_config.template_uri}/images/unexplained-media-avatar.jpg{/if}" alt="{$video.username}'s Profile" style="max-width: 50px; max-height: 38px; border: 1px solid black; display: inline-block; margin-right: 8px;" /></a>
          {/if}
          <span style="display: inline-block; vertical-align: top;">
            <div class="larger bold">{$video.title}</div>
            <div class="video-brief-date smallest normal">Posted
                {if $video.username}
                by
                {nocache}
                {if $g_logged_in}
                {/nocache}
                <a href="{$g_config.base_uri}/profile/{$video.username}/"><em>{$video.username}</em></a>
                {nocache}
                {else}
                <a href="{$g_config.base_uri}/user/register/" title="Register Unexplained Media Account"><em>Registered User</em></a>
                {/if}
                {/nocache}
                {/if} on {$video.date_added|t_datetime}.</div>
          </span>
          </div>

         
          <div style="padding: 0px 40px;" class="largest justify">
          {$video.description|rawhtml} {if $video.Source_Credit}&hellip;<a href="{$video.Source_Credit}" target="_blank" title="Media Source">Source</a>{else}{/if}
          </div>
         




         

          {if count($clips) > 1}
          <div id="clips">
            <b>Related Media Clips:</b><br />
            {foreach var=$clip from=$clips}
              <img src="{if $clip.thumbnail}{$clip.thumbnail}{else}{$g_config.no_preview}{/if}" href="{$clip.clip}" />
            {/foreach}
          </div>
          {/if}

          <br />

          <div align="left" style="padding: 0px 40px;">
            <span style="display: inline-block; text-align: right; font-weight: bold;">{"Unexplained Category"}:</span>
            <span style="display: inline-block;"><a href="{$g_config.base_uri}/category/{$category.url_name}">{$category.name}</a></span>
          </div>

          <div align="left" style="padding: 0px 40px;">
            <span style="display: inline-block; text-align: right; font-weight: bold;">{"Location Recorded"}:</span>
            <span style="display: inline-block;">{if $video.location_recorded}{$video.location_recorded}{else}<em>Not Available</em>{/if}</span>
          </div>

          <div align="left" style="padding: 0px 40px;">
            <span style="display: inline-block; text-align: right; font-weight: bold;">{"Date Recorded"}:</span>
            <span style="display: inline-block;">{if $video.date_recorded}{$video.date_recorded}{else}<em>Unavailable</em>{/if}</span>
          </div>

          <div align="left" style="padding: 0px 40px;">
            <span style="display: inline-block; text-align: right; font-weight: bold;">{"Related Research"}:</span>
            <span style="display: inline-block;">{if $video.Related_Research_URL1}<a href="{$video.Related_Research_URL1}" target="_blank" title="Related Research Resource Link">Resource 1</a>{else}<em>Unavailable</em>{/if} &hellip; {if $video.Related_Research_URL2}<a href="{$video.Related_Research_URL2}" target="_blank" title="Related Research Resource Link">Resource 2</a>{else}<em>Unavailable</em>{/if} &hellip; {if $video.Related_Research_URL3}<a href="{$video.Related_Research_URL3}" target="_blank" title="Related Research Resource Link">Resource 3</a>{else}<em>Unavailable</em>{/if}
          </div>

          <div align="left" style="padding: 0px 40px;">
            <span style="display: inline-block; text-align: right; font-weight: bold; vertical-align: top;">{"Key Word Tags"}:</span>
            <span style="display: inline-block;">
              {assign var=$tags code=explode(' ', $video.tags)}
              {foreach var=$tag from=$tags}
              <a href="{$g_config.base_uri}/tag/{$tag}">{$tag}</a>
              {/foreach}
            </span>
          </div>

          <!-- <div align="left" style="padding: 0px 40px;">
            <span style="display: inline-block; text-align: right; font-weight: bold;">{"Duration"}:</span>
            <span style="display: inline-block;">{if $video.duration}{$video.duration}{else}<em>Not Available</em>{/if}</span>
          </div> -->


          <br />


This is unusual since the links do not activate when you hover over them. It's like there is an alignment out of sync or something. It appears that a large 640x480 video works better than when a widescreen video is used if you notice by comparing the two links I've shown.  Any help would be greatly appreciated.
« Last Edit: February 01, 2014, 03:30:31 AM by Zug »

Offline Zug

  • Newbie
  • *
  • Posts: 35
  • Karma: +12/-0
    • View Profile
    • http://www.teensinporn.biz
Re: video-watch.tpl Link Problem
« Reply #1 on: February 03, 2014, 06:08:26 AM »
Found the problem.  ::) ... Typo'd code and another small adjustment. I don't really get it but it works.
Changed this part a little..

Code: [Select]
<div class="section-header center">{$video.title}</div>
        <div class="section-content center">

          <div style="padding: 12px 40px;" class="justify"><h1>{$video.brief_desc}</h1></div>

          <div class="video-player-container" style="display: inline-block; margin-bottom: 30px;">
« Last Edit: February 03, 2014, 06:18:03 AM by Zug »

Offline Zug

  • Newbie
  • *
  • Posts: 35
  • Karma: +12/-0
    • View Profile
    • http://www.teensinporn.biz
Re: video-watch.tpl Link Problem
« Reply #2 on: February 12, 2014, 12:34:54 AM »
This issue seems to be back. Very weird somethign I am missing with some span spacing I think. But if you notice it's difficult to find the proper hover area over a specific link. Look for the link under the video named Resource 1 and hover over it - http://www.unexplainedmedia.net/video/32/test-media-two-b .. It only half way works. I don't understand it. But when you load http://www.unexplainedmedia.net/video/1/test-media it works fine. ... Still working with it. any feedback would be nice to hear.

Unofficial JMB Support Forums

Re: video-watch.tpl Link Problem
« Reply #2 on: February 12, 2014, 12:34:54 AM »


Tags:
 

Related Topics

  Subject / Started by Replies Last post
9 Replies
1785 Views
Last post October 27, 2012, 11:33:13 AM
by webmasterx
2 Replies
1089 Views
Last post March 25, 2013, 06:16:47 AM
by vince81540
0 Replies
879 Views
Last post April 02, 2013, 07:27:47 AM
by vince81540
2 Replies
1304 Views
Last post April 06, 2013, 04:42:35 PM
by majickwolf
1 Replies
1043 Views
Last post August 23, 2013, 03:10:02 PM
by Chad