Announcement

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

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

victorhugops
Member
2016-07-15
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
2017-05-05
29

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
2016-07-15
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
2013-06-12
404

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
2013-06-12
404

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

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

Offline

 

#6 2019-01-24 20:48:34

reisi007
Member
2018-11-16
16

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

Contibuted the necessary code to make a fix possible.

We need to discuss if we should really keep the "nofollow" option in there.

See: [Github] Piwigo issue #698

Offline

 

#7 2019-02-06 16:54:24

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13180

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

Yes, this is a problem to have no search engine parsing the page. But the real problem is the way we show/hide metadata. The way it's done was OK in 2004, but it's not valid today anymore. We should not reload the full page to display EXIF/IPTC, an Ajax call to pwg.images.getMetadata should be enough without reload the whole page. This way we would avoid the mess of setting noindex/nofollow.


Latest blog post (November 9th 2018) Why Flickr could not remain free for ever

Offline

 

#8 2019-02-06 23:01:26

teekay
Member
2013-06-12
404

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

plg wrote:

pwg.images.getMetadata

This method doesn't exist yet, though. Or does it?

Offline

 

#9 2019-02-07 07:02:12

reisi007
Member
2018-11-16
16

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

I see your point as you wouldn't need a config option in that case.
However, this is a severe issue affecting a lot of pages, which can be easily fixed. I see that we can make it deprecated after a lot of themes have updated - or we leave it as there is no way to set a "default" behavior for metadata loading built in Piwigo!

Offline

 
  •  » 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-2019 · Contact