Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Enable do follow
Avatar
briot stephane
Member
Free Members
sp_UserOfflineSmall Offline
Dec 6, 2012 - 3:46 am

Hi,

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

How i can do this ? 

Thank's (: 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 6, 2012 - 7:08 am

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...

Avatar
briot stephane
Member
Free Members
sp_UserOfflineSmall Offline
Dec 6, 2012 - 8:05 am

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 ?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 6, 2012 - 8:28 am

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...

Avatar
briot stephane
Member
Free Members
sp_UserOfflineSmall Offline
Dec 6, 2012 - 8:37 am

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 (: 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 6, 2012 - 8:58 am

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.

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625