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

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

0 Members and 1 Guest are viewing this topic.

Offline ahsancharming

  • Newbie
  • *
  • Posts: 39
    • View Profile
Re: [MOD] Google Sitemap for your gallery
« Reply #135 on: October 13, 2009, 09:19:37 AM »
still no reply since a week.. please help me out.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Google Sitemap for your gallery
« Reply #136 on: October 13, 2009, 03:03:18 PM »
As far as I can tell Nicky already answered your original question...
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [MOD] Google Sitemap for your gallery
« Reply #137 on: October 13, 2009, 10:31:56 PM »
ahsancharming,

i still have no idea what is your problem..
...you asked i answered
...you asked V@no answered

which problem do you still have?

what is on the end?
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline AKIN

  • Full Member
  • ***
  • Posts: 121
    • View Profile
    • Resim
Re: [MOD] Google Sitemap for your gallery
« Reply #138 on: November 11, 2009, 10:17:36 PM »
sitemap Search does not include words.
How can we add?

Offline AKIN

  • Full Member
  • ***
  • Posts: 121
    • View Profile
    • Resim
Re: [MOD] Google Sitemap for your gallery
« Reply #139 on: November 13, 2009, 04:23:12 AM »
I did some work. I would add the code below. shows only 1 and more not coming. Where do you think I made a mistake


Code: [Select]
<?
# Create Google Sitemap for 4images
# Created by Mai Minh (minh@maingo.com http://www.vna2z.com)
# Modified by Oliver van der Werf (info@flash-webdesign.de http://www.flash-webdesign.de)
# Adapted for [MOD] Google Friendly Urls by Fábio Dantas (fabio@amopiaui.com http://www.famosasx.info)
# Date: 28/11/2006 | 02.01.2007 | 16/06/2008
# You can send ping to Google with this request: http://www.google.com/webmasters/sitemaps/ping?sitemap=http://www.resimli.net/arama.xml
#---------------------------------

require("config.php");

# 4images top page (with trailing slash)
$gallery_url = 'http://www.resimli.net/';

# Choose the URL format
# 0 is http://www.site.com/cat123.htm
# 1 is http://www.site.com/details.php?image_id=123
# 2 is http://www.site.com/r-category-1-subcategory-2-image-123.htm
$shortURL = 2; // 0 or 1 or 2

# If $shortURL is different of 2, you can delete these three lines below:
define('ROOT_PATH', './');
include(ROOT_PATH.'global.php');
require(ROOT_PATH.'includes/sessions.php');

$link=mysql_connect("$db_host","$db_user","$db_password");
mysql_select_db("$db_name") or die ("Cannot connect database!");

# Priotity
//select between 0.0 and 1.0
//0.0 identifies the lowest priority page(s) on your website
//1.0 identifies the highest priority page(s) on your website
$prio_arama = 1.0;

# Frequency
//"always", "hourly", "daily", "weekly", "monthly", "yearly" or "never"
$freq_arama = 'monthly';

# Print XML header
xml_head();

# Print URLs

$arama = mysql_query('SELECT word_id,word_text FROM 4images_wordlist ORDER by word_id ');
while ($arama = mysql_fetch_array($arama))
{
$aramaid = $arama['word_id'];
$date = $arama['word_id'];
$date = date("Y-m-d",$date)."T".date("H:i:s",$date)."+00:00";
$arama_url = $gallery_url.'search.htm?search_keywords='.$aramaid;

print_xml($arama_url,$prio_arama,$date,$freq_arama);
}

# Print XML footer
xml_foot();

function xml_head() {
$freq = 'daily';
$priority = '1.0';
$mod = date("Y-m-d")."T".date("H:i:s")."+00:00";
echo "<?xml version='1.0' encoding='UTF-8'?>
<urlset xmlns=\"http://www.google.com/schemas/sitemap/0.84\"
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
xsi:schemaLocation=\"http://www.google.com/schemas/sitemap/0.84 http://www.google.com/schemas/sitemap/0.84/sitemap.xsd\">";
}

