View Full Version : Installing a simple RSS feed and controlling where it is
vanight
November 7th, 2004, 15:20
Hello,
I am new here and have been reviewing different products like Xaraya, LDU, and now I am looking at Mambo. I seem to be having a hard time translating what I am visualizing in my mind to an item in the Mambo control panel. For example I have an RSS link that allows one to display the weather.com box in various styles with the "zip code" form. Its a medium size box that can be horizontal or vertical. What I wanted was to simply have this "box" or item show up on the left or right side Vertically oriented just like the "poll" example include on the Themes or whatever thats included with Mambo. I tried for hours before giving up. I did at one point get it to show up a few links deep from the "news feed" button. See here: http://www.ebooks-free.net/index.php?option=com_newsfeeds&catid=67&Itemid=37
I am assuming that I must be missing something major here as I would think putting RSS feeds weather they be for News or weather anywhere you want on your site would be a basic function. Please, can someone tell me what I have missed? I would love to be able to run a key word driven top stories feed right on the front page but the examples given are "static" article you put in yourself.
Thanks!
Vanight
stingrey
November 7th, 2004, 18:01
Modules -> Site Modules -> Click New -> Parameters tab
vanight
November 9th, 2004, 11:11
Maybe if I ask this more directly it will be easier. What do I do to make an RSS news feed display its results on the front page. I have already bene to the area you described and in fact created multiple feeds, but, how you control where things appear is still confusing to me. How would I put the weather.com thing on the front page but on the right collum and appear right under the polls module.
Thanks!
toubkal
November 9th, 2004, 11:56
go to the module you made for the rss feed.
you will see there is a setting called position. The position setting is used to select the position that you want the module to appear in.
There is also a setting called ordering. If there is more than one module to appear in a given position you can use the setting called ordering to set the ordering of the module.
konlong
November 9th, 2004, 14:03
Maybe a mambot is what you need?
Give it a try, it is new so please inform me by pm if there is a problem.
{kl_rssfeed}full rssURL{/kl_rssfeed}
11/23/04
modified to add controls for printing Channel title and description as well as control for printing an items title or description
11/29/04
changed line 87 to:
print $matches[2].', '.$chtitle.', '.$chdesc.', '.$title.', '.$desc.', '.$items;
April 12 2005
kl_rssfeed is now available in the following thread:
http://forum.mamboserver.com/showthread.php?p=190159
konlong
November 23rd, 2004, 19:42
I have just uploaded a revised version of kl_rssfeed. This newer version allows for the suppression of the rss Chanel's title as well as it's description. Similar parameters are also present for an item or article.
John L
vanight
November 24th, 2004, 06:46
When you say upload do you mean the zip file posted in the post above 2 above this one?
Thanks!
vanight
November 24th, 2004, 07:12
Is there suppose to be some instructions for this?
vanight
November 24th, 2004, 07:26
I successfully upload and installed the Mambot. Now what?
Thanks,
Vanight
antonio
November 25th, 2004, 12:00
Konlang,
I'm trying to use your mambot ...
I know how mambots work...and it installed properly.
Can you please give a explanation as how to use it, I would appreciated.
{kl_rssfeed}full rssURL{/kl_rssfeed}
Thanks, Antonio
konlong
November 25th, 2004, 18:49
How about an example or two:
{kl_rssfeed}http://news.search.yahoo.com/news/rss?p=new+york&ei=UTF-8&fl=0&x=wrt{/kl_rssfeed}
or
{kl_rssfeed chdesc="0"desc="0"}http://news.search.yahoo.com/news/rss?p=new+york&ei=UTF-8&fl=0&x=wrt{/kl_rssfeed}
the second example suppresses the description from both the channel as well as the item.
John L
antonio
November 26th, 2004, 13:39
John,
Thanks for responding however the page is displaying a error.
I did exactly as you said...testing and including the code you provided into content like the below image displays.
Am I missing a step here?
When I publish, I get the below error:
"HTTP Exception: 1 HTTP Transport Error - Unable to establish connection to host news.search.yahoo.com"
Await your comments...thanks Antonio
eyezberg
November 29th, 2004, 08:44
Doesn't work, doesn't parse:
http://axelgap.free.fr/index.php?content/view/18/2/
tried with and without params..
konlong
November 29th, 2004, 12:35
eyezberg - I tried the examples on your link. The first one returned nothing, the second one: {kl_rssfeed items="5"debug="0"}http://www.flashguru.co.uk/FGMX101.rdf{/kl_rssfeed} gave:
# Honda Civic Racing
# Neuro Fuzzy - Flash Blog
# Preloaded Spy Games
# Flash 8 Information
# Awesome Racing Game
silly question, but did you enter the edit phase to publish the mambot?
John
konlong
November 29th, 2004, 12:37
antonio - Try the example located in my comment to eyezberg.
John
eyezberg
November 29th, 2004, 13:06
John,
do you think I'm stupid or what? Well, I am :D
Still haven't gotten used to having to publish bots now :(
Done, now I get errors:
Debug-KL_RSSFEED:
------
items="5"debug="1"
--
Warning: print_r() expects at most 2 parameters, 6 given in /var/www/free.fr/1/6/axelgap/mambots/content/kl_rssfeed.php on line 87
------
Debug-KL_RSSFEED:
------
items="5"debug="1"
--
Warning: print_r() expects at most 2 parameters, 6 given in /var/www/free.fr/1/6/axelgap/mambots/content/kl_rssfeed.php on line 87
Works when removing the debug param, mambojoe's forum feed does not display, have to check that in borwser..
COOL BOT, thanks! ;)
(/me stupid!)
konlong
November 29th, 2004, 19:07
Blush -- line 87 should have been:
print $matches[2].', '.$chtitle.', '.$chdesc.', '.$title.', '.$desc.', '.$items;
I will upload a newer version.
And the publishing difficulty with parameters would not be a problem had the installer been written to include parameters in the DB record at install time.
John L
Kadence
November 29th, 2004, 21:29
Very nice module :) However there seems to be a problem: if you simply put {kl_rssfeed}___feed-address___{/kl_rssfeed}, the page that the mambot is on doesn't work at all; you get a 404. You have to put some parameters in to get it to work. A minor inconvenience, but confusing at first.
sreeraj
December 1st, 2004, 02:48
Hello,
I am new here and have been reviewing different products like Xaraya, LDU, and now I am looking at Mambo. I seem to be having a hard time translating what I am visualizing in my mind to an item in the Mambo control panel. For example I have an RSS link that allows one to display the weather.com box in various styles with the "zip code" form. Its a medium size box that can be horizontal or vertical. What I wanted was to simply have this "box" or item show up on the left or right side Vertically oriented just like the "poll" example include on the Themes or whatever thats included with Mambo. I tried for hours before giving up. I did at one point get it to show up a few links deep from the "news feed" button. See here: http://www.ebooks-free.net/index.php?option=com_newsfeeds&catid=67&Itemid=37
I am assuming that I must be missing something major here as I would think putting RSS feeds weather they be for News or weather anywhere you want on your site would be a basic function. Please, can someone tell me what I have missed? I would love to be able to run a key word driven top stories feed right on the front page but the examples given are "static" article you put in yourself.
Thanks!
Vanight
I saw the link you have given.And second link on your site works fine.
I have one doubt.
Are You using default mambo newsfeed component?
I am not able to get the news using the links given along the mambo 4.5.1a stable package( links like: http://mamboforge.net/export/rss_sfnews.php).
Atleast can you tell me how did the stuff work for you and also, whether i have to do something with the php.ini
eyezberg
December 1st, 2004, 03:26
I changed nothing, all "out-of-the-box"..?!
Or which site do you mean?
vanight
December 1st, 2004, 11:30
Could you possible give step by step instructions on how to use this? Not the installation part, the using part.
Thanks,
Vanight
vanight
December 1st, 2004, 11:31
More specifically could you show how to make a news feed show up on the front page of mambo listing all of the links and stuff in the center area?
Thanks,
Vanight
sreeraj
December 1st, 2004, 20:50
Very nice module :) However there seems to be a problem: if you simply put {kl_rssfeed}___feed-address___{/kl_rssfeed}, the page that the mambot is on doesn't work at all; you get a 404. You have to put some parameters in to get it to work. A minor inconvenience, but confusing at first.
Can you please tell me what parameters are to be put into, inorder to get it worked?
Kadence
December 2nd, 2004, 11:28
Can you please tell me what parameters are to be put into, inorder to get it worked?
Any parameters should do, e.g. {kl_rssfeed chdesc="0" desc="1"}.
bryon
January 9th, 2005, 01:06
Any parameters should do, e.g. {kl_rssfeed chdesc="0" desc="1"}.
i have tried it and it doesnt work. i am using mambo 4.5.1 and published kl_rssfeed.Somebody please tell us
konlong
January 9th, 2005, 03:53
Sorry, I have been missing this thread. I appreciate those who have given support for my work, but let us be reasonable. just saying that you are having difficulty with something is not sufficient, give an example of what it is that does not work. In the case of most mambots it should be easy enough to include the EXACT code you are trying to use. For kl_rssfeed it might just be that your feed link is incorrect. Any way it would let me as well as others test what you are attempting, and it may also give me ideas of what I might do to improve things.
Respectfully,
John
bryon
January 9th, 2005, 07:04
{kl_rssfeed chdesc="0"desc="0"}http://news.search.yahoo.com/news/rss?p=new+york&ei=UTF-8&fl=0&x=wrt{/kl_rssfeed} doesnt work
neither do other feed
gives message HTTP Exception: 1 HTTP Transport Error
thanks in advance
eyezberg
January 9th, 2005, 07:21
Not the bots fault, works fine for me:
http://axelgap.free.fr/index.php?option=com_content&task=view&id=18&Itemid=2
Only thing i added is items="5" and a space between your 2 other params..
bryon
January 9th, 2005, 08:08
i have tried the quick n dirty method by commenting out
<?php echo $currItem->getDescription(); ?> in includes/frontend.html.php and it does work but it wont span the rss feed orderly
hopefully the author of kl_rssfeed or a kind-hearted somebody will include a proper documentation
thank you
jjwe2002
January 18th, 2005, 14:05
Does Any Know if you Can Have multiple RSS feeds into one Module? If so, please let me know how to do it.
thanx
stingrey
January 18th, 2005, 16:22
Does Any Know if you Can Have multiple RSS feeds into one Module? Yous cant.
But you can create multiple modules each displaying different RSS feeds
zedo24
February 10th, 2005, 08:00
I'm trying to put an rss feed on my homepage. I've uploaded and installed the "kl_rssfeed" as I can see it in my "mambots". I published it but I don't know whrere I can specifie "{kl_rssfeed}http://.....".
I can't see it the modules part, only in Mambots...
I'm only starting to use mambot so I'm already say thank you to any help.
bryon
February 10th, 2005, 08:28
Quote:
Originally Posted by aducrejr
I am a newbie and I am not understanding how to use this bot I have it installed and published. If you can provide somw simple steps I would appreicate it. I am not sure were to insert that code
after reading a few mambots' coding, i came to realized u have to published this inside the coding section of a particular news item.
zedo24
February 10th, 2005, 13:19
Thanks for your help.
Now, I want my RSS feed to spread on 100% of the width of my homepage (not 50% like other news).
:confused: So, I just want all my news to appear on my homepage like usually and this RSS like a special news always at the bottom of my homepage. :confused:
I'm waiting for your usefull help
konlong
February 10th, 2005, 13:27
To have it at the bottom spanning the whole width including the left & right cols, is not possible with a 'content' mambot. It would be possible with modification of your template though.
John L
TheWraith
February 15th, 2005, 14:46
I'm having 2 problems with this mambot. First of all, this is what I have defined in a static content item:
{kl_rssfeed}http://mamboforge.net/export/rss_sfnews.php{/kl_rssfeed}
{kl_rssfeed}http://www.mamboportal.com/index2.php?option=com_rss&no_html=1{/kl_rssfeed}
{kl_rssfeed}http://www.mambohut.com/index2.php?option=com_rss&no_html=1{/kl_rssfeed}
Problem 1: CSS formatting is not consistent.
This is how my Mambo newsfeeds display normally:
http://www.packetmonkey.net/component/option,com_newsfeeds/task,view/feedid,27/Itemid,53/
This is how they display with the kl_rssfeed:
http://www.packetmonkey.net/content/view/44/118/
The font and link formatting is off. The bullet points are overlapped, etc. I've tinkered through the radio options in the mambot with no success.
Problem 2: Regular Mambo Newsfeeds for same information "broken".
Since putting the Mamboforge, Mambohut, and Mamboportal RSS feeds into a static content item with the kl_rssfeed mambot, these feeds no longer display correctly with my Mambo Newsfeed links:
http://www.packetmonkey.net/component/option,com_newsfeeds/catid,66/Itemid,53/
Click on each of those three feeds - blank. So, displaying them in static content breaks normal viewing.
TheWraith
February 15th, 2005, 14:51
Problem 3: Channel titles not displayed or linked correctly.
----------------------------------
Display channel title: Yes
Display channel description: No
Display item title: Yes
Display item description: No
Max number of items: 20
Wrap the results in a span: Yes
debug: No
----------------------------------
The first RSS newsfeed title (MamboForge Project News) displays and links fine. The 2nd and 3rd RSS titles are both "Powered by Mambo 4.5.1" and link to:
http://<mydomain>/Mamboportal.com%20-%20A%20Mambo%20Open%20Source%20CMS%20Fansite
~ and ~
http://<mydomain>.net/MAMBO%20HUT%20::%20Mambo%20Templates%20Showcase
Error in action:
http://www.packetmonkey.net/content/view/44/118/
konlong
February 15th, 2005, 19:15
TheWraith -- try posting the feed as a URL to see what the XML looks like, there is a reason RSS titles do not look right. Take this feed :
http://www.mamboportal.com/index2.php?option=com_rss&no_html=1
You will see, if you compare it with a feed which 'works', that the link tag for the title is not in the form of a URL.
As for the problem you cite of the feeds not working in a module after you use the mambot is certainly puzzeling, but I have an idea which I will look into.
BTW; have you cranked up error reporting to see if there might be a hint?
John
TheWraith
February 15th, 2005, 20:56
I'll try combing some non-Mambo feeds to see what the output is. But, I'll also enable debug on viewing the regular Newsfeeds and report it's data.
(shortly)
TheWraith
February 15th, 2005, 21:02
This is from the URL with the Mambohut RSS:
http://www.packetmonkey.net/component/option,com_newsfeeds/task,view/feedid,18/Itemid,53/
88 queries executed
1
SELECT template FROM mos_templates_menu WHERE client_id='0' AND menuid='0'2
SELECT template FROM mos_templates_menu WHERE client_id='0' AND menuid='53' LIMIT 13
DELETE FROM mos_session
WHERE (time < 1108528401)4
SELECT * FROM mos_session WHERE session_id='56535d9fac07243d15b6ced3196cac43'5
UPDATE mos_session SET `time`='1108530201',`userid`='0',`usertype`='',`us ername`='',`gid`='0',`guest`='1' WHERE session_id='56535d9fac07243d15b6ced3196cac43'6
SELECT count(*) FROM mos_stats_agents WHERE agent='Mozilla Firefox 1.0' AND type='0'7
UPDATE mos_stats_agents SET hits=(hits+1) WHERE agent='Mozilla Firefox 1.0' AND type='0'8
SELECT count(*) FROM mos_stats_agents WHERE agent='Windows XP' AND type='1'9
UPDATE mos_stats_agents SET hits=(hits+1) WHERE agent='Windows XP' AND type='1'10
SELECT count(*) FROM mos_stats_agents WHERE agent='net' AND type='2'11
UPDATE mos_stats_agents SET hits=(hits+1) WHERE agent='net' AND type='2'12
SELECT folder, element, published, CONCAT_WS('/',folder,element) AS lookup
FROM mos_mambots
WHERE published >= 1 AND access <= 0 AND folder='editors'
ORDER BY ordering13
SELECT folder, element, published, CONCAT_WS('/',folder,element) AS lookup
FROM mos_mambots
WHERE published >= 1 AND access <= 0 AND folder='editors-xtd'
ORDER BY ordering14
SELECT access FROM mos_menu WHERE id='53'15
SELECT * FROM mos_menu WHERE id='53'16
SELECT name, link, numarticles, cache_time
FROM mos_newsfeeds
WHERE published='1'
AND checked_out='0'
AND id='18'
ORDER BY ordering17
SELECT m.* FROM mos_menu AS m
WHERE menutype='mainmenu' AND published='1' AND access <= '0'
ORDER BY parent,ordering18
SELECT name FROM mos_menu WHERE id='53'19
SELECT id, title, module, position, content, showtitle, params
FROM mos_modules AS m, mos_modules_menu AS mm
WHERE m.published='1' AND m.access <= '0' AND m.client_id='0'
AND mm.moduleid=m.id
AND (mm.menuid = '53' OR mm.menuid = '0')
ORDER BY ordering20
SELECT m.* FROM mos_menu AS m
WHERE menutype='popupmenu' AND published='1' AND access <= '0'
ORDER BY parent,ordering21
SELECT ip,ip_after_proxy FROM mos_yoma_ip_ban where ip_banned=122
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'catsort'23
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'bmsort'24
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'displaymode'25
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'showdisplaymode'26
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'showalphaindex'27
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'alphaindexsep1'28
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'alphaindexsep2'29
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'defaultsearch'30
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'showsearchbox'31
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'showheader'32
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'showheadersort'33
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'showalternate'34
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'nbcolumns'35
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'showurldetails'36
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'showurldetails'37
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'showurl'38
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'showdesc'39
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'showurlimage'40
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'showhits'41
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'showcat'42
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'showrating'43
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'showdate'44
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'showpublisher'45
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'showratingsplit'46
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'catpos'47
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'catshowcount'48
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'catnbcolumns'49
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'catdisplayorder'50
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'subcatsdisplay'51
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'subcatsorder'52
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'showemptycats'53
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'cansubmit'54
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'submitlevel'55
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'submitpos'56
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'submitauto'57
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'submitautolevel'58
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'canvote'59
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'votelevel'60
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'overlibcfg'61
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'urlkey'62
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'urlautocheck'63
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'hitdetail'64
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'protocols'65
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'detailshowtitles'66
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'detailshowurl'67
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'detailshowdesc'68
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'detailshowdetail'69
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'detailshowurlimage'70
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'detailshowhits'71
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'detailshowcat'72
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'detailshowrating'73
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'detailshowdate'74
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'detailshowpublisher'75
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'allowprivate'76
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'markprivate'77
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'directurl'78
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'showdescsplit'79
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'shownoitem'80
SELECT value FROM mos_bookmarks_prefs
WHERE userid = '-1' AND category = 'params' AND name = 'showimagesplit'81
SELECT c.id, c.parent
FROM mos_bookmarks_categories as c
WHERE c.id = -182
SELECT col.*
FROM mos_bookmarks_columns as col
WHERE 1
ORDER BY col.ordering83
SELECT b.*, u.name AS username, bc.title AS cattitle, bc.name AS catname
FROM mos_bookmarks AS b
LEFT JOIN mos_bookmarks_itemcat AS i ON i.itemid = b.id
LEFT JOIN mos_bookmarks_categories AS bc ON bc.id = i.catid
LEFT JOIN mos_users AS u ON u.id = b.created_by
WHERE ((b.published=1 AND b.approved=1) OR b.id IS NULL)
AND b.access <= '0'
AND bc.published=1
AND bc.access <= '0'
ORDER BY b.hits DESC, rand()
LIMIT 584
SELECT DISTINCT b.*, u.name AS username, bc.title AS cattitle, bc.name AS catname
FROM mos_bookmarks AS b
LEFT JOIN mos_bookmarks_itemcat AS i ON i.itemid = b.id
LEFT JOIN mos_bookmarks_categories AS bc ON bc.id = i.catid
LEFT JOIN mos_users AS u ON u.id = b.created_by
WHERE ((b.published=1 AND b.approved=1) OR b.id IS NULL)
AND b.access <= '0'
AND bc.published=1
AND bc.access <= '0'
ORDER BY b.Date DESC, rand()
LIMIT 585
SELECT groups_id,groups_members
FROM mos_docman_groups86
SELECT * from mos_docman WHERE (dmowner='-1' OR dmowner='0') AND (published='1' AND approved='1') order by dmcounter desc limit 387
SELECT m.* FROM mos_menu AS m
WHERE menutype='experimentalcrap' AND published='1' AND access <= '0'
ORDER BY parent,ordering88
SELECT m.* FROM mos_menu AS m
WHERE menutype='opendirectories' AND published='1' AND access <= '0'
ORDER BY parent,ordering
TheWraith
February 15th, 2005, 21:05
NEVER MIND on the issue with built-in Newsfeeds not displaying. I noticed the three Mambo-related RSS items were all labeled as "Checked out" and once I did a "Global check-in", they began working.
Frankly, I think that "checkout" feature needs to go away and be replaced with some manual "lock for editing" checkbox that is clicked/unclicked by the author.
I still have the issue of the formatting of the feed output, however. Text overlapping bullets, must not be paying attention to CSS. Would be nice to have a "Module Class Suffix:" type field to provide specific CSS like the modules have.
konlong
February 16th, 2005, 05:40
I still have the issue of the formatting of the feed output, however. Text overlapping bullets, must not be paying attention to CSS. Would be nice to have a "Module Class Suffix:" type field to provide specific CSS like the modules have.
Would it help to have the feed wrapped in a div ( <div class="xxx"> ) and then have this same class show up in each tag?
John
TheWraith
February 16th, 2005, 09:21
I'll say, "I suppose so", not really knowing if that is the solution or not. Somehow, regular content is wrapped <in some way> and what I'd like to see is the RSS bot behaving in the same way, looking the same, etc.
dwessell
February 16th, 2005, 17:58
{kl_rssfeedchdesc="0"desc="1"}http://rss.cnn.com/rss/cnn_topstories.rss{/kl_rssfeed}
{kl_rssfeedchdesc="0"desc="1"}http://my.abcnews.go.com/rsspublic/fp_rss20.xml{/kl_rssfeed}
{kl_rssfeedchdesc="0"desc="1"}http://rss.msnbc.msn.com/id/3032091/device/rss/rss.xml{/kl_rssfeed}
{kl_rssfeedchdesc="0"desc="1"}http://rss.msnbc.msn.com/id/3032091/device/rss/rss.xml{/kl_rssfeed}
Heyas all. Each of these feeds have more then one story, but only one shows up on the page. I know I'm missing something basic here, can someone point me in the right direction?
Beetle Bailey
February 22nd, 2005, 09:31
I would like to give a big THANK YOU to kolong for the mambot! I have tried every method under the sun to get an RSS feed to showup on the frontpage and NOTHING worked. I absolutely love mambo, but this one thing was driving me nut's.
I do have a couple of question's regarding tweaking the display format. If you view my website at www.88thinfantry.net you can see the current feed (this will change in the future), but what i need to know is how do I change the following:
1. How do I make the font's bigger so the links and summaries are easier to read.
2. The summary tends to wrap the text back around on the left side before the story link. How can I make them line up better so it looks cleaner.
3. How do I set the story summary to start wrapping a few characters before it currently does?
4. How do I have the summary description include more words?
Any help would be greatly appreciated and thanks again Kolong for the mambot, I have already shared it with a ton of people who where trying to accomplish the same thing!
Herr Rau
February 22nd, 2005, 10:41
The mambot works beautifully for me. Just one thing: Is there any way I can display (on my Mambo site) the complete content of an item in an rss feed? That is, I don't want to just publish the 50-word-description (or however long it is), but the complete text of the news item, the one in the <content:encoded> tag.
konlong
February 22nd, 2005, 16:59
{kl_rssfeed chdesc="0"desc="1"}http://rss.cnn.com/rss/cnn_topstories.rss{/kl_rssfeed}
{kl_rssfeed chdesc="0"desc="1"}http://my.abcnews.go.com/rsspublic/fp_rss20.xml{/kl_rssfeed}
{kl_rssfeed chdesc="0"desc="1"}http://rss.msnbc.msn.com/id/3032091/device/rss/rss.xml{/kl_rssfeed}
{kl_rssfeed chdesc="0"desc="1"}http://rss.msnbc.msn.com/id/3032091/device/rss/rss.xml{/kl_rssfeed}
Heyas all. Each of these feeds have more then one story, but only one shows up on the page. I know I'm missing something basic here, can someone point me in the right direction?
Yes in the admin for the mambot set "Max number of items:" to something greater than 1.
John L
Watch this thread, I am about to put up a new version which uses a user specified class to be applied to the various tags generated. The default class is "kl_rssfeed"
konlong
February 22nd, 2005, 17:47
I have uploaded a new version of kl_rssfeed, available on the first page of this thread.
Improvements:
1) will remove itself from content if not published
2) user may now specify the class to be used for the generated HTML tags
3) information button made available for each parameter, which supplies the name of the parameter. The parameter name may be used as an attribute in the individual tag to override the parameter setting.
Enjoy!!
John L
TheWraith
February 23rd, 2005, 11:21
konlong,
Wouldn't it be best to put all your work up at Mamboforge.net so people can find it easier? I know each time someone asks me about RSS newsfeeds it seems odd I have to come search this forum for the latest ZIP file. I would think you'd want a nice central repository for your efforts.
TheWraith
February 23rd, 2005, 12:31
Also, konglong...
I'm not sure what version of your Mambo I'm using because you didn't apparently define a version in the XML - which I would suggestion, but the creation date in the XML states: 09/11/2004
I assume the version I'm using (which serves me well) isn't the most up to date. My question is whether you have addressed a formatting issue in your most up-to-date version. See examples below:
Built-in Mambo Newsfeed component:
http://packetmonkey.net/postimages/rss-mambo.png
Konlong Mambot:
http://packetmonkey.net/postimages/rss-konlong.png
As you can see with item descriptions enabled, with your kl_rssfeed mambot, the bulletpoint doesn't line up properly with the Item title, and centers itself between title and description. Have you found this disparity in your own tests or do I have my personal CSS hacks to blame?
The HTML between the two versions seems identical, no changes in any DIV class names, etc. So, it should be using the same CSS information. Any idea what is causing the display issue?
Edit: Never mind. Found a CSS issue...
whetu
March 12th, 2005, 20:50
I've just been having a play with this mambot and it seems to be going great so far, I was initially having problems with an RSS2 feed with an .xml extension not showing, then I was having random spacing issues. So I checked out the page source and noticed some unneccessary code being injected into the mambot output.
So you know what they say - garbage in, garabage out, the extra code had to be coming from somewhere.
So from within the admin UI, I edited the content item containing the mambot code, all looked fine, so I switched from wysiwyg view to edit html view and noticed a whole bunch of strong tags
So, I suspect that whenever I edited and tweaked the code using wysiwyg, say to enter items="5" for example, the wysiwyg editor was dumping in extra strong tags eg
<strong>{kl_rssfeed <strong><strong>items="5"</strong></strong>chdesc="0"desc="0"}http://www.example.com/rss/rssrules2.xml{/kl_rssfeed}</strong>
which would then throw off the rendering, by removing the extra strong tags:
<strong>{kl_rssfeed items="5"chdesc="0"desc="0"}http://www.example.com/rss/rssrules2.xml{/kl_rssfeed}</strong>
All becomes right.
After doing that, the RSS2 feed I was having trouble with kicked into life, and we're away laughing :)
kenjiman
April 9th, 2005, 05:50
Great mambot konlong.
Im trying to find a way to display source and pubDate for a xml file that looks like the snippet below from your mambot, but I think this adjustment would be in one of the domit files... but cant seem to find it.
Anyone know how I would go about doing this?
<item>
<title>Dubbla förluster för Williams</title>
<description>Dubbla förluster för Williams</description>
<pubDate>Sat, 09 Apr 2005 14:17:02 +0200</pubDate>
<link>http://www.nyhetsportalen.se/visa.php?i=817704&rss=1</link>
<source url="http://sydsvenskan.se/">Sydsvenskan</source>
</item>
konlong
April 12th, 2005, 13:13
I can certainly build this in to kl_rssfeed. I will have a new version up by tomorrow which provides such an option, as well as showing the channels image.
John L
konlong
April 12th, 2005, 18:22
kl_rssfeed is now available in the following thread:
http://forum.mamboserver.com/showthread.php?p=190159
John L
gmbcom
June 27th, 2005, 23:40
I've tried the mambot, but I get everytime a faillure:
Warning: Division by zero in /home/virtual/site89/fst/var/www/html/includes/pageNavigation.php on line 92
Warning: Division by zero in /home/virtual/site89/fst/var/www/html/includes/pageNavigation.php on line 93
What goes wrong?
konlong
June 29th, 2005, 07:41
gmbcom - Please post your question in the thread menioned in my previous post. Also when you post indicate which version of mambo you are using AND the complete text of your use of the mambot.
gmbcom
June 30th, 2005, 00:08
John, I don't know what you mean. Wich previous post should I use? And is my question clear to you? Why can't you answer my question here?
My site www.gertbrouwer.nl uses Mambo 451. I've tried your mambot, but got everytime the faillure I wrote. I used you're latest mambot. What should I do? I don't want to upgrade my site to 452.
konlong
July 1st, 2005, 16:44
John, I don't know what you mean. Wich previous post should I use? And is my question clear to you? Why can't you answer my question here?
While this thread has often been a discussion regarding my kl_rssfeed mambot it is a thread that was started by another individule. I first introduced the mambot here, but have since moved it to http://forum.mamboserver.com/showthread.php?p=190159
which is my own thread and it is my preference to support my work through threads I have started.
As to your problem, all you have presented is an error report, if I am to answer or seek to help you in any way I politely request that you present the code you are using to call the mambot. In this way I, or anyone else can run a test of your particular implementation and then perhaps present an answer.
ramidotcom
October 3rd, 2005, 18:24
konlong, can you tell me how to set the story to diplay the whole text of the artice, not just the short 50 or so word description?
konlong
October 3rd, 2005, 18:47
The whole text of the story is not available in an rssfeed, there is a link that points to the original article, but that link is to fairly ornate HTML pages. However if you want the full text of the description then set the parameter which controls the number of words to some fairly large value.
ramidotcom
October 3rd, 2005, 19:18
konling, i tried that, it doesn work.. thnx for your reply
alfred
January 3rd, 2006, 12:48
Dear Konlong,
First, thank you very much for your script + kl_php. :)
I've a question that you would maybe answer : do you know how to link kl_rssfeed to a mysql database where all the link would be stored ?
for example, we can have today {kl_rssfeed}http://news.search.yahoo.com/news/rss?p=new+york&ei=UTF-8&fl=0&x=wrt{/kl_rssfeed}
Do you know how to have something like :
{kl_rssfeed}Mysql_link01{/kl_rssfeed} where "Mysql_link01" indicate an entry in a mysql database (and so get for the next rss something like "Mysql_link02" , "Mysql_link03" , etc.
Thanks for all
Alfred
vBulletin® v3.6.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.