+ Reply to Thread
Results 1 to 6 of 6

Thread: rel="nofollow" on URL

  1. #1
    Senior Member
    Join Date
    Aug 2014
    Posts
    105

    rel="nofollow" on URL

    Hi,

    I'm using the Realty template. I've included a URL listing field for customers to include a link to their web site. Where can I edit the code to include the rel="nofollow" tag for external URL links?

    Leaving out the rel="nofollow" for external URL's is bad for SEO.

    Many thanks,
    Spencer

  2. #2
    Hello Spencer,

    You can add it yourself in: ftp://includes>>classes>>rlCommon.class.php method: adaptValue

    find code:

    PHP Code:
    Only registered members can view the code
    and replace to:
    PHP Code:
    Only registered members can view the code
    save and check again.
    Viktor,
    Flynax technical department,
    Best wishes.

  3. #3
    Senior Member
    Join Date
    Aug 2014
    Posts
    105
    Hi Viktor,

    Thanks for your help, that works great.

    Kind regards,
    Spencer

  4. #4
    Hello

    Based on this code
    $value = !(bool)preg_match('/https?\:\/\//', $value) ? 'http://'.$value : $value;

    $out = '<a target="_blank" href="' . $value . '">' . str_replace('http://', '', $display_value) . '</a>';
    how can add anchor to the link? I want to anchor the link with the title. I am sure need to replace $display_value with something.

  5. #5
    Does anyone know how?

  6. #6
    I am sure is possible to add anchor for the link but my knowledge is not enough. can someone offer this information? How oto add a certain listing field as anchor for link?
    Last edited by Ionut Barabasa; September 30, 2015 at 06:11 PM.

+ Reply to Thread