WordPress.org

Ready to get started?Download WordPress

Forums

Link Library
Un (3 posts)

  1. whoaloic
    Member
    Posted 2 years ago #

    Hi,
    I would like to displays sponsors.
    Some of them do not have websites, so I was wondering it it was possible not to fill the field related to the website link ?
    Any help is appreciated,

    whoaloic

    http://wordpress.org/extend/plugins/link-library/

  2. whoaloic
    Member
    Posted 2 years ago #

    Oops, I'm sorry, I have not enter a correct topic title (it would have been "Unlink image where there is not link").
    When I use secondary adress and I leave an empty field, the name in not a link but the image is a link.

    Please is there a solution.

  3. whoaloic
    Member
    Posted 2 years ago #

    I've found a solution :
    I had to change link-library.php file around line 4428 :

    case 1: 	//------------------ Image Output --------------------
    if ( (($linkitem['link_image'] != '' || $usethumbshotsforimages)) && ($show_images)) {
    $imageoutput = stripslashes($beforeimage) . '<a href="';
    if ($sourceimage == 'primary' || $sourceimage == '') {
    $imageoutput .= $the_link;
    $imageoutput .= '" id="link-' . $linkitem['proper_link_id'] . '" class="track_this_link ' . ( $linkitem['link_featured'] ? 'featured' : '' ). '" ' . $rel . $title . $target. '>';												}
    elseif (($sourceimage == 'secondary') && ($the_second_link != '#')) {
    $imageoutput .= $the_second_link;
    $imageoutput .= '" id="link-' . $linkitem['proper_link_id'] . '" class="track_this_link ' . ( $linkitem['link_featured'] ? 'featured' : '' ). '" ' . $rel . $title . $target. '>';												}
    elseif (($sourceimage == 'secondary') && ($the_second_link == '#')) {
    $imageoutput = '';
    }

    and around line 4466 :

    if (($sourcename == 'primary' && $the_link != '#') || ($sourcename == 'secondary' && $the_second_link != '#')) {
    $imageoutput .= '</a>' . stripslashes($afterimage);
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic