Ready to get started?Download WordPress


Recent Tweets Widget
Adding rel="nofollow" To Outgoing Links (1 post)

  1. alkinkasap
    Posted 1 year ago #

    If you want to add rel="nofollow" to outgoing tags like me here is the solution:

    open widget.php inside plugin files. find line 180. there you will change codes as i show below. too simple. just delete lines 179-193 after that put these new codes. I've added rel=nofollow tag inside codes. You may compare new and old codes if you like.

    'function tp_convert_links($status,$targetBlank=true,$linkMaxLen=250,$relnofollow=true){

    // the target
    $target=$targetBlank ? " target=\"_blank\" " : "";

    // the target
    $rel=$relnofollow ? " rel=\"nofollow\" " : "";

    // convert link to url
    $status = preg_replace("/((http:\/\/|https:\/\/)[^ )
    ]+)/e", "''. ((strlen('$1')>=$linkMaxLen ? substr('$1',0,$linkMaxLen).'...':'$1')).''", $status);

    // convert @ to follow
    $status = preg_replace("/(@([_a-z0-9\-]+))/i","$1",$status);

    // convert # to search
    $status = preg_replace("/(#([_a-z0-9\-]+))/i","$1",$status);'

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.