Support Forum

Enable do follow

BS briot stephane
briot stephane
Member

Hi,

I would like to enable the dofollow on link in the signature. 

How i can do this ? 

Thank’s (: 

5 Answers

New Answer

MP Mr Papa
Mr Papa
Member

Any links created in the signature follow your base options for setting of follow/nofollow on forum – options – content settings… so if you enable it there, it will do it in signatures (as well as other links in your site)…

If you only want to set follow in signatures but not the rest of the site, you will need to use one of our defined filters to affect the change yourself/manually…

The filter is ‘sph_Signature’ where you can add the follow=”follow” to any links…

BS briot stephane
briot stephane
Member

ok, 

so, in the admin panel > options > content settings > post link filtering > i disable the nofollow option. 

I reload the page, and this this what i see on the source for a signature : 

<a href="https://aurelienpierre.com/editions-du-caillou/catalogue/" rel="nofollow">livres scientifiques et didactiques</a>

As you can see, the nofollow is still there

You can see it here > Parlons Blog 

Do i made a mistake somewhere ?

MP Mr Papa
Mr Papa
Member

Look at the signature when editing the profile. Is the no follow actually saved in the link?

Sorry, answering by email so not seeing the whole topic…

BS briot stephane
briot stephane
Member

Hi, 

A friend help me et gave me this : 

add_filter( 'sph_save_nofollow_filter', 'rel_follow_ok' );
function rel_follow_ok( $out )
{
 return str_replace( 'nofollow', 'follow', $out );
}

And it’s work (: 

MP Mr Papa
Mr Papa
Member

Yes, that is what I meant by using a filter – though they chose a different one than the the one I suggested. Mine would have only affected signatures while this one affects all sp links.

Thanks for the update.