#-----------------------------------------------
# xml_foot
#-----------------------------------------------
function xml_foot() {
echo "
</urlset>";
}

#-----------------------------------------------
# print_xml
#-----------------------------------------------
function print_xml($url,$priority,$lastmod,$changefreq) {
$temp = "<url>
<loc>$url</loc>";
$temp .= "  <priority>$priority</priority>";
if ($lastmod != '') {
$temp .="  <lastmod>$lastmod</lastmod>";
}
$temp .= "  <changefreq>$changefreq</changefreq>
</url>";
echo $temp;
}
?>

see code...
www.resimli.net/arama.php

Offline tramfahrer

  • Full Member
  • ***
  • Posts: 112
    • View Profile
    • Straßenbahn-, Bus- und Eisenbahnbilder
Re: [MOD] Google Sitemap for your gallery
« Reply #140 on: January 18, 2010, 08:52:53 PM »
Habe da mal eine Frage, Google gibt mir bei diesem Sitemap MOD diese Fehlermeldung raus, der sich denn alle 6 Zeilen später wieder holen soll, also Zeile 14, 20, 26, 32 etc etc ....

 Zeile 14 Ungültiges Datum

Es wurde ein ungültiges Datum gefunden. Berichtigen Sie bitte das Datum bzw. dessen Formatierung, bevor Sie Ihre Daten erneut einreichen.

Übergeordnetes Tag: url
Tag: lastmod
Wert:
Problem ermittelt am: 18.01.2010

vllt hat ja jemand eine Idee

URL zu meiner sitemap www.tram-und-bahnbilder.de/sitemap.xml

Offline Fragezeichen

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
Re: [MOD] Google Sitemap for your gallery
« Reply #141 on: April 18, 2010, 09:00:38 PM »
Toller Mod,fettes merci.
Einbau funktioniert ohne probleme und läuft sofort.
Wichtig eben nur das die .htacsess erweitert wird sonst gibts keine Xml.
Danach eine Ping an Tante Google senden und staunen wie die Besucher hereinströmen...

TOP TOP !!
 :D

Offline ttluan

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: [MOD] Google Sitemap for your gallery
« Reply #142 on: May 08, 2010, 08:47:50 PM »
Hi,
I use [MOD] Google Friendly Urls For 4images Best Seo Mod , but I want to display sitemap link for image like this:

http://mydomain.com/cat-catname-1-img-imagename-1.htm but I follow edit code the result is

http://mydomain.com/img-imagename-1.htm

Pls help to change this, Tks

Offline egyptsons

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Egypt Sons
Re: [MOD] Google Sitemap for your gallery
« Reply #143 on: June 12, 2010, 06:26:15 PM »
someone can help me
i have more than 50000 photo
so google reject it

Quote
Too many URLs
Your Sitemap contains too many URLs. Please create multiple Sitemaps with up to 50000 URLs each and submit all Sitemaps.

also there is error like this
    
Quote
Invalid date
An invalid date was found. Please fix the date or formatting before resubmitting.
Thanx God

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [MOD] Google Sitemap for your gallery
« Reply #144 on: June 12, 2010, 09:35:14 PM »
someone can help me
i have more than 50000 photo
so google reject it

Quote
Too many URLs
Your Sitemap contains too many URLs. Please create multiple Sitemaps with up to 50000 URLs each and submit all Sitemaps.

quick help for to much entries: http://www.4homepages.de/forum/index.php?topic=15687.msg141666#msg141666

tip:
make in your first google.php only categories and profiles

google2.php start with the pictures..
and so on..
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline danijelpendjer

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: [MOD] Google Sitemap for your gallery
« Reply #145 on: June 13, 2010, 03:45:38 PM »
Hi,

I need some help. I set up xml site map but it does not work properly.

