Due to enormous amounts of spam, the forum has been set to read-only mode.



Reply to topic  [ 6 posts ] 
Move IMDB Logo to far right of Title 
Author Message

Joined: Fri Nov 04, 2005 7:22 pm
Posts: 55
Post Move IMDB Logo to far right of Title

I was just wondering if there was a way to have the "IMDB" logo and the "Board" bubble next to the title in Video views be right justified. Leaving the title left justified of course. It just seems a little crowded with them together (my opinion).
Thanks for any ideas.
Jim


Thu Jul 12, 2012 5:00 am
Profile
Site Admin
User avatar

Joined: Fri Nov 22, 2002 3:52 pm
Posts: 13748
Post Re: Move IMDB Logo to far right of Title

JimT wrote:
I was just wondering if there was a way to have the "IMDB" logo and the "Board" bubble next to the title in Video views be right justified. Leaving the title left justified of course. It just seems a little crowded with them together (my opinion).
Thanks for any ideas.
Jim

You can try using "float: right;" to right align the images:

In VideoBrowse.xsl:

Code:
<img border="0" src="imdblogo.gif" style="margin-left:7px; float: right;"/>
<img border="0" src="imdb_boards.gif" style="margin-left:5px; float: right;"/>

_________________
Fredrik Nordbakke
www.fnprg.com


Fri Jul 13, 2012 9:28 am
Profile WWW

Joined: Fri Nov 04, 2005 7:22 pm
Posts: 55
Post Re: Move IMDB Logo to far right of Title

Thanks for the reply Fredrik. I will give that a try. By the way, I like the new explorer templates. Take care!


Sat Jul 14, 2012 5:40 am
Profile

Joined: Fri Nov 04, 2005 7:22 pm
Posts: 55
Post Re: Move IMDB Logo to far right of Title

Hi Fredrik,
I tried the "float" command as you suggested. The logos moved to the right but also dropped down to a second line. So the space for the title is now two lines even though it takes up only one line. The logos are at the end of the second line while the title is at the begining of the first line.
Any suggestions for that?
Thanks
Jim


Sat Jul 14, 2012 6:09 am
Profile
Site Admin
User avatar

Joined: Fri Nov 22, 2002 3:52 pm
Posts: 13748
Post Re: Move IMDB Logo to far right of Title

JimT wrote:
Hi Fredrik,
I tried the "float" command as you suggested. The logos moved to the right but also dropped down to a second line. So the space for the title is now two lines even though it takes up only one line. The logos are at the end of the second line while the title is at the begining of the first line.
Any suggestions for that?
Thanks
Jim

Then we will have to use table. Replace

Code:
<a href="Video.xsl" target="_blank"><xsl:value-of select="title"/></a>
<xsl:if test="$segmentcount = 1">
  <xsl:if test="/data/record/contentsdata/disc/side/contents/imdbid!=''">
    <a href="http://www.imdb.com/title/tt{/data/record/contentsdata/disc/side/contents/imdbid}/"><img border="0" src="imdblogo.gif" style="margin-left:7px;"/></a>
    <a href="http://www.imdb.com/title/tt{/data/record/contentsdata/disc/side/contents/imdbid}/board"><img border="0" src="imdb_boards.gif" style="margin-left:5px;"/></a>
  </xsl:if> 
  <xsl:call-template name="format-audiosample">
    <xsl:with-param name="audiosample" select="//side/contents[1]/audiosample"/>
    <xsl:with-param name="contentsid" select="//side/contents[1]/@id"/>
  </xsl:call-template>
  <xsl:call-template name="format-videosample">
    <xsl:with-param name="videosample" select="//side/contents[1]/videosample"/>
    <xsl:with-param name="contentsid" select="//side/contents[1]/@id"/>
  </xsl:call-template>
</xsl:if>


with

Code:
<table cellpadding="0" cellspacing="0" width="100%">
  <tr>
    <td width="*">
      <a href="Video.xsl" target="_blank"><xsl:value-of select="title"/></a>   
    </td>
    <xsl:if test="$segmentcount = 1">
      <td nowrap="" align="right">
        <xsl:if test="/data/record/contentsdata/disc/side/contents/imdbid!=''">
          <a href="http://www.imdb.com/title/tt{/data/record/contentsdata/disc/side/contents/imdbid}/"><img border="0" src="imdblogo.gif" style="margin-left:7px;"/></a>
          <a href="http://www.imdb.com/title/tt{/data/record/contentsdata/disc/side/contents/imdbid}/board"><img border="0" src="imdb_boards.gif" style="margin-left:5px;"/></a>
        </xsl:if> 
        <xsl:call-template name="format-audiosample">
          <xsl:with-param name="audiosample" select="//side/contents[1]/audiosample"/>
          <xsl:with-param name="contentsid" select="//side/contents[1]/@id"/>
        </xsl:call-template>
        <xsl:call-template name="format-videosample">
          <xsl:with-param name="videosample" select="//side/contents[1]/videosample"/>
          <xsl:with-param name="contentsid" select="//side/contents[1]/@id"/>
        </xsl:call-template>
      </td>
    </xsl:if>                 
  </tr>
</table>

_________________
Fredrik Nordbakke
www.fnprg.com


Mon Jul 16, 2012 10:52 am
Profile WWW

Joined: Fri Nov 04, 2005 7:22 pm
Posts: 55
Post Re: Move IMDB Logo to far right of Title

Thanks again Fredrik! Exactly what I was looking for.
Jim


Tue Jul 17, 2012 2:29 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.