Page 1 of 1

Add on request "nofollow"

Posted: Sun Nov 27, 2005 12:39 pm
by robear
I hope this is the right forum to post, if not sorry,

anyway, I'd like to request a
rel="nofollow"
check mod

this would be helpful because some linking partners are sneaking this tag in their pages, it could be global so that if the tag is found anywhere on their page LinkMan would delete it.

even just a code snippet would be great:

Code: Select all

if (preg_match("rel='nofollow'",$html)) {
            	echo "<br>\n<font color=\"#FF0000\">A NoFollow Was FOUND!</font><br><br>\n\nRemoving link ...<br>";
                        } else {
echo "<br>\n<font color=\"#008000\">A nofollow to $settings[site_url] was not found!</font><br><br>\n\n";
           
                unset($lines[$i-1]);
                $rewrite=1;
Am I getting warm? :)

:idea: Also, instead of LinkMan deleting links right off, how about pausing them from being view by the public but listed in the admin with a yellow [X] so the admin can either restore them or delete.

This would be a great help because in some link exchanges you get flooded with requests & each one you have to manually input but the other webmaster might be a few days behind you so a week later some of your new links might not be fully set.
This way you could choose to give them one more chance to catch up.
or delete old ones that are playing games.

Thanks :P

reply

Posted: Thu Aug 03, 2006 2:21 am
by 2600
Dose that code work?
Where would I add that?

Posted: Sat Aug 05, 2006 1:55 am
by GedNE
Great suggestion!

Does that code work and as said above where do we attach it?

Thanks..
Ged

Posted: Fri Dec 15, 2006 7:27 am
by mowence
I found a simpler solution. Replace line 49 in links.php with this:

echo "<font size=2><b><a href=\"$url\" rel=\"nofollow\" target=\"_new\" class=\"linkman\">$title</a></b><br><font face=Arial> $description<br><br></font></font>\n";

It creates the no-follow attribute in all the links, it bolds the title, it puts the description on a new line, and it puts a double line shift between each entrance, so it actually looks neat...

I tested it, and it works.

Cheers,

Mowence

Posted: Tue Dec 19, 2006 6:16 pm
by Klemen
I think they meant the other way around - block links to YOUR website if they use the nofollow attribute :wink:

Posted: Sun May 13, 2007 3:07 pm
by brian neilen
Hello

I have fiddled with this but without success, has any one got this to work, i would like to modify it for a few things, check robots.txt, check meta aswell

Re: Add on request "nofollow"

Posted: Tue Nov 30, 2010 9:49 pm
by miniz98
Hey i was wondering when i go into the control panel and select Add rel="nofollow" to links YES TO ALL LINKS. It doesnt work. How come. I have about 15 backlinks now. Also i tried the above post but the format changes and it doesnt display the page rank. Also if you tell me what to change can you please give me the line of code im replacing instead of a line number.

Thanks, Andrew