Welcome, Guest. Please login or register.
March 21, 2010, 05:54:36 AM

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.
110567 Posts in 15967 Topics by 9310 Members
Latest Member: stevenris10
* Home Help Search Login Register
+  WebsiteBaker Community Forum
|-+  English
| |-+  Modules (Moderators: Argos, BerndJM)
| | |-+  RSS Site Updates
Pages: [1] Go Down Print
Author Topic: RSS Site Updates  (Read 7292 times)
Panther

Offline Offline

Posts: 168



WWW
« on: July 20, 2007, 06:49:02 PM »

This is a snippet-module. This means it installs as a module, but is not a page section, rather you call it with the php function

ShowFeed();

You can place this in your template file, or any code section.

It puts the standard RSS button that links to rss.php - this file generates an rss 2.0 compatible feed that you can add to your favorite reader.

It feeds the last 10 (public only) pages (can be modified in rss.php) to be updated on your site, newest to oldest and includes the site title with link to the page, the date/time the page was updated, and if you have given the page a custom description via the page settings, it displays that as well.

You can see it in action as part of my template at http://baker.mnpages.com/pages/sandbox/rss-site-updates.php

I've tested it with Firefox using SAGE feed reader... it does not seem to work properly as a Live Bookmark however... not sure why yet.
« Last Edit: July 20, 2007, 06:50:39 PM by Panther » Logged
zakanyi

Offline Offline

Posts: 1


« Reply #1 on: February 13, 2008, 10:39:55 AM »

Great Module! Thx from Hungary.
Logged
watermelon

Offline Offline

Posts: 25


« Reply #2 on: May 06, 2008, 09:05:41 PM »

Sorry I might be being a bit thick here, but where is the zip file to download this snippet? I don't see it in the Add-ons area...?
Logged
marathoner

Offline Offline

Posts: 491


« Reply #3 on: May 07, 2008, 02:50:03 AM »

It's in the original post above.
Logged
mysticcowboy

Offline Offline

Posts: 200



WWW
« Reply #4 on: May 30, 2008, 07:49:03 PM »

I looked in the original post and all through the linked site. There is a sandbox implementation describing the module but not a download link.
Logged

michael mckee

www.mactheweb.com
Mac and Web Design, the perfect marriage
mysticcowboy

Offline Offline

Posts: 200



WWW
« Reply #5 on: May 30, 2008, 07:59:36 PM »

never mind - found it
Logged

michael mckee

www.mactheweb.com
Mac and Web Design, the perfect marriage
matjooo

Offline Offline

Posts: 1



WWW
« Reply #6 on: June 09, 2008, 11:48:40 PM »

is it easy to setup?
Logged

The god be with you.
SergeV

Offline Offline

Posts: 3


« Reply #7 on: June 14, 2008, 11:15:01 PM »

If will allow, small addition in a file rss.php after
Code:
// Header info
// Required by CSS 2.0
Code:
echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>";
echo "<rss version=\"2.0\">";
Logged
imakeart

Offline Offline

Posts: 16


« Reply #8 on: August 24, 2008, 03:32:04 PM »

I'm curious if it would be possible to have an image placed in the description? I'd like to use this snippet to show updates to my gallery/shop pages -->

http://amandamakepeace.com/pages/gallery/pen-ink.php


And have the output look something like this -->

http://www.ebsqart.com/default.asp?RSS=tsrRecentArt


Would love some guidance with this  smiley


Thanks,
Amanda
« Last Edit: September 08, 2008, 09:56:52 PM by imakeart » Logged
jar

Offline Offline

Posts: 62


« Reply #9 on: August 25, 2008, 05:38:47 PM »

This is a snippet-module. This means it installs as a module, but is not a page section, rather you call it with the php function

ShowFeed();

You can place this in your template file, or any code section.

It puts the standard RSS button that links to rss.php - this file generates an rss 2.0 compatible feed that you can add to your favorite reader.

It feeds the last 10 (public only) pages (can be modified in rss.php) to be updated on your site, newest to oldest and includes the site title with link to the page, the date/time the page was updated, and if you have given the page a custom description via the page settings, it displays that as well.

You can see it in action as part of my template at http://baker.mnpages.com/pages/sandbox/rss-site-updates.php

I've tested it with Firefox using SAGE feed reader... it does not seem to work properly as a Live Bookmark however... not sure why yet.

i have problems with latin characters

http://www.tusiromania.ro/modules/rssfeeder/rssfeeder.php?page=4
Logged
diodak

Offline Offline

Posts: 81



« Reply #10 on: September 07, 2008, 11:55:20 AM »

I`ve made little modification of this module to have: Latest changed pages on website.

Here is the code of include.php.

Code:
<?php
/* RSS Site Feed
   Call this nsippet with:
        ShowFeed();
   in your template, or a code section
*/

function ShowFeed() {
/*

 Website Baker Project <http://www.websitebaker.org/>
 Copyright (C) 2004-2006, Ryan Djurovich

 Website Baker is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2 of the License, or
 (at your option) any later version.

 Website Baker is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with Website Baker; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

*/

// Include WB files
require_once(WB_PATH.'/config.php');
require_once(
WB_PATH.'/framework/class.frontend.php');
$database = new database();
$wb = new frontend();
$page_id $wb->get_get('page_id');
$section_id $wb->get_get('section_id');
$wb->page_id $page_id;
$wb->get_page_details();
$wb->get_website_settings();

// Get page info from database

//Query
$query "SELECT * FROM ".TABLE_PREFIX."pages WHERE visibility = \"public\" ORDER BY modified_when DESC LIMIT 0 , 6";
$result $database->query($query);

//Generating the page info
while($item $result->fetchRow($result)) {

    echo 
"<ul class=\"forum_link\"><li class=\"forum1\"><a href=".PAGES_DIRECTORY.$item['link'].PAGE_EXTENSION.">".stripslashes($item["page_title"])."</a></li>";
// Stripping HTML Tags for text-only visibility
    
echo "<li class=\"forum2\">edytowano: ".date("j.m.Y, H:i",$item["modified_when"])."</li>";


}

}
?>

Here is the demo: http://www.spojnia.osno.info/
On the right side, Ostatnio edytowane strony.
Logged

erpe

Offline Offline

Posts: 1738



WWW
« Reply #11 on: September 07, 2008, 12:01:52 PM »

The same function already exists:

http://www.websitebakers.com/pages/code-snippets/listings/last-mod-pages.php

rgds

erpe
« Last Edit: January 02, 2009, 10:58:51 AM by erpe » Logged

diodak

Offline Offline

Posts: 81



« Reply #12 on: September 07, 2008, 02:00:14 PM »

This website doesn`t work for me  sad
Logged

ronald32

Offline Offline

Posts: 17



WWW
« Reply #13 on: September 18, 2008, 09:43:49 AM »

Hello

I installed this module on the website www.rank.nl. It works fine, in google reader every update of the website is shown... But the link from the reader to the website is incorrect... The wb directory is missing in the URL:

http://www.rankkids.nl/pages/fotoalbum/baby-bij-de-kleuters.php it must be:
http://www.rankkids.nl/wb/pages/fotoalbum/baby-bij-de-kleuters.php

How can I change that...?

Ronald

www.rank.nl
www.duinenzee.nl
Logged
Jaz

Offline Offline

Posts: 18


« Reply #14 on: September 25, 2008, 05:20:56 PM »

I have the same problem it seems to assume your WB installation is in the root directory.  I tried editing rss.php to put WB_URL on the front of the link but then it says the tags rss and channel aren't closed.

Can someone help me fix it and can I add a pageid to WHERE clause in the SQL query so it only displays changes on my news page not the whole site ?
Logged
freckles

Offline Offline

Posts: 17


« Reply #15 on: October 30, 2008, 01:02:28 AM »

Hi

Thanks for this. It works great.

I got around the problem with Firefox Live Bookmarks - where the link doesn't work - by altering the 'rss.php' file slightly, so that it generates the full URL in the feed :

echo "<link>".PAGES_DIRECTORY.$item['link'].PAGE_EXTENSION."</link>";

altered to :

echo "<link>".WB_URL.PAGES_DIREC TORY.$item['link'].PAGE_EXTENSION."</link>";


This seems to work fine now.

Regards
Freckles
Logged
bgg

Offline Offline

Posts: 101



« Reply #16 on: November 03, 2008, 12:26:40 PM »

Hello!

I am trying to use this with MediaBlog module. I tried, but failed.

Here's the mediablog's table structure.

Code:
CREATE TABLE IF NOT EXISTS `wb_mod_mediablog_items` (
  `item_id` int(11) NOT NULL auto_increment,
  `section_id` int(11) NOT NULL,
  `page_id` int(11) NOT NULL,
  `group_id` int(11) NOT NULL,
  `active` int(11) NOT NULL,
  `image` varchar(255) NOT NULL,
  `image_name` varchar(255) NOT NULL,
  `video` varchar(255) NOT NULL,
  `video_name` varchar(255) NOT NULL,
  `ext` varchar(5) NOT NULL,
  `position` int(11) NOT NULL,
  `title` varchar(255) NOT NULL default '',
  `tags` text NOT NULL,
  `link` text NOT NULL,
  `content_short` text NOT NULL,
  `content_long` text NOT NULL,
  `commenting` varchar(7) NOT NULL default '',
  `itemed_when` int(11) NOT NULL,
  `itemed_by` int(11) NOT NULL,
  PRIMARY KEY  (`item_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=10 ;

Can someone please help me customizing the rss.php file?

Thank you very much.

Babs
Logged
Pages: [1] Go Up Print 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!