MTG-Helper: Deck listing fix

I was trying to add my favourite MTG decks to the site in with help of the MTG-Helper. The plugin offers a nice presentable way to showcase your decks. Beats writing your own! One thing i noticed was that the decklist had an error with generating urls. In the file MTG-Helper-parser look for the sentence ‘//cardname and link to the cardbox’. Replace the code there with the code below.

//cardname and link to the cardbox
$content .= "<span class='cardname'><a style='font-size:'.get_option(mtghFontSize).'";
if( $add_class == "" )
$content .= "color:".get_option(mtghFontColor)."";
$content .= "' class='$add_class' href='#' onmouseover=\"jQuery('#{$id}_box').show().attr('src','" . get_source_from_name($cards[$j]["cardname"])."');"
onclick=\"return false;\"> ".$cards[$j]['cardname'].:</a></span></li>";
}

That should fix the links and show the card images.

Leave a Reply

Your email address will not be published. Required fields are marked *

*