The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!
You are not logged in.
Pages: 1
Hello,
I added one external link in main menu. How to puts in in rel="nofollow"?
Thank you.
Offline
Only if you modify the code in templates/defboot/extend/plugins/menu_main.plugin.php
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
Would you know what code should i put to add rel="nofollow" to link id 64 ?
Thank you.
Offline
Edit templates/defboot/extend/plugins/menu_main.plugin.php and after:
$target = ($link['target'] != 'none') ? ' target="_'.$link['target'].'"' : '';
add:
$target = ($link['link'] == 'the-url-here') ? $target.' rel="nofollow"' : $target;
If you want to use the link id instead of the-url-here, you can use:
$target = ($link['link_id'] == '64') ? $target.' rel="nofollow"' : $target;
but you also have to edit the mysql query from that file and change:
$db->query("SELECT l.name, l.title, l.link, l.type, l.target, l.lang, l.current
to:
$db->query("SELECT l.link_id, l.name, l.title, l.link, l.type, l.target, l.lang, l.current
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
Pages: 1