Recent Topics

1 Mar 20, 2012 12:04    

Hi

As in the reference link http://manual.b2evolution.net/Antispam_tab#Stop_search_engines_from_sending_you_traffic_you_don.27t_want - to Stop search engines from sending you traffic you don't want

For the above I understand that I need to edit _main.php in current skin directory

My b2evolution version if 3.3.1 and the skin it is using is nifty_corners
But there is no such _mail.php file, It only has index.main.php. Please advise.

2 Mar 24, 2012 03:38

Welcome to the forums!

It's an outdated manual. You need to edit all *.main.php files in your skin e.g. Index.main.php, posts.main.php etc.

Close to the top, find and edit thу following code

// Add your <head> directives below
if( ( $disp!='posts' && $disp!='single' ) || ( $disp=='posts' && ( $paged>1 || $cat!='' || $m!=0 || ( is_array( $catsel ) && count( $catsel )>0 ) || $w>=0 || $s!='' ) ) )
{   // Do not index if the above statement is 'true'
     add_js_headline('<meta name="robots" content="noindex,follow" />');
}

// -------------------------- HTML HEADER INCLUDED HERE --------------------------
skin_include( '_html_header.inc.php' );
// Note: You can customize the default HTML header by copying the generic
// /skins/_html_header.inc.php file into the current skin folder.
// -------------------------------- END OF HEADER --------------------------------

Note, I just copied the whole 'if' statement from the page you linked to.


Form is loading...