Hello guys!
I want to make profile pages (like www.site.com/admin) forbidden for indexation (by adding <meta name =“robots” content=”noindex,nofollow”/> . What file I should edited to add it?
Thanks!
Hello guys! I want to make profile pages (like www.site.com/admin) forbidden for indexation (by adding <meta name =“robots” content=”noindex,nofollow”/> . What file I should edited to add it?
Thanks! |
Hello Sanek!
The easiest way to do it - to add some code about it to function getMetaInfo() in the file inc/classes/BxDolTemplate.php (backup it first). Before this line there:
return $sRet;
if (strpos($_SERVER['PHP_SELF'], 'admin') !==FALSE) { $sRet .= '<meta name =“robots” content=”noindex,nofollow”/>'; } |
I believe he wants it for the Profile page in general. If so, the code LeonidS posted above should be adjusted as reflected below: if (defined('BX_PROFILE_PAGE')) { $sRet .= '<meta name =“robots” content=”noindex,nofollow”/>'; } Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz |
Thank you very much, guys! But once:
If i add Modzzz code BEFORE return $sRet; Then nothing working. BUT if I add the code AFTER return $sRet; Then all working pretty good. Thanks you both, guys! |
@Sanek - What you have done is not correct. Nothing must be placed after return $sRet; You must place the code as specified for it to work properly. If you wish you can PM your site credentials so I can make the modification for you. Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz |
Ok I sent you PM, thanks! |