Need a little coding help please

Discussion in 'HTML & Website Design' started by jg123, Feb 20, 2007.

  1. #1
    I have a joomla site I just put up at TotallyFunMedia.com and I want to show the video thumbnails horizontally instead of vertically. I see in the code that there is a <br> after each one but I don't know where to change it so that it is not there anymore (I think that will fix it)?

    If you help me solve this problem I will give you a free permanent featured link in my directory 2SearchSmart.com as a thank-you.
     
    jg123, Feb 20, 2007 IP
  2. Maujor

    Maujor Peon

    Messages:
    30
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi,
    Try to get rid of the <br> elements between the thumbnails.
    It is hard to point out a solution without seeing the code. Do you have a link to the page?
     
    Maujor, Feb 20, 2007 IP
  3. Clive

    Clive Web Developer

    Messages:
    4,507
    Likes Received:
    297
    Best Answers:
    0
    Trophy Points:
    250
    #3
    You have 2 options.

    1. Thumbnails are hardcoded in the template. In this case, the only place where you can find the code to edit is /templates/your_template/index.php file.

    2. Thumbnails are inserted dynamically onto the page. After making a few clicks on your site, I'd say it is a module since it's not visible on all pages which is specific to module positioning functionality. To see if this the case, log in to your administrator panel and go to Modules -> Site Modules. Try to find it ther by guessing which module contains the code bit we are talking about.

    Once located, changing the code so that thumbnails display horizontally should be an easy task..
     
    Clive, Feb 20, 2007 IP
  4. jg123

    jg123 Notable Member

    Messages:
    6,006
    Likes Received:
    387
    Best Answers:
    0
    Trophy Points:
    295
    #4
    Sorry, it is a module for sure.
     
    jg123, Feb 20, 2007 IP
  5. Clive

    Clive Web Developer

    Messages:
    4,507
    Likes Received:
    297
    Best Answers:
    0
    Trophy Points:
    250
    #5
    Then you need to follow my instructions #2..
     
    Clive, Feb 20, 2007 IP
    jg123 likes this.
  6. jg123

    jg123 Notable Member

    Messages:
    6,006
    Likes Received:
    387
    Best Answers:
    0
    Trophy Points:
    295
    #6
    Here is the php file, is that where I would change it? Which part?

     
    jg123, Feb 20, 2007 IP
  7. Clive

    Clive Web Developer

    Messages:
    4,507
    Likes Received:
    297
    Best Answers:
    0
    Trophy Points:
    250
    #7
    Can you attach the full file to your post?
    I would then take a look at it and adjust it for you.
     
    Clive, Feb 20, 2007 IP
  8. Clive

    Clive Web Developer

    Messages:
    4,507
    Likes Received:
    297
    Best Answers:
    0
    Trophy Points:
    250
    #8
    Actually, try replacing the following code bit
    echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\" style=\"text-align:center;\">";
    foreach ($vidyo as $vidyo) {
    $vid=$vidyo->id;
    $vhit=$vidyo->hit;
    $vtitle=$vidyo->title;
    $vpicturelink = $vidyo->picturelink;
    $votes=$vidyo->voteclick;
    $vratingtotal=$vidyo->votetotal;
    $vaddedby=$vidyo->addedby;
    $vaddedbyname=jaseyrethighestratedvideomodulegetusersname($vaddedby);
    $vaddeddate=$vidyo->addeddate;
    $link=$mosConfig_live_site."/index.php?option=com_seyret&task=videodirectlink&id=".$vid;
    
    echo "<tr><td>";
    
    if ($showtitles=="1") {
    echo "<a href=".$link.">".$vtitle."</a><br>";
    }
    
    echo "<a href=".$link."><img src=\"".$vpicturelink."\" width=\"".$videothumbwidth."\" height=\"".$videothumbheight."\" alt=\"".$vtitle."\" style=\"border:none;\"/></a><br>";
    
    if ($showsubmitter=="1") {
    echo $vaddedbyname."<br>";
    }
    
    if ($showaddeddate=="1") {
    echo $vaddeddate."<br>";
    }
    
    
    echo "</td></tr>";
    }
    
    echo "</table>";
    PHP:
    with:
    foreach ($vidyo as $vidyo) {
    	$vid=$vidyo->id;
    	$vhit=$vidyo->hit;
    	$vtitle=$vidyo->title;
    	$vpicturelink = $vidyo->picturelink;
    	$votes=$vidyo->voteclick;
    	$vratingtotal=$vidyo->votetotal;
    	$vaddedby=$vidyo->addedby;
    	$vaddedbyname=jaseyrethighestratedvideomodulegetusersname($vaddedby);
    	$vaddeddate=$vidyo->addeddate;
    	$link=$mosConfig_live_site."/index.php?option=com_seyret&task=videodirectlink&id=".$vid;
    	echo "<a href=".$link."><img src=\"".$vpicturelink."\" width=\"".$videothumbwidth."\" height=\"".$videothumbheight."\" alt=\"".$vtitle."\" style=\"border:none;\"/></a> ";
    }
    PHP:
     
    Clive, Feb 20, 2007 IP