Page 1 of 1

DIGG badge not displaying

Posted: Sun Dec 16, 2007 6:46 am
by RJH
I am using the plugin to show links to DIGG, Technorati, etc at the bottom of each article and one of the options is to have the DIGG badge displayed before or after the article. The DIGG badge does not display at all no matter what I select.

I am using Bulletproof 1.2 and Serendipity 1.2.

Any ideas?

Posted: Sun Dec 16, 2007 5:27 pm
by RJH
Make that Serendipity 1.2.1 as I updated it last night. Still the same problem though.

Posted: Mon Dec 17, 2007 12:17 am
by garvinhicking
Hi!

The digg badge will only get displayed, if you have URLs in your blog article that point to any Digg.com URL. If your entry does not contain any of those links, no digg badge is displayed because it would contain no data.

Do not mix up the digg badge and the digg icon, that one is being displayed via the plugin_findmore.tpl template file (and is shown on your site). This icon allows people to bookmark your actual URL. The badge is only there to show how many diggs a link has that you referred to.

Regards,
Garvin

Posted: Mon Dec 17, 2007 1:16 am
by RJH
Ok, I see. I added a link in the post back to the Digg page and it displays the badge. But in the plugin it has the option on placement for the badge of before or after the article.

That does not seem to be working as no matter what I choose, the Digg badge is after the article and actually looks like it is for the next article.

Posted: Mon Dec 17, 2007 10:53 am
by garvinhicking
Hi!

The problem lies in the description of the plugin. With "before entry" it actually means to place the digg count badge BEFORE any other plugins in the footer, and "after entry" as the last footer element. This is important when multiple event plugins (like freetag etc.) add their output.

There's no way to place the digg badge before the entry with the current coding of that plugin. You could try to change that coding, by editing serendipity_event_findmore.php and search for:

Code: Select all

if ($diggCountPlacement == 'before-entry') {
    $eventData['display_dat'] = $diggCountData . $eventData['display_dat'];
   }
change that to:

Code: Select all

if ($diggCountPlacement == 'before-entry') {
    $eventData['body'] = $diggCountData . $eventData['body'];
   }
HTH,
Garvin