• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

MOD: Google dynamic sitemap for all the images

roobre

Chevereto Noob
Code placed on a file called sitemap.php

PHP:
<?
//Mod creado por Roobre para Chevereto
$DIR = "/images/";
$directorio=opendir(".".$DIR); 
while ($archivo = readdir($directorio)){
    If(getimagesize(".".$DIR.$archivo)!= 0){
        $lista[] = "http://". $_SERVER['SERVER_NAME'] . $DIR . $archivo;
    }
}
closedir($directorio);
header ("Content-type: text/xml");
echo('
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
');
foreach($lista as $imagen){
   echo("<url>");
         echo("<loc>".$imagen."</loc>");
   echo("</url>");
}
echo("</urlset>");
?>

I hope it will be useful for someone!
Regards
 
hola disculpa mi ignorancia :B me gustaria saber que es lo que hace esto y si me pudieran responder en español ya que soy cero ingles :B
gracias de antemano :D
 
Bufon53 said:
hola disculpa mi ignorancia :B me gustaria saber que es lo que hace esto y si me pudieran responder en español ya que soy cero ingles :B
gracias de antemano :D


lo que lo gra es que el motor de busqueda Google reconozca e indexe todas las imagenes al buscador.

Saludos !
 
Well, change the /images/ part to the images folder of your website.

I thought everyone doesn't has the same folder name :p

Awesome one used it already long ago but nice to see this ;)
 
Back
Top