Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#91 2010-04-13 16:44:37

bojay
Member
Registered: 2010-04-13
Posts: 11

Re: aks_rss : RSS parser and aggregator

For now I’ve written my hosting company (not my ISP) asking for a setting in my setup or method to ensure that the string returned by $path_to_site is a prefix I can use to hit and contact the (.inc) files in the sub-directories.

Feedback from the host:
They state that the $path_to_site is something I’ve control over myself .. ie: I’ve set the variable (somewhere) or TXP has gotten the path wrong somehow and set the variable. The host have no problem in that php-var containing the correct url to the site.

So .. does anyone know where to set that variable manually / correct it ?
I’m guessing it’s part of txp’s internal variable-set.

The site hasn’t been moved since install and I’m 100% sure I havn’t entered the ../httpd.www… adress.

Hoping that the variable resides in some ini file somewhere, but would love to get feedback from others who’ve had to manually overwrite $path_to_site

Thanks again !!
/Bo

Last edited by bojay (2010-04-14 20:39:50)

Offline

#92 2010-04-14 21:31:46

bojay
Member
Registered: 2010-04-13
Posts: 11

Re: aks_rss : RSS parser and aggregator

Through PhpMyAdmin I’ve found the database entry called “path_to_site” in the txp_prefs table, wich contains the /customer/…./httpd.www string.
I’ve changed it to be: http://papskubber.dk but once I run the diagnostic I’m hit with an error stating that http://papskubber.dk/index.php isn’t accable. (I would very much thing is was so .. ) but the diagnose writes the path as I would imagine it to be right.

The funny thing is that after I run the site or the diagnostic once the variable gets reset back to
$path_to_site: /customers/papskubber.dk/papskubber.dk/httpd.www

So textpattern donsn’t just read the string.

But for what it’s worth I guess it tells me that the plugin isn’t the faulty bit here :-)

Offline

#93 2010-04-15 12:54:43

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: aks_rss : RSS parser and aggregator

@bojay As this issue seems to become pretty off topic here (for this aks_rss thread) I recommend to open a (one!) new thread in a general forum. Oh, and don’t forget to search/grep your local configuration files, TXP documentation & forum for “$path_to_site”. Maybe you find a solution faster this way.

  1. Just start a thread with an appropriate title, “How and where to fix wrong TXP $path_to_site on server” comes to my mind.
  2. Then describe the problem and link to the first comment (here) where the issue starts so that others can get an overview.
  3. Comment here with a link to the new thread so that we know where to find you :)

I guess this is the right approach to find help for your specific issue inside this TXP forum.

Last edited by merz1 (2010-04-15 12:56:25)


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#94 2010-05-31 21:49:42

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,188
Website GitHub

Re: aks_rss : RSS parser and aggregator

Very nice makss! Used it for the first time today and had no problems pulling in a facebook feed and formatting it to match the rest of the site.

One idea: Would it be possible to use aks_rss_short as a container tag in the form, e.g. <txp:aks_rss_short words="25"><txp:title /></txp:aks_rss_short>? The facebook writers of the feed I accessed have not been very consistent, so sometimes there are posts with no title, sometimes with 2-3 lines, sometimes with 5 paragraphs!! For the moment I just edited the source so that shortdesc also applied to the title field.


TXP Builders – finely-crafted code, design and txp

Offline

#95 2010-06-01 11:42:14

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: aks_rss : RSS parser and aggregator

jakob So you are asking for a complimentary shorttitle attribute?

Did you edit the simplepie.inc to achieve title shortening?
AFAIK this feature is not available in the original.

Last edited by merz1 (2010-06-01 11:42:35)


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#96 2010-06-01 11:51:49

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,188
Website GitHub

Re: aks_rss : RSS parser and aggregator

Did you edit the simplepie.inc to achieve title shortening?

No, I changed line 199 in the aks_rss source to read:

$out['title'] = aks_rss_short($item->get_title(), $shortdesc);

analog to the similar lines for body and excerpt a couple of lines further down. I noticed from looking at the code that makss has already made a standalone function aks_rss_short, so I wondered whether that could simply be used in the form so you can shorten whatever you wish.


TXP Builders – finely-crafted code, design and txp

Offline

#97 2010-06-01 12:32:20

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: aks_rss : RSS parser and aggregator

@jakob Nice find!

If it works fine in your case I think this is a goog & valid feature request and easy to implement :)


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#98 2010-07-20 13:45:50

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: aks_rss : RSS parser and aggregator

sometimes the plugin throws the error: A feed could not be found at…
but if i go to the feed i see it’s a live page. is there a conditional for when this happens to deactivate the plugin and not throw the error?

Offline

#99 2010-07-20 14:50:57

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: aks_rss : RSS parser and aggregator

I’ve seen the error too. Not sure what causes it, but after some reseach, I think it’s addressed in newer versions of SimplePie library. Hopefully, makss could find the time to update the plugin to use latest version of SimplePie. :)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#100 2010-07-22 01:39:56

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: aks_rss : RSS parser and aggregator

maniqui wrote:

I’ve seen the error too. Not sure what causes it, but after some reseach, I think it’s addressed in newer versions of SimplePie library. Hopefully, makss could find the time to update the plugin to use latest version of SimplePie. :)

is there another plugin you recommend in the meantime? there was a simplepie plugin but i couldn’t even get that activated. i am thinking of using something like YQL now.

Offline

#101 2010-07-22 02:25:52

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: aks_rss : RSS parser and aggregator

What about smd_xml?


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#102 2010-09-09 10:37:06

Katalonian
Member
From: Baku, Azerbaijan
Registered: 2010-04-18
Posts: 219
Website

Re: aks_rss : RSS parser and aggregator

Hello guys.
i want to use, but i get an error;

when i use <txp:aks_rss feed=“something.xml”> i get an error in same place, where i want to view output:

The form for aks_rss could not be found

when i use inline (<txp:aks_rss> something.xml </txp:aks_rss>) i get error in head:

Ошибка тега: <txp:aks_rss> -> Warning: file_get_contents(http:) [function.file-get-contents]: failed to open stream: No such file or directory on line 7853

file_get_contents could not read the file

Simplepie plugin for txp dont work for me at all, only errors.

i use simplepie version which is incliuded to pack of this plugin, also i tried last vers. of simplepie. NOTHING!

pls help!

Last edited by Katalonian (2010-09-09 10:37:31)


<txp:txp_me />

Offline

#103 2010-09-09 11:03:31

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: aks_rss : RSS parser and aggregator

Which feed?
Does the feed validate? Check here
Did you try the SimplePie demo page
etc, etc


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#104 2010-09-10 14:58:27

Katalonian
Member
From: Baku, Azerbaijan
Registered: 2010-04-18
Posts: 219
Website

Re: aks_rss : RSS parser and aggregator

I try.
this feed:
http://www.workpermit.com/files/immigration_workpermit_news_rss_feed.xml

demo and validate are OK


<txp:txp_me />

Offline

#105 2010-09-10 15:10:42

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: aks_rss : RSS parser and aggregator

I did a temporary test with SimplePie Plugin 1.2.2.
I hope you can see the article preview:

<txp:feed>http://www.workpermit.com/files/immigration_workpermit_news_rss_feed.xml</txp:feed>

(edit: deactivated link) test (saved as draft, will be deleted again)

Result: The SimplePie plug-in doesn’t throw errors.

Can somebody validate the test with aks_rss?

Last edited by merz1 (2010-09-10 18:04:30)


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

Board footer

Powered by FluxBB