Link attributes "dofollow" and "nofollow"

Yurensiy

Member
Community Supporter
Points 8
Solutions 0
Is there a way to set attributes for posted links? For example, so that users can post links with the "nofollow" attribute, while administrators can post links with the "dofollow" attribute? Or maybe redirect the link click to anonymize it? This would prevent links on the site from playing a negative role and lowering Google search results due to spam.
I can't find it in the settings.
 
Is there a way to set attributes for posted links? For example, so that users can post links with the "nofollow" attribute, while administrators can post links with the "dofollow" attribute? Or maybe redirect the link click to anonymize it? This would prevent links on the site from playing a negative role and lowering Google search results due to spam.
I can't find it in the settings.

S N G I N E does not have that feature automatically built into the admin panel. You would need to change the code within the functions.php file again.

But also remember, the more code edits you make to fit your needs, the further away and harder it's going to get to update, as you'll need to make the code changes every single update.
 
Will this be difficult to do?
Yes, I understand. But these features are very important to me... I'm afraid my domain rating will drop significantly due to spam :(
 
Is there a way to set attributes for posted links? For example, so that users can post links with the "nofollow" attribute, while administrators can post links with the "dofollow" attribute? Or maybe redirect the link click to anonymize it? This would prevent links on the site from playing a negative role and lowering Google search results due to spam.
I can't find it in the settings.

So, looking over the code a little bit further, it's not just one file that will need to be edited. You will need to add the handler into all files that deal with posts/comments across the full codebase so it is consistent.

And the reason for this is everybody, including admins, who post comments. Our posts are classed as viewers until the post is posted, then it grabs the status of who posted it. For that reason, there is no easy way to determine who is an admin or a viewer until after the post has been posted. This means we need to write code that queries the database to find that out, whether to add a nofollow or a follow. For links however, by doing it this way, it will add a lot of database queries. Depending on your server configuration and specs, it may slow down or crash the database if the website gets big.
 
Will this be difficult to do?
Yes, I understand. But these features are very important to me... I'm afraid my domain rating will drop significantly due to spam :(

I will build something over the weekend for you that you can test out, but yes, it will be a pretty big job.
 
I will build something over the weekend for you that you can test out, but yes, it will be a pretty big job.
In that case, it's not necessary. Especially if there are problems with privilege updates.
I'll monitor the site's rating, and if it drops due to links, then we'll fix it.
 

Donate: Campaign

Total amount
$0.00
Goal
$60.00

AdSense

Back
Top