• [MOD] Google Sitemap for your gallery 5 0 5 1
Currently:  

Author Topic: [MOD] Google Sitemap for your gallery  (Read 278662 times)

0 Members and 1 Guest are viewing this topic.

Offline son_gokou

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: [MOD] Google Sitemap for your gallery
« Reply #60 on: October 22, 2007, 08:47:47 PM »
I donīt need to copy into the file of this topic my first xml code?

Offline son_gokou

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: [MOD] Google Sitemap for your gallery
« Reply #61 on: October 22, 2007, 11:51:50 PM »
Forget it... I just have to put the right URL...

Offline KPeBiz

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: [MOD] Google Sitemap for your gallery
« Reply #62 on: October 24, 2007, 06:37:28 AM »

Hi,

I have done everything as per instruction below. How do I create the sitemap? Is it created automatically or do I need to turn on the process?

Thank you.


Hi,

You can create a Google Sitemap for your Gallery to improve traffic to your site.

You must install the Search Engine friendly MOD before use this file.

1. Upload the file google.php to the root folder of 4images.
2. Modify the .htaccess to rewrite the URL of sitemap.

Code: [Select]
RewriteRule ^sitemap.xml$ google.php
Now the URL of sitemap is: http://www.yourdomain.com/sitemap.xml

You can send a ping to Google to notify your new sitemap by this way: http://www.google.com/webmasters/sitemaps/ping?sitemap=URL_TO_YOUR_SITEMAP

Good luck!
Mai

Offline son_gokou

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: [MOD] Google Sitemap for your gallery
« Reply #63 on: October 24, 2007, 02:04:56 PM »
Just Download google.zip

Offline KPeBiz

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: [MOD] Google Sitemap for your gallery
« Reply #64 on: October 24, 2007, 06:54:41 PM »
Just Download google.zip

Thank you.

I have installed it but I encountered a problem.

I have earlier install a MOD to have a Google SEF URL as per this thread: http://www.4homepages.de/forum/index.php?topic=17598.0

The URL format does not work with this Google sitemap. Does anyone has any solution to it? I am not a programmer and it is really tough for me to read those code.

Thank you.

Offline Julz

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: [MOD] Google Sitemap for your gallery
« Reply #65 on: October 28, 2007, 09:53:09 AM »
Hey dar!

I Need some help please..

Ive installed your mod for short urls http://www.4homepages.de/forum/index.php?topic=6729.msg57268#msg57268

It works fine, and ive also installed Google Sitemap:http://www.4homepages.de/forum/index.php?topic=15687.0

Now i'd like to know how i can have the same urls in my sitemap as my gallery?

Hope you cna help me :wink:

Julz

Offline son_gokou

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: [MOD] Google Sitemap for your gallery
« Reply #66 on: October 28, 2007, 12:16:35 PM »
I'm not understanding well what you want...

Offline Julz

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: [MOD] Google Sitemap for your gallery
« Reply #67 on: October 28, 2007, 04:39:44 PM »
oky

I installed the Short URLs MOD, so my urls are now like this:

www.site.com/cat-categoryname-id.htm & www.site.com/img-imagename-id.htm
That is all working fine, but now in my Google Sitemap, the image name are still as follow:

www.site.com/cat-id.htm & www.site.com/img-id.htm

How could i change it so that my urls in my sitemap will also show the ../img-imagename-id.htm in it?
Hope that makes more sense  :oops:

Julz

Offline baghdad4ever

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: [MOD] Google Sitemap for your gallery
« Reply #68 on: January 04, 2008, 02:54:44 PM »
plz i confused now :cry:

what is the exact file which i upload it

the one in the attachment

or the code in this reply

http://www.4homepages.de/forum/index.php?topic=15687.msg85639#msg85639

i want the final php after all customization

plz help


Offline Krali

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: [MOD] Google Sitemap for your gallery
« Reply #69 on: February 06, 2008, 12:30:15 PM »
Hello,

I have the same problem, like other users. I don't get the file "sitemap.xml" in the webroot created.

And please, I want the absolutely updated and latest version of this great mod too.

