PDA

View Full Version : Help to modify the nofollow tag ..


3raq4all
07-16-2012, 02:52 PM
Hello:(

There are modified with respect to labeling of nofollow for signature + Thread
This code

$this->post['message'] = str_replace('target=', 'rel="nofollow" target=', $this->post['message']);
$this->post['signature'] = str_replace('target=', 'rel="nofollow" target=', $this->post['signature']);

The problem is that nofollow links include all
Is it possible exception link my domain?
Waiting for the experts:(

--------------- Added 1342509775 at 1342509775 ---------------

But I want to add nofollow to external links only, It's useful to increase the pagerank.

Please help.

--------------- Added 1342510342 at 1342510342 ---------------

Is this Works?

$this->post['message'] = str_replace('target=', 'rel="external nofollow" target=', $this->post['message']);
$this->post['signature'] = str_replace('target=', 'rel="external nofollow" target=', $this->post['signature']);