• Hey,
    Since I installed the get recent comments plugin, this particular macro, the %author_url_href one, hasn’t been working. Currently, the gravatars link to the author’s url, but when no url is given, the gravatar links instead to the current url, which is a bit irritating. %author_url_href is supposed to overcome this by being replaced either by href="%author_url" where one has been given, or it’ll remain empty, deactivating the link but leaving any title attribute.

    Since %author_url_href replaces href="%author_url", it’s supposed to go into the code in the form <a %author_url_href> while %author_url goes in as <a href="%author_url">. I’ve tried just about every configuration I can think of but nothing seems to work. It just deactivated the link altogether, as though the tag were not even present.

    I even tried editing the source but it’s a bit above my head, and didn’t work anyway. As far as I can tell, here’s the relevant bit of the source:

    if (empty($author_url) || $author_url == "http://")
    			$author_url_href = "";

    and there’s also this:

    $output = str_replace("%author_url_href", $author_url_href, $output);

    If anyone can see any glaring error in the source or knows how to fix this, I’d be appreciative.

    -Jangari

Viewing 2 replies - 1 through 2 (of 2 total)
  • brainless

    (@brainless)

    Hello,
    Try to insert this line:
    $author_url_href = "href $author_url";
    above this lines:

    if (empty($author_url) || $author_url == "http://")
      $author_url_href = "";

    Should work

    denysri

    (@denysri)

    hi brainless,

    i tried your solution both on WP 2.3.3 and 2.5
    and it didn’t work.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘get recent comments macros problem’ is closed to new replies.