i see the following code in htmlawed.php:
$C['anti_link_spam'] = (isset($C['anti_link_spam']) && is_array($C['anti_link_spam']) && count($C['anti_link_spam']) == 2 && (empty($C['anti_link_spam'][0]) or hl_regex($C['anti_link_spam'][0])) && (empty($C['anti_link_spam'][1]) or hl_regex($C['anti_link_spam'][1]))) ? $C['anti_link_spam'] : 0;
$C['anti_mail_spam'] = isset($C['anti_mail_spam']) ? $C['anti_mail_spam'] : 0;
which relates to rel=nofollow text being added to links.
can someone explain how to change this so it isn't added at all?
i have a link to add to a blog which has been given as part of a promotional interaction and the giver does not want nofollow tags in there.
thanks
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
yes, that worked, thanks steve. :)
Hi Steve
Am a beginner, can you tell me which file I need to add the code too?
@richlondon you can put that code in a plugin's start.php file, inside a theme or a custom plugin you made
Tried adding the code to my theme start.php and the htmllawed start.php, neither worked, any links in my boomarks still nofollow
Any other ideas?
i have placed the function in my theme start.php.. i also inserted the following line into the theme_init function:
elgg_register_plugin_hook_handler('config', 'htmlawed', 'remove_nofollow_handler');
thanks a million, that did the trick!!
- Previous
- 1
- 2
- Next
You must log in to post replies.