Can somebody look at that?
Site map is here: xxx: mojefotke. raftingtarom. org. rs/sitemap. xml

Thanks

Danijel

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [MOD] Google Sitemap for your gallery
« Reply #146 on: June 13, 2010, 10:12:54 PM »
Hi,

I need some help. I set up xml site map but it does not work properly.

Can somebody look at that?
Site map is here: xxx: mojefotke. raftingtarom. org. rs/sitemap. xml

Thanks

Danijel

ћаос Данијел,

измени у google.php датотеци ово
Code: [Select]
$gallery_url = 'http://mojefotke.raftingtarom.org.rs/';па ће све бити ок :)

cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline danijelpendjer

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: [MOD] Google Sitemap for your gallery
« Reply #147 on: June 14, 2010, 02:32:43 AM »
Hvala Nicky,

Odmah da kažem da nisam očekivao da će mi neko odgovoriti na SRB  :lol:

Nabudžio sam ovo ali ne radi još uvek kako treba. Nemam linkove na sitemap stranici a gogole webmaster tools mi javlja ovo:

Путање се не подударају
Открили смо да сте Sitemap послали помоћу путање URL адресе која садржи префикс „www“ (на пример: http://www.example.com/sitemap.xml). Међутим, URL адресе наведене у вашем Sitemap-у не користе префикс „www“ (на пример: http://example.com/mojadatoteka.htm).

Redirekcije su podešene i nemam www na tom sajtu, tako da mi ovo nema smisla, i kako god da se kuca uvek će da skine www.

Jel imaš ideju zašto mi ne daje linkove na sitemap.xml stranici?

Poz
« Last Edit: June 14, 2010, 07:20:26 PM by danijelpendjer »

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [MOD] Google Sitemap for your gallery
« Reply #148 on: June 14, 2010, 06:11:18 PM »
Odmah da kažem da nisam očekivao da će mi neko odgovoriti na SRB.

Nabudžio sam ovo ali ne radi još uvek kako treba. Nemam linkove na sitemap stranici a gogole webmaster tools mi javlja ovo:

Путање се не подударају
Открили смо да сте Sitemap послали помоћу путање URL адресе која садржи префикс „www“ (на пример: http://www.example.com/sitemap.xml). Међутим, URL адресе наведене у вашем Sitemap-у не користе префикс „www“ (на пример: http://example.com/mojadatoteka.htm).

ћаос опет :)

па има нас срба и овде :)
да ли си у webmaster tools додао суб домену mojefotke.raftingtarom.org.rs?
то бих ти препоручио..

ја видим линкове у http://mojefotke.raftingtarom.org.rs/sitemap.xml

што се тиче www и без www то можеш наместиту исто тамо, али пази на доубле контент.. да те гоогле не би казнио..
одлучи се за један..

срдачан поздрав.
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline danijelpendjer

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: [MOD] Google Sitemap for your gallery
« Reply #149 on: June 15, 2010, 12:44:37 PM »
Namestio sam bez www i to nije problem. Takođe sam sajt prijavio i na Google webmasters tools. Sajt je verifikovan ali kad sam prijavio sitemap, WMT mi daje grešku.

Vidim i ja da stoje putanje do stranica sajta na sitemap.xml stranici, ali ja ne vidim da je od njih napravio linkove, a mislim da to moraju da budu linkovi.

Imao sam isti problem sa wordpressom, ali sam to lako sredio, i čim su se napravili linkovi do tih putanja sve je bilo ok.

Čini mi se da sam nešto zeznuo oko koda u onom google.php fajlu.

Evo baš gledam sada kod tebe na http://nicky.net/sitemap.xml i tu postoji tabela sa 4 kolone. U prvoj su linkovi, u drugoj datum poslednje izmene, u trećoj frekvencija promene, i u poslednjoj su priioriteti. Kod mene je sve nešto nabacano i nema linkova.