Yii Framework Forum: Linkback Extension - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Linkback Extension Pingback and Trackback clients/servers for blogging applications Rate Topic: -----

#1 User is offline   Yeti 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 97
  • Joined: 30-May 09

Posted 04 June 2010 - 11:05 AM

I have just added the Linkback extension that provides Pingback and Trackback clients and servers for blogging applications.

The client side is a behavior that is attached to and called from the controller that displays posts.

The servers are implemented in a controller.

To suit as many applications as possible single and multiple blog schemas are supported, blog (in muti-blog applications), post and feedback models are defined in the configuration, as is the attribute mapping of the feedback model onto the server.

I hope it proves useful. :D
0

#2 User is offline   Yeti 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 97
  • Joined: 30-May 09

Posted 20 June 2010 - 12:08 PM

I have just added V2.0 of the Linkback extension.

This changes the clients to a filter that is applied to the controller/action that displays individual posts. Using a filter greatly simplifies adding the auto-discover code to the post (thanks to Qiang for pointing this out).

It is strongly recommended that anyone using V1 changes to V2 of this extension.
0

#3 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 06 December 2010 - 08:23 AM

It's not working for me. :)

Here's my controllerMap configuration entry:
	'controllerMap' => array(
  	'linkback' => array(
    	'class' => 'ext.linkback.controllers.linkbackController',
    	'uriRegex' => '([a-z0-9]+(-[a-z0-9]+)*)'
  	)
	),

The regex matches the slug of the post. slug is used as id.

Here's the filter in my post controller:
	public function filters() {
    	$filters = array(
        	'accessControl', // perform access control for CRUD operations
    	);
    	$post = $this->getPost(); // must return empty if no matching post
    	if (!empty($post)) {
        	$filters[] = array(
            	'ext.linkback.filters.LinkbackGenerator + show',
            	'post' => $post,
            	'route' => $this->createAbsoluteUrl('post/view'),
            	'params' => array('slug' => $post->slug),
        	);
    	}
    	return $filters;
	}


I fail to see anything put in the header - I don't need to do that if I'm using the filter, right?
"Less noise - more signal"
0

#4 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 06 December 2010 - 08:24 AM

I also want to know: how do I test this?
"Less noise - more signal"
0

#5 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 08 December 2010 - 08:46 AM

D'oh!
Not good:
'ext.linkback.filters.LinkbackGenerator + show',
'route' => $this->createAbsoluteUrl('post/view'),

Good:
'ext.linkback.filters.LinkbackGenerator + view',
'route' => $this->createAbsoluteUrl('post/view'),


Consider updating the instructions.

Now I get those 'things' in my header.
One small step forward.

However, I don't get any pings (or pongs for that matter)..

Anyone got any hints, tips, tricks? :rolleyes:

"Less noise - more signal"
0

#6 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 08 December 2010 - 11:18 AM

Now I am trying with this uriRegex:
/^(\/post\/view\/[-_a-zA-Z0-9]+)/

...
"Less noise - more signal"
0

#7 User is offline   Yeti 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 97
  • Joined: 30-May 09

Posted 30 March 2011 - 05:15 AM

V3.0 of the Linkback extension is released, along with a manual that provides configuration and usage details, API, and example code.

V3 improves separation of the client and server functionality, simplifies configuration and usage, and introduces events on a linkback being registered.

I hope you find it useful for your project.
0

#8 User is offline   InLoveWithYii 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 07-February 11

Posted 09 October 2011 - 05:02 PM

View PostYeti, on 30 March 2011 - 05:15 AM, said:

V3.0 of the Linkback extension is released, along with a manual that provides configuration and usage details, API, and example code.

V3 improves separation of the client and server functionality, simplifies configuration and usage, and introduces events on a linkback being registered.

I hope you find it useful for your project.


Hey Yeti,
Nice Extension thou I am still having trouble getting it functional, Your documentation is excellent except for more detail in the examples. maybe you could show how to get this working in the blog example provided in the default Yii installation.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users