Member
Member
Ralf   01-03-2015, 17:59
#1

Hi,
looking at the source code of my site I have noticed, that the generator tag is missing.

I understand the plugin settings this way:
If the generator tag is selected in the settings, the generator Tag 'Zenphoto' will be added to the site.
This does not happen.

I have taken a short look at the html_meta_tags.php file and noticed that the following line occurs twice:
setOptionDefault('htmlmeta_name-generator', '1');

Line 54 and line 57

And there is no statement about the generator tag in this file where the if statements begin (Around line 244).
If I add this statement to the file:
if (getOption('htmlmeta_name-generator')) {
$meta .= '' . "\n";
}

the generator tag will be used

Administrator
Administrator
acrylian   01-03-2015, 19:42
#2

Thanks, that probably never was there.

Member
Member
MarkRH   01-03-2015, 22:16
#3

Hadn't noticed. Made the change.

Member
Member
Ralf   02-03-2015, 19:56
#4

Hi Acrylian,
I have seen that the plugin has been updated on github and tested it.

the generator tag is now there - but i am not sure if it is intended that it show only the version of Zenphoto.

Changing line 279 of the html_meta_tags.php file to:
$meta .= '' . "\n";

would do the job and will show:

Ralf

Administrator
Administrator
acrylian   02-03-2015, 20:25
#5

Yeah, you are right, my mistake. The version is of course printed in the source at the end anyway generally.

Of course this is hardly an important meta tag actually. In fact there are not that many meta tags that are important at all ;-))

Member
Member
MarkRH   03-03-2015, 04:17
#6

Might want to check the error logs. I had a bunch of errors about "Zenphoto" not being defined and assumed the value. That might be corrected if I download the latest master and replace everything. I might have missed the file that declares that variable.

Member
Member
MarkRH   03-03-2015, 06:29
#7

Problem went away after getting latest zenphoto-master and replacing everything as if doing an upgrade.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.