Welcome, Guest. Please login or register.
Did you miss your activation email?
May 25, 2012, 09:21:59 PM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155528 Posts in 21713 Topics by 7737 Members
Latest Member: chris85
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: rss of news module (WB 2.7)  (Read 726 times)
avitaly

Offline Offline

Posts: 33


« on: August 05, 2009, 09:35:21 AM »

I cannot have rss feeds working on rss readers for the news module. Specifically, the time is missing (Google Reader, which set date and time to current; FeedBurner, which do not display the data at all) or quite simply crazy (i.e. year 2032 in Feedly).

Do you have any suggestion? Could it be a matter of time-zone/language compatibility?
Logged
AR1306

Offline Offline

Posts: 536



« Reply #1 on: August 05, 2009, 09:58:36 AM »

See here: http://www.websitebaker2.org/forum/index.php/topic,14656.20.html the replay #23 maybe it will help you ...  grin - It´s a php-file to create a valide RSS-Feed (right time and so on ...)

regards

Andreas
Logged
avitaly

Offline Offline

Posts: 33


« Reply #2 on: August 05, 2009, 12:08:59 PM »

Thank you very much ...
I supposed that was the answer I was looking for ... the matter is ... I cannot understand a word of German and the topic seems complex! 
huh Which is the link/code I should use?
 
Logged
WebBird
Guest
« Reply #3 on: August 05, 2009, 12:31:26 PM »

* Download the attachment of that post: http://www.websitebaker2.org/forum/index.php?action=dlattach;topic=14656.0;attach=4753
* Extract the files into the News module folder (./modules/news)
* To show 10 posts, call the rss10.php like this:
Code:
<link rel="alternate" type="application/rss+xml" title="Hier steht Euer Text - News (10)" href="<?php echo WB_URL?>/modules/news/rss10.php?page_id=XX" />
Replace the title with some text and the XX after page_id= with the ID of the page where the news module is included (the News page to get the news from)

The second file, rss.php, is to show an unlimited feed. You will have to do some changes:

* Line 64:

Code:
<atom:link href="http://<?php echo $_SERVER['SERVER_NAME']; ?>/modules/news/rss.php?page_id=XX" rel="self" type="application/rss+xml" />

Replace XX with the page ID of the News page.

* Line 79:

Code:
<url><?php echo TEMPLATE_DIR?>/images/feedlogo.gif</url>

If the feedlogo.gif does not reside in the images subfolder, set the correct URL here.

* Line 80:

Code:
<title><?php echo WEBSITE_TITLE?> - <?php echo PAGE_TITLE?> (Alle)</title>

If you have more than one feed on a page, you may wish to have different headings here. Wink

* Include the feed like this:

Code:
<link rel="alternate" type="application/rss+xml" title="Hier steht Euer Text - News (Alle)" href="<?php echo WB_URL?>/modules/news/rss.php?page_id=XX" />

As described above, set the title and the page ID to the values you wish to use.
« Last Edit: August 05, 2009, 12:43:08 PM by WebBird » Logged
avitaly

Offline Offline

Posts: 33


« Reply #4 on: August 05, 2009, 01:22:08 PM »

Thank you, I'll try
Logged
avitaly

Offline Offline

Posts: 33


« Reply #5 on: August 05, 2009, 01:29:27 PM »

and ... if I have more than a page with news?
Logged
AR1306

Offline Offline

Posts: 536



« Reply #6 on: August 05, 2009, 01:35:24 PM »

Thank´s to webbird for this translation  wink It´s a realy good forum here, I like it  grin

Include the feed like this (in the Header of your index.php [that means: <head>Here!</head>  wink) or in the head of the page where you want to show the Feed):

<link rel="alternate" type="application/rss+xml" title="This is your text, how you want to call the Feed! - News (10)" href="<?php echo WB_URL; ?>/modules/news/rss10.php?page_id=Your News - Page_ID" />

For the title you can use this php-code
Code:
<?php echo WEBSITE_TITLE?>
too ...  grin

Maybee you will find a way ...

Andreas
« Last Edit: August 05, 2009, 01:53:31 PM by AR1306 » Logged
AR1306

Offline Offline

Posts: 536



« Reply #7 on: August 05, 2009, 01:52:04 PM »

@avitaly

Quote
and ... if I have more than a page with news?

Where is the problem? Copy the rss.php and call the file rssnews2.php - How you want, it´s realy indifferent and change the page_id to this other or second news-page but don´t forget the link in the header!!! - There must be a second too ... just like this:

  • <link rel="alternate" type="application/rss+xml" title="This is your text, how you want to call the Feed! - News (1)" href="<?php echo WB_URL; ?>/modules/news/rss.php?page_id=Your News - Page_ID" />
  • <link rel="alternate" type="application/rss+xml" title="This is your text, how you want to call the second Feed! - News (2)" href="<?php echo WB_URL; ?>/modules/news/rssnews2.php?page_id=Your News - Page_ID from the second news-page" />

That´s all - Enjoy!

Have a look at our website - there you will find more than one RSS-Feed ...

www.citykircheberli n.de

Than, if you did all like in this description you call the feeds with this links  wink


If there is any question, please ask no problem ...

regards from Berlin  grin

Andreas
« Last Edit: August 05, 2009, 03:13:48 PM by AR1306 » Logged
avitaly

Offline Offline

Posts: 33


« Reply #8 on: August 06, 2009, 08:55:32 AM »

Great!!  grin Many thanks from Italy (Rome and Teramo, Abruzzo)
Logged
avitaly

Offline Offline

Posts: 33


« Reply #9 on: August 07, 2009, 09:54:48 AM »

 grin It works ... wouldn'it be fantastic to use it even with the all rssnewsfeed module (which does not refer to a page)? thank you very much
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!