Sitemap Generator for cpg1.5.x Sitemap Generator for cpg1.5.x
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Sitemap Generator for cpg1.5.x

Started by Pyragony, October 28, 2018, 04:47:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Pyragony

Hello
I hope I find help here.
The image search machine from Yandex requires the following entry in the sitmaps.

Quote<Description> meta tags are missing

The <description> meta tag is either missing or incorrectly filled out on a number of pages. This could negatively affect how your site is presented in search results.

Where do I put the description best and what does the code look like?


Note:
<Description> blablablabla </description>

I ask for help  :'(

ron4mac

In your theme template.html file. Place it somewhere between <head> and </head>.

Pyragony

Thanks, I embedded it once. But in the created sitmaps it is not, as here in the example:


<url>
  <loc>http://www.example.com/dogs</loc>
  <description>Kommentar.</description>
  <changefreq>hourly</changefreq>
  <priority>1.00</priority>
   <image:image>
    <image:loc>http://www.example.com/image.jpg</image:loc>
  </image:image>
</url>
<url>
  <loc>http://www.example.com/cats</loc>
  <description>Kommentar.</description>
  <changefreq>hourly</changefreq>
  <priority>1.00</priority>
   <image:image>
    <image:loc>http://www.example.com/image.jpg</image:loc>
  </image:image>
</url>


I'll wait and see what Yandex says, but that can take up to 2 weeks.

Αndré

Please undo the change in template.hmtl. Instead, open plugins/sitemap_generator/generate.php, search for
<loc>
and add something like
$sitemap .= '<Description> blablablabla </description>\n';
below it.

Pyragony

@ Andre,

<loc> not found

Pyragony

Yandex answered quickly. You want the description in the sitmaps.

Αndré

As you mentioned the image search, I assume you want to add it to the pictures. If so, find
$urlpic->addChild('loc', $base.'/displayimage.php?pos=-'.$pid);
and below, add something like
$urlpic->addChild('description', $title);
or
$urlpic->addChild('description', $caption);

Pyragony

@Andre

Thank you, I will test it.
At the moment I can not do recrawl at Yandex.
I'll call back,

Can or should one also write here in German?

Αndré


Pyragony

Both do not work. Google has just barked.

QuoteUngültiges XML-Tag.
Dieses Tag wurde nicht erkannt. Beheben Sie bitte das Problem und reichen Sie die Daten erneut ein.

Yandex still lacks the meta tag <description>.

I have now manually edited my sitemaps, which of course takes some time.

It should look like this:

sitemaps_index.xml
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://dating-fraud.de/plugins/sitemap_generator/xml-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <sitemap>
    <loc>https://dating-fraud.de/sitemaps/cat3-sitemap.xml</loc>
    <description>Scammer around the World</description>
    <lastmod>2018-10-29T18:26:56+01:00</lastmod>
  </sitemap>
  <sitemap>
    <loc>https://dating-fraud.de/sitemaps/cat4-sitemap.xml</loc>
    <description>Scammer around the World</description>
    <lastmod>2017-08-20T10:40:18+02:00</lastmod>   
    </sitemap>


in the other files (cat)

  <url>
    <loc>https://dating-fraud.de/index.php?cat=31</loc>
    <description>Scammer around the World</description>
    <lastmod>2013-07-27T01:14:17+02:00</lastmod>
    <changefreq>daily</changefreq>
    <priority>1</priority>
  </url>


Whether Yandex wants to have that for every bid, I do not know yet. I have to wait for the answer again.




Αndré

Unfortunately it doesn't help if you post how the sitemap should look like. Instead, we need to know how it currently looks. A link to your gallery would also be very helpful. Maybe the sitemap doesn't look like expected, as you haven't posted detailed enough which generated sitemap you want to change.

Just have a look at the generate.php file. There are several occurences of
addChild('loc'
and each is responsible for different sitemaps.

Quote from: Pyragony on November 02, 2018, 09:40:00 AM
It should look like this:

sitemaps_index.xml
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://dating-fraud.de/plugins/sitemap_generator/xml-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <sitemap>
    <loc>https://dating-fraud.de/sitemaps/cat3-sitemap.xml</loc>
    <description>Scammer around the World</description>
    <lastmod>2018-10-29T18:26:56+01:00</lastmod>
  </sitemap>
  <sitemap>
    <loc>https://dating-fraud.de/sitemaps/cat4-sitemap.xml</loc>
    <description>Scammer around the World</description>
    <lastmod>2017-08-20T10:40:18+02:00</lastmod>   
    </sitemap>

Search for
$sitemap->addChild('loc', $base.'/sitemaps/cat'.$cid.'-sitemap.xml');

Quote from: Pyragony on November 02, 2018, 09:40:00 AM
in the other files (cat)

  <url>
    <loc>https://dating-fraud.de/index.php?cat=31</loc>
    <description>Scammer around the World</description>
    <lastmod>2013-07-27T01:14:17+02:00</lastmod>
    <changefreq>daily</changefreq>
    <priority>1</priority>
  </url>

Search for
$urlcat->addChild('loc', $base.'/index.php?cat='.$cid);

roadrunner2000

It would be nice if you updated it to version 1.6.