Add on request "nofollow"

Everything related to LinkMan - reciprocal links manager
Post Reply
robear
Posts: 3
Joined: Sun Nov 27, 2005 11:46 am

Add on request "nofollow"

Post 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
2600
Posts: 2
Joined: Thu Aug 03, 2006 2:00 am

reply

Post by 2600 »

Dose that code work?
Where would I add that?
GedNE
Posts: 6
Joined: Sat Aug 05, 2006 12:32 am

Post by GedNE »

Great suggestion!

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

Thanks..
Ged
[url=http://www.success-apprentice.com][color=blue][b][size=84]A Self Taught Apprentice Webmaster[/size][/b][/color][/url][b] :D [/b]
mowence
Posts: 1
Joined: Fri Dec 15, 2006 5:16 am

Post 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
Tired of being harassed by the big guys?
Here is serious help to stand up for your rights:
http://novasoljudicare.com/family
Klemen
Site Admin
Posts: 10114
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

I think they meant the other way around - block links to YOUR website if they use the nofollow attribute :wink:
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
brian neilen
Posts: 6
Joined: Sun May 13, 2007 5:58 am

Post 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
miniz98
Posts: 1
Joined: Tue Nov 30, 2010 9:46 pm

Re: Add on request "nofollow"

Post 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
Post Reply