Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Issues with RSS feed and Google

 
Reply to topic    Forum Index » Bugs and errors View previous topic
View next topic
Issues with RSS feed and Google
Author Message
dijares



Joined: 11 Nov 2006
Posts: 40

Post Issues with RSS feed and Google Reply with quote
Normally Google pulls quite a few of my articles, but lately I've noticed that there have been less and less. I did some research, and here's what they have to say about the URLs:



http://www.google.com/support/news_pub/bin/answer.py?answer=4584&topic=8871



Quote:
What if my site has fewer than three numbers in each article URL?



In order to have your articles crawled by Google News, each article URL must contain a number consisting of at least three digits. For example, our news crawler can't crawl an article with this URL: http://www.google.com/news/article23.html. It can, however, crawl an article with this URL: http://www.google.com/news/article234.html



Please note that if the only digits in your article URL resemble a year (e.g. "1999" or "2006"), our system may not be able to crawl your content.



If you're able to restructure each of your URLs to include a number consisting of at least three digits, Google News should automatically begin indexing your content within a few days.




So, is it possible to restructure the URLs?



For instance, for this url:



http://harrypotterspage.com/news.php/2007/04/20/see-the-trio-next-to-the-hogwart-s-express-in-ootp.html



Can I some how make it so each URL had three numbers before the .html?



I don't know if perhaps I can change my news.php file name, but that would probably screw up a lot of my other files, so I'd rather not touch that. Any suggestions?



Thanks!
Sat Apr 21, 2007 3:33 am View user's profile Send private message Visit poster's website
Guest








Please login to hide the ads.

dijares



Joined: 11 Nov 2006
Posts: 40

Post Any ideas? Reply with quote
Do you have any ideas on this? Thanks.



Do you think I can fix this in my user friendly URLs section.. for instance... add in 123 or something? Like this:



Code:
post = "{year}/{month}/{day}/{title}123.html"




Or will that screw up everything?



Thanks.



edit...



Okay, tried that, and it didn't make a difference. Didn't change the URL. Sigh. Please, does anyone have any ideas?
Mon Apr 23, 2007 11:11 am View user's profile Send private message Visit poster's website
Ramon



Joined: 12 Oct 2005
Posts: 462
Location: Hoogeveen, NL

Post Reply with quote
That'll do Wink

_________________
Mon Apr 23, 2007 11:51 am View user's profile Send private message Visit poster's website
dijares



Joined: 11 Nov 2006
Posts: 40

Post Reply with quote
Ramon wrote:
That'll do Wink




That'll do...what? Confused Laughing
Mon Apr 23, 2007 1:05 pm View user's profile Send private message Visit poster's website
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2635
Location: Germany

Post Re: Any ideas? Reply with quote
dijares wrote:
Okay, tried that, and it didn't make a difference. Didn't change the URL. Sigh. Please, does anyone have any ideas?


Clear cache and it'll work.
Mon Apr 23, 2007 2:15 pm View user's profile Send private message
dijares



Joined: 11 Nov 2006
Posts: 40

Post Reply with quote
Thanks, FI-DD. Unfortunately it didn't work (err). I had done something funny some time ago to my cache stuff because I was having problems with my cutenews.ru files loading slowly, so I don't know if this is why it didn't work.
Mon Apr 23, 2007 3:57 pm View user's profile Send private message Visit poster's website
dijares



Joined: 11 Nov 2006
Posts: 40

Post Got it! Reply with quote
Okay, I finally got it. I had to make sure each instance had the 123 added to the end. Here's my code for anyone who needs to find out how to do it.



Code:
[home]

post = "{year}/{month}/{day}/{title}123.html"



dosearch = "search{add:do=search}"



doarchives = "archives{add:do=archives}"



dousers = "users{add:do=users}"

user = "users/{user:do=users}.html"



day = "{year}/{month}/{day}"

month = "{year}/{month}"

year = "{year}"



docategory = "category{add:do=category}"

category = "category/{categories}"



[/news.php]

post = "{year}/{month}/{day}/{title}123.html"



[rss]

post = "{year}/{month}/{day}/{title}123.xml"

category = "category/{categories}/rss.xml"

user = "users/{user}.xml"

feed = "rss.xml"





[print]

post = "{year}/{month}/{day}/{title}123.phtml"





[trackback]

post = "{year}/{month}/{day}/{title}123.tb"




Then make sure to clear cache. Test it in a test posting to make sure it works.

