Issue I ran into with Drupal 6.x are that trackbacks to Wordpress require an additional parameter ('tb' => 1) in order to be accepted, or else the whole HTML page is returned. As far as I can see nothing would impact as the trackback standard, for what it's worth, states to ignore any non recognizable fields. Therefore the following could be added for Wordpress trackback support in the following location...

source: drigg.module,v 1.1.2.30 2008/07/26 02:30:52, listing from line 933:
function drigg_send_trackback_ping($url, $nid) {

  drigg_debug_msg("SENDING PING TO $url");
  // Set the parameters
  $params_url = url('node/'. $nid, NULL, NULL, TRUE);
  $site_name = variable_get('drigg_trackback_ping_blog_name', '');
  $params = array(
    'title' => variable_get('drigg_trackback_ping_title', ''),
    'excerpt' => truncate_utf8(trim(  
      t( variable_get('drigg_trackback_ping_excerpt', ''), array(
        '!url' => $params_url,
        '!site_name' => $site_name,
      )),
  'tb' => 1     // ADDED for Wordpress trackback support
    ), 255),
    'blog_name' => $site_name,
    'url' => $params_url
  );

  .
  .
  .

is the addition of 'tb' => 1

This change to the Drupal 6.x trackback source was investigated and tested by myself once I noticed that one of my own Wordpress sites did not accept trackbacks from a Drupal 6.x site. So I tested the two with debug messages in order to understand what the difference was. Once changed I could see the trackback response coming from Wordpress. Let me know if you have any questions.

Comments

alank’s picture

mercmobily’s picture

Hi,

Ah, THIS is what it was!!!!!!
Drigg is in codefreeze right now. However, it will be a _pleasure_ to add this to the code.

Thank you,

Merc.

alank’s picture

ARG WAIT!!! I totally messed up. :(

function drigg_send_trackback_ping($url, $nid) {

  drigg_debug_msg("SENDING PING TO $url");
  // Set the parameters
  $params_url = url('node/'. $nid, NULL, NULL, TRUE);
  $site_name = variable_get('drigg_trackback_ping_blog_name', '');
  $params = array(
    'title' => variable_get('drigg_trackback_ping_title', ''),
    'excerpt' => truncate_utf8(
			trim(  
      	t( variable_get('drigg_trackback_ping_excerpt', ''), array(
        	'!url' => $params_url,
        	'!site_name' => $site_name)
				)
			), 255),
    'blog_name' => $site_name,
    'url' => $params_url,
    'tb' => 1
  );

Added at the wrong place, caused my site to crash, so has to go bottom of that list not where I put it here. :(

Terribly sorry.

mercmobily’s picture

Hi,

We'll have to wait for the end of the code freeze... it won't be long, but it might take a couple of weeks!

Merc.

alank’s picture

No rush, take your time, patched my code for the time being. Just mentioned it for the other users out there and hopefully save time for others.

Now if only I could find how to edit my above post to correct that code...

alliax’s picture

I added the thing in drigg.module (drigg 5) like this:

'blog_name' => $site_name,
    'url' => $params_url,
    'tb' => 1
  );

but it simply didn't work any better, I activated the trackback in drigg.

everything is fine from my side, but it is simply not working. I see a lot of discussion about this trackback feature not working, but nobody has found a real solution. This tb thing is simply not working. Can I have an url which actually receives and print trackbacks from a drigg install ? I'd like to try it !

wwwoliondorcom’s picture

Version: 5.x-1.10 » 6.x-1.x-dev

Hi,

It doesn't work on my Drupal 6 website, is it supposed to work on Drigg 5 and Drigg 6 ?

Thanks.

philbar’s picture

Not sure if the maintainer wants to go in this direction, but relying on the Trackback module to provide this functionality will ensure it works well in the future. That is the whole point of Drupal after all...modularity.

#481112: Depreciate Drigg Trackback Functionality in favor of Trackback/Pingback Module

mercmobily’s picture

Hi,

Philbar: I will look into it. It's been months, but I remember having _very_ compelling reasons why I couldn't use Trackback.
I will have a look at the submission process and will let you know...

Bye,

Merc,

siopk’s picture

Is it possible to use pingback with drigg?
If not please try to make it for trackback