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
How do I prevent links in signatures?
Avatar
canuckjgc
Rookie
Free Members
sp_UserOfflineSmall Offline
Apr 29, 2015 - 11:08 am

How do I prevent users from putting links in signatures?  Ideally I would like to allow links in signatures after a certain number of posts, but preventing them is the main thing.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 29, 2015 - 12:14 pm

I am sorry to say that at this point in time you can't. I am pretty sure we have this - and some issues around signatures - on a list to look at in the future bit currently the only thing you could do there is deny permission to set them up until user gets to a certain post count and switches to a different user group whose permission allows them.

andy-signature.png
YELLOW
SWORDFISH
Avatar
canuckjgc
Rookie
Free Members
sp_UserOfflineSmall Offline
Apr 29, 2015 - 12:49 pm

Ok thanks for this.  That would be a great addition to prevent postings purely for spamming purposes.

Is there an easy way to make all those links nofollow then?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 29, 2015 - 1:36 pm

you can make all links in posts nofollow (see the options > content settings). You can also use the captcha plugin and/or the admin bar plugin which optionally can parse all posts through Akismet and - of course - you can also use the moderation options in permissions.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 29, 2015 - 9:29 pm

actually, this can be done... just not via option or setting... so depends on how much you want it...

in your sp theme spFunctions.php file something like this should work:

apply_filters('sph_PostIndexUserSignature', 'my_strip_sig_links');
function my_strip_sig_links($out) {
    $out = preg_replace('/<a href=\"(.*?)\">(.*?)<\/a>/', "\\2", $out);
    return $out;
}

as always, we recommend you make a child theme or custom theme before making any changes...

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: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626