Thanks so much, FI-DD. As always you're the best (yes, take a bow!). Laughing Laughing
Mon Apr 23, 2007 4:13 pm View user's profile Send private message Visit poster's website
dijares



Joined: 11 Nov 2006
Posts: 40

Post Now the images... Reply with quote
Okay, so now I have a question about Google grabbing our avatars.

Is there a way so that, when google shows our news in their listing of news items, that they can grab the avatar we use? I thought that perhaps we can change the RSS template? what do you think?

Here's my RSS template:;

ACTIVE STORY:
Code:
<item>
<title><![CDATA[{title}]]></title>
<link>{link=home/post}</link>
<description><![CDATA[{short-story}]]></description>
<category><![CDATA[{category}]]></category>
<pubDate>{date=r}</pubDate>
</item>


FULL STORY:
Code:
<title><![CDATA[{title}]]></title>
<link>{link=home/post}</link>
<description><![CDATA[{short-story}]]></description>


thanks for your help!
Wed Jun 13, 2007 6:48 pm View user's profile Send private message Visit poster's website
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2635
Location: Germany

Post Reply with quote
I don't know, try to add something like this to your template:
Code:
<image>
<title><![CDATA[{title}]]></title>
<url>{avatar-url}</url>
<link>{link=home/post}</link>
</image>

Thu Jun 14, 2007 2:02 pm View user's profile Send private message
dijares



Joined: 11 Nov 2006
Posts: 40

Post Re: Now the images... Reply with quote
dijares wrote:
Okay, so now I have a question about Google grabbing our avatars.

Is there a way so that, when google shows our news in their listing of news items, that they can grab the avatar we use? I thought that perhaps we can change the RSS template? what do you think?

Here's my RSS template:;

ACTIVE STORY:
Code:
<item>
<title><![CDATA[{title}]]></title>
<link>{link=home/post}</link>
<description><![CDATA[{short-story}]]></description>
<category><![CDATA[{category}]]></category>
<pubDate>{date=r}</pubDate>
</item>


FULL STORY:
Code:
<title><![CDATA[{title}]]></title>
<link>{link=home/post}</link>
<description><![CDATA[{short-story}]]></description>


thanks for your help!


I've finally figured this one out...

I've always loaded all of my avatars into a separate folder within my images folder on my main site. However, if I load the images into the images folder within CNR, the RSS feed grabs the images.

So, I made a new folder within the images section of CNR just for the icons and copied all my avatars here. Perhaps it works now because the folder is within the CNR folder (??) - I'm not sure, but just so others know... Smile
Mon Apr 21, 2008 4:20 pm View user's profile Send private message Visit poster's website
nam



Joined: 23 Dec 2006
Posts: 62

Post Reply with quote
I also noticed that for our articles to be included in the Google news section, the URL or each story must have 3-digit number.

So to include 123 in the URL as suggested above, many of the links to my pages on the Internet will no longer work thus I will lose many of my visitors.

For instance I've posted each of my news items on social bookmarks which will now point to a "not found" page of my site.

Dear FI-DD, do you have any solution for this problem?

Fri May 09, 2008 12:09 am View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2635
Location: Germany

Post Reply with quote
You can add the numbers only for future news. That way the old urls will keep on working.

Open inc/functions.inc.php and change this:
Code:
return totranslit($str.(($count and $count != 1) ? ' '.$count : ''));


to this:
Code:
return totranslit($str.(($count and $count != 1) ? ' '.$count : '')).'-12345';

Thu May 15, 2008 5:23 pm View user's profile Send private message
nam



Joined: 23 Dec 2006
Posts: 62

Post Reply with quote
Thanks, great solution, it works fine.

But can't you modify it a bit so it add a random number to each article rather than adding a static number to every article?
Fri May 16, 2008 6:11 am View user's profile Send private message
nam



Joined: 23 Dec 2006
Posts: 62

Post Reply with quote
I played with this option a bit, but a problem that I faced.

Now each time I edit any post, it automatically changes its URL and adds -12345

So if I edit an article six times the URL will change to something:

/my_latest_post_news-12345-12345-12345-12345-12345-12345-12345.html

And there is no way to edit any article wthout its URL being changed.
Fri May 16, 2008 10:18 am View user's profile Send private message
Display posts from previous:    
Reply to topic    Forum Index » Bugs and errors All times are GMT + 1 Hour
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.