Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#109 2009-08-31 11:37:17

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

Re: asv_tumblelog

also getting mysql errors:

A problem occured while loading the plugin: asv_tumblelog -> User_Warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '
						uid             = '850dca7b4a50824015b59a4d466bfead',
						feed_time    ' at line 21
insert into textpattern set Title           = 'My title',
						Body

using version 1.6.1 of the plugin with Txp 4.2.0

and anyone who has used this plugin successfully – I want to get a georss feed from Flickr – is it possible to grab the lat/long with this? I’d like to store them in a custom field in each article to generate a map

thanks

Last edited by nardo (2009-08-31 11:37:34)

Offline

#110 2009-08-31 11:58:37

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

Re: asv_tumblelog

I got 1.6.2 and it works

Last edited by nardo (2009-08-31 14:45:46)

Offline

#111 2009-09-01 05:46:31

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

Re: asv_tumblelog

// Check and retrieve date
if($pubdate!='')
{
$dateTaken = $feeditem->get_item_tags('http://purl.org/dc/elements/1.1/', 'date.Taken');
print_r($dateTaken[0]['data']);
die("not yet implemented");
}
elseif($feeditem->get_date()) {
$out["posted"] = $feeditem->get_date('U');
$when = "from_unixtime(".$out['posted'].")";
}
else
{
$when = 'now()';
}

The first IF condition is testing for Flickr EXIF information (the date the photo was taken) – I would like to use this as the date for articles imported into Textpattern.

Has it not been implemented? Doesn’t work for me. Can anyone with PHP chops assist?

Here is the SimplePie documentation for get_feed_tags() … and here is an example of relevant item in a Flickr feed:
<dc:date.Taken>2009-08-30T13:32:59-08:00</dc:date.Taken>

I’m guessing the date will also need to be reformatted to match Txp’s posted field format.

Offline

#112 2009-09-01 11:16:34

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

Re: asv_tumblelog

Getting the feed item tags/categories is a big feature request.
Feed item tags/categories should be added to the keywords field by default.

It would be great if asv_tumblelog offers a possibility to map item tags to article fields.


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

Offline

#113 2009-09-01 13:06:34

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

Re: asv_tumblelog

SimplePie can get_item_tags (I linked erroneously to the get_feed_tags info above) and it looks like the plugin author considered it in this specific case (Flickr and useful EXIF data) … been copying & pasting php and hoping to stumble on a working solution but no joy yet

Offline

#114 2009-09-01 14:48:26

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

Re: asv_tumblelog

@nardo You can/should always first try a stand alone SimplePie installation and try to get all features you want via PHP in a form. When the PHP is working you should send asv_tumblelog author the code.

The stand alone demo installation for multiple feeds included in the SimplePie download was very helpful a couple of years ago when I tried to create a solution myself.


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

Offline

#115 2009-11-01 15:41:42

subdued7
New Member
From: Netherlands
Registered: 2009-11-01
Posts: 1
Website

Re: asv_tumblelog

Having the same problem as zoltandragon:

Fatal error: Call to undefined function: pagetop() in /some/path/to/site/textpattern/lib/txplib_misc.php(574) : eval()’d code on line 1213

Didn’t see a solution in the topic yet, anyone has an idea on how to fix this?

Edit: problem(s) solved. thanks for a great plugin!

Last edited by subdued7 (2009-11-03 20:28:23)

Offline

#116 2010-01-19 14:16:31

Daragh
Member
From: Toronto Canada
Registered: 2004-05-26
Posts: 60
Website

Re: asv_tumblelog

Anyone have a suggestion for how to phrase the cron job? I’m totally new to cron, and I have every other aspect of this all figured out, so that’s the only thing left to get working.

Should I be using wget, or is there a better way?

Offline

#117 2010-01-19 16:00:19

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

Re: asv_tumblelog

@Daragh You can also use loads of free cron services on the net if you don’t want to fiddle around with your crontab o your server.

Just hand over the URL of your working update URL.

And yes, wget or curl ca be used to get URLs via cron.


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

Offline

#118 2010-01-19 17:12:35

Daragh
Member
From: Toronto Canada
Registered: 2004-05-26
Posts: 60
Website

Re: asv_tumblelog

Thanks, merz1, that’s great advice. Had no idea there were free services out there!

Offline

#119 2010-01-21 13:54:20

Daragh
Member
From: Toronto Canada
Registered: 2004-05-26
Posts: 60
Website

Re: asv_tumblelog

OK so it’s up and totally kicking butt. This is an amazing plugin, and I’m now able to do stuff I’ve wanted to do for a couple years now.

Anyway, the one thing that isn’t working properly is the URL-only title field isn’t getting populated, which means permalinks don’t work until you go in and manually enter something in this field. I see a couple other people were having this problem too; anyone figured out a solution yet?

Offline

#120 2010-01-21 18:42:39

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

Re: asv_tumblelog

You are talking about populating the custom field for the source URL? ‘Source Link Field’?

If Yes, your Q looks like a FAQ item. Some people have problems to understand that the ‘feed item URL’ does not automagically migrate to a ‘TXP article permalink’.

Textpattern: You must define a custom field eg “Source Link Field” for the original URL which will not be the permalink for the TXP article!
asv_tumblelog: The TXP custom field “Source Link Field” must be mapped to Source Link Field in general settings.
Textpattern: Use the custom field “Source Link Field” in your article form

<a title="Bookmark links to: <txp:custom_field name="Source Link Field" />" 
href="<txp:custom_field name="Source Link Field" />" rel="bookmark">Anchor text</a>

That’s the example code which I use to get a working link from the custom field.

If you replace “Anchor text” with <txp:title /> you will have a nice article title which will send your visitors to the original site.

What’s your form?

Last edited by merz1 (2010-01-21 18:55: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