Piwigo.org

You are not logged in. (Register / Login)

Announcement

  • Forum Index
  •  » Themes
  •  » many themes with problem to indexes engines (bing for example)

#1 2017-05-31 16:32:16

victorhugops
Member
Registered: 2016-07-15
Posts: 5

many themes with problem to indexes engines (bing for example)

Hello,

today I was checking why bing don't indexes my piwigo pages and the motive is because piwigo themes, put this code:

<meta name="robots" content="noindex,nofollow">

in all the pages !!!!

I'm not sure where is the problem, but this problem ocurre with a lot of themes, for example:

themes that work well:
- simple white
- kardon
- clear
- dark
- elegant
- bootstrap default
- simpleNG


themes that generate the problem:
- bootstrap darkroom
- stripped / stripped responsive
- greydragon


Any idea how check and fix the problem ??


Piwigo version: 2.8 and 2.9
PHP version:
MySQL version:
Piwigo URL: http://

Offline

 

#2 2017-05-31 21:59:20

OliverB
Member
Registered: 2017-05-05
Posts: 29
Website

Re: many themes with problem to indexes engines (bing for example)

IMO that's a more a problem of Piwigo than the theme.

picture.php contains

Code:

if ( $metadata_showable and pwg_get_session_var('show_metadata') )
{
  $page['meta_robots']=array('noindex'=>1, 'nofollow'=>1);
}

I guess the idea was to avoid a second indexing if the robot follows the "show exif" link, but there should be a cleaner solution.

ATM I simply commented out the line.

Oliver

Offline

 

#3 2017-05-31 22:54:23

victorhugops
Member
Registered: 2016-07-15
Posts: 5

Re: many themes with problem to indexes engines (bing for example)

Hello there..

but it work with one themes and others not !!
so, themes bugs ?? ;-)

anyway... thanks for the "fix".

attentive

Last edited by victorhugops (2017-05-31 22:55:12)

Offline

 

#4 2017-05-31 23:06:46

teekay
Member
Registered: 2013-06-12
Posts: 283

Re: many themes with problem to indexes engines (bing for example)

This is bound to show_metadata=true session variable. This can be enabled by default in local/config/config.inc.php, or set by the theme (bootstrap darkroom does it), and then the logic in core Piwigo is broken, it should be reversed.

See also [Github] piwigo-bootstrap-darkroom issue #64

It's a core issue.

Offline

 

#5 2017-06-01 10:52:53

teekay
Member
Registered: 2013-06-12
Posts: 283

Re: many themes with problem to indexes engines (bing for example)

I created an issue here: [Github] Piwigo issue #698

Offline

 
  • Forum Index
  •  » Themes
  •  » many themes with problem to indexes engines (bing for example)

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2017 · Contact