Kind regards,

Krali

Offline maineyak

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: [MOD] Google Sitemap for your gallery
« Reply #70 on: February 26, 2008, 03:22:23 PM »
I'm having the same problem others are that are using the Search Engine Friendly URLs aka Short URLs mod found here: http://www.4homepages.de/forum/index.php?topic=6729.0

My new image url's are like this: http://www.domain.com/image-demon-236.htm, but the sitemap is showing the urls like this: http://www.domain.com/img236.htm, which is the old url structure.

Can I fix this?

Offline CanonInk

  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: [MOD] Google Sitemap for your gallery
« Reply #71 on: February 27, 2008, 09:39:20 PM »
I'm having the same problem others are that are using the Search Engine Friendly URLs aka Short URLs mod found here: http://www.4homepages.de/forum/index.php?topic=6729.0

My new image url's are like this: http://www.domain.com/image-demon-236.htm, but the sitemap is showing the urls like this: http://www.domain.com/img236.htm, which is the old url structure.

Can I fix this?

Try this...

Open google.php

Find:
Code: [Select]
$categories = mysql_query('SELECT cat_id FROM ' . $table_prefix . 'categories');

Replace with:
Code: [Select]
$categories = mysql_query('SELECT cat_id, cat_name FROM ' . $table_prefix . 'categories');

Find:
Code: [Select]
$catid = $category['cat_id'];

Add after:
Code: [Select]
$cat_name = $category['cat_name'];

Find:
Code: [Select]
$cat_url = $gallery_url.'cat'.$catid.'.htm';

Replace with:
Code: [Select]
$cat_url = $gallery_url.'cat-'.$cat_name.'-'.$catid.'.htm';

Find:
Code: [Select]
$images = mysql_query('SELECT image_id,image_active,image_date FROM ' . $table_prefix . 'images ');

Replace with:
Code: [Select]
$images = mysql_query('SELECT image_id,image_name,image_active,image_date FROM ' . $table_prefix . 'images ');

Find:
Code: [Select]
$imgid = $image['image_id'];

Add after:
Code: [Select]
$imgna = $image['image_name'];

Find:
Code: [Select]
$img_url = $gallery_url.'img'.$imgid.'.htm';

Replace with:
Code: [Select]
$img_url = $gallery_url.'img'.$image_name.'-'.$imgid.'.htm';

When works, enjoy. It should be not work with "äüöß" or "ÄÖÜ" in cat_name or image_name. Have somebody a solution?

OR

Find:
Code: [Select]
$shortURL = 1;

Change to:
Code: [Select]
$shortURL = 0;


Take care, CanonInk

Offline rbfabbri

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: [MOD] Google Sitemap for your gallery
« Reply #72 on: April 06, 2008, 07:22:40 AM »
CanonInk, this works for me only for categories.

The images continues

http://www.estampafotos.com/galeria/img-23.htm

Any idea?

Thanks!!!

Offline rbfabbri

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: [MOD] Google Sitemap for your gallery
« Reply #73 on: April 06, 2008, 03:20:27 PM »
I'm having a problem

My root folder of 4 images is http://www.estampafotos.com/galeria/

The sitemap is generated in http://www.estampafotos.com/sitemap.xml

When i open the sitemap in browser shows this error

Code: [Select]
Warning: require(config.php) [function.require]: failed to open stream: No such file or directory in /home2/estampaf/public_html/google.php on line 9

Warning: require(config.php) [function.require]: failed to open stream: No such file or directory in /home2/estampaf/public_html/google.php on line 9

Fatal error: require() [function.require]: Failed opening required 'config.php' (include_path='.:/usr/lib/php:/usr/local/lib/php:/home2/estampaf/php') in /home2/estampaf/public_html/google.php on line 9

How can i fix this?

Thanks!!!!

Offline rodier

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: [MOD] Google Sitemap for your gallery
« Reply #74 on: April 23, 2008, 04:28:37 AM »
edit lol..  i was using another seo mod..   im try use the right one now ;)
« Last Edit: April 23, 2008, 05:09:14 AM by rodier »