• This is my site i am working on porting to wordpress
    http://www.terminaldusk.com/dev/

    What i want to do with the links in the sidebar are as follows.

    1st. If there is an image associated with a link, like the 2 links under “upcoming releases”. I would like the description to show as part of the link and not plain text.

    2nd. if there is no image like “current playlist” i would like the name and description to show, like it is. but there is no URL associated with “The Orb”, i left the URL field blank, but it still shows as a link.

    Is there a way to not have “The Orb” be a link? an maintain everything mentioned above? I assume some editing to /includes/link.php would have to happen.

    can anyone help me accomplish this?

    thanks!
    Scott

Viewing 3 replies - 16 through 18 (of 18 total)
  • Thread Starter line

    (@line)

    I got it figured out! here is what the code ends up looking like from line 244 to // end while

    if ($the_link != "http://") {
    $output .= '<a href="' . $the_link . '"' . $rel . $title . $target. '>';
    }

    if (($row->link_image != null) && $show_images) {
    if (strstr($row->link_image, 'http')) {
    $output .= "<img src=\"$row->link_image\" $alt $title />";
    if ($show_description && ($desc != '')) {
    $output .= $between . $desc;
    }

    } else { // If it's a relative path
    $output .= "<img src=\"" . get_settings('siteurl') . "$row->link_image\" $alt $title />";

    if ($show_description && ($desc != '')) {
    $output .= $between . $desc;
    }
    }
    } else {
    $output .= $name . $between . $desc;
    }

    if ($the_link != "http://&quot;) {
    $output .= '</a>';
    }

    if ($show_updated && $row->recently_updated) {
    $output .= get_settings('links_recently_updated_append');
    }

    if (($row->link_image != null) && $show_images) {
    if ($show_description && ($desc != '')) {
    $output .= $between;
    }
    }

    $output .= "$after n";
    } // end while

    Hurray! Great teamwork 🙂

    Thread Starter line

    (@line)

    Thanks! looks perfect! 🙂

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘sidebar links modifications to links.php?’ is closed to new replies.