Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
February 11, 2012, 05:37:33 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter
hier
und auf unserer
neuen Webseite
.
149534
Posts in
21088
Topics by
7529
Members
Latest Member:
schwaneb
WebsiteBaker Community Forum
English
Modules
(Moderator:
Argos
)
RSS Site Updates
Pages: [
1
]
Go Down
Author
Topic: RSS Site Updates (Read 9665 times)
Panther
Offline
Posts: 168
RSS Site Updates
«
on:
July 20, 2007, 05: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, 05: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: 26
Re: RSS Site Updates
«
Reply #2 on:
May 06, 2008, 08: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: 495
Re: RSS Site Updates
«
Reply #3 on:
May 07, 2008, 01: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, 06: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, 06: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, 10: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, 10: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: 18
Re: RSS Site Updates
«
Reply #8 on:
August 24, 2008, 02: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, 08:56:52 PM by imakeart
»
Logged
jar
Offline
Posts: 62
Re: RSS Site Updates
«
Reply #9 on:
August 25, 2008, 04:38:47 PM »
Quote from: Panther on July 20, 2007, 05: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: 85
Re: RSS Site Updates
«
Reply #10 on:
September 07, 2008, 10: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
() {
/*
WebsiteBaker Project <http://www.websitebaker.org/>
Copyright (C) 2004-2006, Ryan Djurovich
WebsiteBaker 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.
WebsiteBaker 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 websitebaker; 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
Buchsbaum
erpe
Offline
Posts: 2077
Re: RSS Site Updates
«
Reply #11 on:
September 07, 2008, 11:01:52 AM »
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
stories about
be part of the Tutorials-Project
visit the jQuery-Showroom
diodak
Offline
Posts: 85
Re: RSS Site Updates
«
Reply #12 on:
September 07, 2008, 01:00:14 PM »
This website doesn`t work for me
Logged
Buchsbaum
ronald32
Offline
Posts: 25
Re: RSS Site Updates
«
Reply #13 on:
September 18, 2008, 08: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, 04: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: 20
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
KdJ
Offline
Posts: 25
Re: RSS Site Updates
«
Reply #17 on:
April 11, 2010, 09:04:06 PM »
The link for rsssiteupdates.zip wil not install in my WB 2.8.1. (invalid zip)
Is there an other downloadplace?
Logged
freckles
Offline
Posts: 20
Re: RSS Site Updates
«
Reply #18 on:
April 12, 2010, 06:58:13 AM »
Quote from: KdJ on April 11, 2010, 09:04:06 PM
The link for rsssiteupdates.zip wil not install in my WB 2.8.1. (invalid zip)
Is there an other downloadplace?
Hi Kdj
I've also had this problem under 2.8.1, where 2.7 worked fine, so will be watching the sites closely for any updates.
regards
Freckles
Logged
cigaly
Offline
Posts: 1
Re: RSS Site Updates
«
Reply #19 on:
May 02, 2010, 06:38:10 AM »
Quote from: KdJ on April 11, 2010, 09:04:06 PM
The link for rsssiteupdates.zip wil not install in my WB 2.8.1. (invalid zip)
Is there an other downloadplace?
index.php is missing from the rsssiteupdates.zip
Logged
freckles
Offline
Posts: 20
Re: RSS Site Updates
«
Reply #20 on:
May 04, 2010, 11:30:54 AM »
Hi cigaly
I've had a look in the version I used under 2.7 and this doesn't have an index.php either. I don't think this module needs one. I have tried all ways to get this module installed without success - always an 'invalid .zip' message.
Any thoughts for a fix or another way to use to the php would be great. Do you think we could install it as a Droplet? I might try that..
kind regards
freckles
Logged
KEnik
Offline
Posts: 24
Re: RSS Site Updates
«
Reply #21 on:
September 10, 2010, 09:16:09 AM »
I need have in RSS the news
I added for 4. new news this code. Whitch show 4 news and after that new pages..
Code:
// 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 "<item>";
echo "<title>".stripslashes($item["page_title"])."</title>";
// Stripping HTML Tags for text-only visibility
echo "<description>Poslední změna: ".date("d.m.Y, H:i",$item["modified_when"])." ".strip_tags(isset($item["description"])? $item["description"] : '')."</description>";
echo "<link>".PAGES_DIRECTORY.$item['link'].PAGE_EXTENSION."</link>";
/* Add further (non required) information here like ie.
echo "<author>".$item["posted_by"]."</author>");
etc.
*/
echo "</item>";
}
Logged
Pages: [
1
]
Go Up
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
-----------------------------
English
-----------------------------
=> Help & Support
-----------------------------
General
-----------------------------
=> WebsiteBaker Website Showcase
-----------------------------
English
-----------------------------
=> Modules
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
-----------------------------
General
-----------------------------
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
-----------------------------
General
-----------------------------
=> Security Announcements
-----------------------------
Deutsch (German)
-----------------------------
=> Hilfe/Support
-----------------------------
General
-----------------------------
=> Documentation
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
=> Module & Snippets
-----------------------------
English
-----------------------------
=> Archive (posts up to 2007)
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Deutsch (German)
-----------------------------
=> jQuery
=> Tutorials
=> Templates & Design
-----------------------------
English
-----------------------------
=> jQuery
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
===> Suggestions
-----------------------------
Deutsch (German)
-----------------------------
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
===> Vorschläge
-----------------------------
English
-----------------------------
===> Software bugs
-----------------------------
Deutsch (German)
-----------------------------
===> Softwarefehler
=====> Module / Extensions
-----------------------------
English
-----------------------------
=====> Modules / Extensions
-----------------------------
Deutsch (German)
-----------------------------
===> Erfahrungs und Testberichte
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...