DIGG badge not displaying

Creating and modifying plugins.
Post Reply
RJH
Regular
Posts: 58
Joined: Sat Dec 09, 2006 2:38 am
Contact:

DIGG badge not displaying

Post 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?
www.thatpoliticalblog.com

Calling illegal aliens immigrants is like calling a burglar a house guest.
RJH
Regular
Posts: 58
Joined: Sat Dec 09, 2006 2:38 am
Contact:

Post by RJH »

Make that Serendipity 1.2.1 as I updated it last night. Still the same problem though.
www.thatpoliticalblog.com

Calling illegal aliens immigrants is like calling a burglar a house guest.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
RJH
Regular
Posts: 58
Joined: Sat Dec 09, 2006 2:38 am
Contact:

Post 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.
www.thatpoliticalblog.com

Calling illegal aliens immigrants is like calling a burglar a house guest.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply