Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
March 21, 2010, 05:54:36 AM
1 Hour
1 Day
1 Week
1 Month
Forever
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
WebsiteBaker Community Forum
English
Modules
(Moderators:
Argos
,
BerndJM
)
RSS Site Updates
Pages:
[
1
]
Author
Topic: RSS Site Updates (Read 7292 times)
Panther
Offline
Posts: 168
RSS Site Updates
«
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
Posts: 1
Re: RSS Site Updates
«
Reply #1 on:
February 13, 2008, 10:39:55 AM »
Great Module! Thx from Hungary.
Logged
watermelon
Offline
Posts: 25
Re: RSS Site Updates
«
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
Posts: 491
Re: RSS Site Updates
«
Reply #3 on:
May 07, 2008, 02:50:03 AM »
It's in the original post above.
Logged
mysticcowboy
Offline
Posts: 200
Re: RSS Site Updates
«
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
Posts: 200
Re: RSS Site Updates
«
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
Posts: 1
Re: RSS Site Updates
«
Reply #6 on:
June 09, 2008, 11:48:40 PM »
is it easy to setup?
Logged
The god be with you.
SergeV
Offline
Posts: 3
Re: RSS Site Updates
«
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
Posts: 16
Re: RSS Site Updates
«
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
Thanks,
Amanda
«
Last Edit: September 08, 2008, 09:56:52 PM by imakeart
»
Logged
jar
Offline
Posts: 62
Re: RSS Site Updates
«
Reply #9 on:
August 25, 2008, 05:38:47 PM »
Quote from: Panther 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.
i have problems with latin characters
http://www.tusiromania.ro/modules/rssfeeder/rssfeeder.php?page=4
Logged
diodak
Offline
Posts: 81
Re: RSS Site Updates
«
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
Dysleksja
erpe
Offline
Posts: 1738
Re: RSS Site Updates
«
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
Search on
All Modules And Snippets Project (AMASP)
Be part of the
Tutorials-Project
diodak
Offline
Posts: 81
Re: RSS Site Updates
«
Reply #12 on:
September 07, 2008, 02:00:14 PM »
This website doesn`t work for me
Logged
Dysleksja
ronald32
Offline
Posts: 17
Re: RSS Site Updates
«
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
Posts: 18
Re: RSS Site Updates
«
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
Posts: 17
Re: RSS Site Updates
«
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
Posts: 101
Re: RSS Site Updates
«
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
]
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
=> Security Announcements
=> Documentation
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> Help & Support
=> Modules
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
=> jQuery
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
=> Archive (posts up to 2007)
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> Hilfe/Support
=> Module & Snippets
=> Templates & Design
=> Tutorials
=> jQuery
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
Loading...