https://www.icyphoenix.com/viewtopic.php?f=35&t=6882
-----------------------------------
Danielc
Sun 24 Jan, 2010 02:01

Errors In News_rss.php, And A Question (Rss Links).
-----------------------------------
Hello Everybody..

I have one problem (or two) and one question.

My problem is related to news_rss.php. I have the two files (news_rss.php and rss.php) submitted in my Google Account, to improve the search results of my page, but, Google tells me that the feed generated by news_rss.php has some problems (warnings). The warnings are related to the date tags (like lastBuildDate and pubDate), and also there is a warning in the language tag. It says me that they don't have valid values.

My other question (or problem), is also related to news_rss.php. My web page has a profile in twitter and in Facebook, so, i use twitterfeed service to publish all news in both social networks. This service generates short links (bit.ly), but these links point to an entry in news_rss.php that just shows html code (like [url=http://www.miiconsola.com/news_rss.php?topic_id=768&utm_source=twitterfeed&utm_medium=facebook]this), and i want that these links point to the news topic in my forum.

Can you help me??

Sorry for my english.


-----------------------------------
Mighty Gorgon
Sun 24 Jan, 2010 13:11

Re: Errors In News_rss.php, And A Question (Rss Links).
-----------------------------------
Regarding the errors in Google, please post the error message entirely, so I can check.

Regarding the other issue, I didn't understand what you mean.  :(


-----------------------------------
spydie
Sun 24 Jan, 2010 13:36

Re: Errors In News_rss.php, And A Question (Rss Links).
-----------------------------------
It´s probably this ISO utf8 issue we discussed time ago


-----------------------------------
Danielc
Sun 24 Jan, 2010 18:09

Re: Errors In News_rss.php, And A Question (Rss Links).
-----------------------------------
[align=center][img]http://www.icyphoenix.com/files/images/133/captura.jpg[/img][/align]

The errors in Google are those... There are more below, but they are related to the same tag (pubDate).

Regarding to the other problem:

I want that the entries in the feed (news_rss.php) link to the topic in the forum (like [url=http://www.miiconsola.com/viewtopic.php?f=3&t=768]this), instead they link to something like [url=http://www.miiconsola.com/news_rss.php?topic_id=768]this.

Did i explain correctly?

Thanks!


-----------------------------------
Mighty Gorgon
Mon 25 Jan, 2010 14:35

Re: Errors In News_rss.php, And A Question (Rss Links).
-----------------------------------
Now I got your point, I will have a look.


-----------------------------------
Danielc
Mon 25 Jan, 2010 18:19

Re: Errors In News_rss.php, And A Question (Rss Links).
-----------------------------------
Thanks, i will wait..


-----------------------------------
Danielc
Wed 03 Feb, 2010 23:51

Re: Errors In News_rss.php, And A Question (Rss Links).
-----------------------------------
Any help??


-----------------------------------
Mighty Gorgon
Thu 04 Feb, 2010 00:53

Re: Errors In News_rss.php, And A Question (Rss Links).
-----------------------------------
Still no time to look at this.

Be patient.


-----------------------------------
Danielc
Fri 05 Feb, 2010 00:12

Re: Errors In News_rss.php, And A Question (Rss Links).
-----------------------------------
xD.. No problem.. I would like to help in order to resolve this problem.. I know php, but i don't know so much about rss..Is this related to the way that Icy Phoenix generates the dates???


-----------------------------------
Mighty Gorgon
Fri 05 Feb, 2010 12:17

Re: Errors In News_rss.php, And A Question (Rss Links).
-----------------------------------
I really don't know... because I couldn't check the issue yet.

Error message seems to suggest that the error is related to date format. Try to change it...

Here is a part of [b]includes/news.php[/b] which may help.

[codeblock]	function renderSyndication($num_items = 0)
	{
		global $lang;
		$encoding = $lang['ENCODING'];
		$sitename = $this->config['sitename'] . ' :: RSS';
		$copyright = $this->config['sitename'] . ' :: ' . gmdate('Y', time());
		$server_url = create_server_url();

		$this->setVariables(array(
			'TITLE' => $this->config['sitename'],
			'URL' => $server_url,
			'FORUM_PATH' => $this->config['script_path'],
			'DESC' => $this->config['news_rss_desc'],
			'LANGUAGE' => $this->config['news_rss_language'],
			'COPYRIGHT' => $copyright,
			'EDITOR' => $this->config['board_email'],
			'WEBMASTER' => $this->config['board_email'],
			'TTL' => $this->config['news_rss_ttl'],
			'CATEGORY' => $this->config['news_rss_cat'],
			'GENERATOR' => $sitename,
			'CONTENT_ENCODING' => $encoding,
			'PUB_DATE' => date('r', gmmktime(0, 0, 0, date('m'), date('d'), date('y')))
			)
		);[/codeblock]


-----------------------------------
Danielc
Fri 05 Feb, 2010 23:45

Re: Errors In News_rss.php, And A Question (Rss Links).
-----------------------------------
I will check it... Thanks!!!


