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
Add rel="nofollow" to member social links
Avatar
FidoSysop
Clearwater Florida
Member

VIP
sp_UserOfflineSmall Offline
Jul 30, 2016 - 8:47 am

Wanting to add rel="nofollow" to my profiles social links, Facebook Twitter etc? Toggling nofollow on for the whole forum has no effect on user social links.

Using reboot and reboot child theme. Poked around in the theme files but did not see a place to add it.

Thanks 🙂

  • Doc ~ An old Fidonet SysOp. Just hanging out in cyberspace keeping up with tech.
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 30, 2016 - 10:24 am

you can do it for each identity separately... for facebook, for exmaple, here is the function and its defaults:

function sp_PostIndexUserFacebook($args='', $toolTip='') {
    $defs = array('tagId'        => 'spPostIndexUserFacebook%ID%',
                  'tagClass'     => 'spPostUserFacebook',
                  'icon'         => 'sp_Facebook.png',
                  'iconClass'    => 'spImg',
                  'targetNew'   => 1,
                  'noFollow'    => 0,
                  'echo'        => 1,
                  'get'            => 0,
                  );

so you would just pass the 'noFollow' argument as 1...  so from reboot theme, change

                                    sp_PostIndexUserFacebook('', __sp('Connect with me on Facebook'));

to

                                    sp_PostIndexUserFacebook('noFollow=1', __sp('Connect with me on Facebook'));

and similarly for other identities...

Avatar
FidoSysop
Clearwater Florida
Member

VIP
sp_UserOfflineSmall Offline
Jul 30, 2016 - 10:54 am

Thanks Steve, easy enough.

I did notice the mobile sptopicviewmobile.php is different than the desktop version. Does it inherit the nofollow status from the desktop file?

Also can i copy the modified file to my child theme?

  • Doc ~ An old Fidonet SysOp. Just hanging out in cyberspace keeping up with tech.
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jul 30, 2016 - 11:10 am

That's a no on the first question so you may want to change that one as well.
And a yes to the second question. Just copy them over...

andy-signature.png
YELLOW
SWORDFISH
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: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625