• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

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 😀
 
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 😀


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 😛

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