Path

ez.no / developer / contribs / applications / ez trackback


eZ TrackBack

Author Version Downloads Compatible with
Łukasz Serwatka 1.0.1 1049 3.7
This extension provides TrackBack functionality for eZ publish. The central idea behind TrackBack is the idea of a TrackBack ping, a request saying, essentially, "resource A is related/linked to resource B." A TrackBack "resource" is represented by a TrackBack Ping URL, which is just a standard URI.

Description

Installation instructions are in eztrackback/doc/INSTALL file.

Changelog

1.0.1
- Fixed typo.

1.0
- Initial release

Comments

Trackback workflow event not showing

I followed instruction to install on 4.3.0 site and get stuch when I shall add a workflow even of type trackbac. That type does not appear in the pull-down list.

Have I missed something? THe event type seems defined in the ini file.

re: 4.x Compatibility

Hi Peter,

I have setup project on http://projects.ez.no/eztrackback it should be available soon once approved. I will commit current code to trunk then you might request membership and get access to SVN for that project and commit your changes.

4.x Compatibility

If anyone is interested, I've fixed eZ Trackback for use with eZ Publish 4.x (and the newer Services_Trackback, as proposed by Nate Parsons). Should I post it as new contribution?

RE: re: Code Update

You haven't come around to it, Łukasz, have you? I'd really like to get this extension to work. On my installation, it doesn't do anything at all at the moment.

re: Code Update

At the time of writing this extension everything was working as expected. I'm aware of update that Tobias made to Services_Trackback class, but I haven't time to update this extension. Thus is might be not compatible with latest release of Services_Trackback.

I will include your changes and move this extension to projects.ez.no during weekend.

re: confusion

This extension was made before the Website Interface, thus only Weblog package was available at that time with "weblog" class. So documentation is outdated.

You have to extend "blog_post" class as that is used for posting blog messages in Website Interface.

Code Update

Hey Yo,

I kept running into a fatal error using the .61 Services_Trackback pear module you're using for this. I modified your code in eztrackback/eventtypes/event/eztrackback/eztrackbacktype.php file around line 85 as follows:




// Prepare data for trackback


           $data['id']        = $object->attribute( 'main_node_id' );


           $data['title']     = strip_tags( $dataMap['title']->DataText );


           $data['excerpt']   = preg_replace('/\s+/', ' ', strip_tags( $dataMap['message']->DataText ) );


           $data['excerpt']   = ( strlen( $data['excerpt'] ) > 200 ) ? substr( $data['excerpt'], 0, 197 ) . '...' : $data['excerpt'];


           $data['url']       = 'http://' . $siteURL . '/content/view/full/' . $object->attribute( 'main_node_id' );


           $data['blog_name'] = $trackbackINI->variable( 'TrackbackSettings', 'WeblogName' );


           $aOptions['fetchlines'] = $fetchLines;


           $aOptions['httpRequest'] = array( 'useragent' => 'eZ Publish');


 

           $trackback = new Services_Trackback();


 

           foreach ($data as $k => $v)


           {


              $trackback->set($k,$v);


           }


           $trackback->setOptions($aOptions);




Basically the ::create method wasn't returning a full valid trackback object (importantly it did not have the "set" method, causing a fatal error down around line 93 when it called $trackback->set. This quick change seems to have fixed that.

Thanks!
Nate

confusion

when you say "extend your weblog class" do you mean the class that contains the post themselves, or the class that the posts all live under? I'm using the blog stuff from the ezwebinterface extension as the base parts of my blog and I'm a little confused as to which to modify? It seems like it would be best if it were the "blog" class and not the "blog_posts" class that it pulled this info from?

Thanks!

Not working?

Has anybody got this extension to work? I think the workflow doesn't run through (although I did everything according to the instructions).

log in or create a user account to comment.

Contribution info (stable)

Download