Profile pages

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!

Quote · 21 Dec 2019

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;


Add smth like:

 

if (strpos($_SERVER['PHP_SELF'], 'admin') !==FALSE)

{

 $sRet .= '<meta name =“robots” content=”noindex,nofollow”/>';

}
Quote · 21 Dec 2019

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
Quote · 21 Dec 2019

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!

Quote · 22 Dec 2019

@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
Quote · 22 Dec 2019

Ok I sent you PM, thanks!

Quote · 23 Dec 2019
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.