| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 5554|Reply: 0
Collapse the left

Add "nofollow" for external links

[Copy link]

 Palestine

Post time: 2012-06-20 12:08
| Show all posts |Read mode
hi all

how to Add "nofollow" to links ?

Open source\function\function_discuzcode.php file

find

  1. return '<a href="'.(substr(strtolower($url), 0, 4) == 'www.' ? 'http://'.$url : $url).'" target="_blank">'.$text.'</a>';
Copy the Code


replece

  1. return '<a href="'.(substr(strtolower($url), 0, 4) == 'www.' ? 'http://'.$url : $url).'" target="_blank" rel="nofollow">'.$text.'</a>';
Copy the Code



find
  1. return '<a href="'.$url.'" target="_blank">'.$text.'</a>';
Copy the Code
replce

  1. return '<a href="'.$url.'" target="_blank" rel="nofollow">'.$text.'</a>';
Copy the Code



demo


This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x
You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-06-02 00:46 GMT+3 , Processed in 0.017569 sec., 8 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list