Recent Topics

[Plugin] Digg Plugin

Started by on Feb 04, 2007 – Contents updated: Feb 04, 2007

Feb 04, 2007 03:00    

Welcome

What is Digg?
Digg is a user driven social content website. Ok, so what the heck does that mean? Well, everything on Digg is submitted by our community (that would be you). After you submit content, other people read your submission and Digg what they like best. If your story rocks and receives enough Diggs, it is promoted to the front page for the millions of visitors to see.

What does this plugin do?
This plugin allows you to easily post new digg articles based on your current post’s information. You can also attach “Digg This!” buttons anywhere within your blog post’s contents. These can link to any existing Digg Story. You can also customize the “Digg This!” buttons to a certain extent.

http://balupton.com/packages/b2evolution/plugins/digg_plugin/Digg%20Plugin%20Preview.gif

Moved / Preview / Download / More Information: [url=http://www.balupton.com/blogs/b2evo?title=the_digg_plugin]here[/url].

Feb 11, 2007 22:13

v1.1.0.0-final has been released, includes some bugfixes, and positioning features.

Feb 12, 2007 01:29

v1.2.0.0-final has been released, includes bugfixes, and the ability to add digg buttons before the post is posted.

Feb 12, 2007 01:32

ohhhhhh I can't wait until tomorrow and version 1.2.0.1-final :D

¥

Feb 12, 2007 01:35

Haha nah this one will be the last one unless there is a feature request or bug report (hopefully neither). Time to move on to the next thing on my roadmap.

Apr 12, 2007 09:29

esanchez wrote:

Could you integrate the Digg bit on the RichTags Plugin?
http://forums.b2evolution.net//viewtopic.php?p=53561#53561

I'm thinking we should keep all the social tagging on one plugin. Otherwise, getting the layout on the skin right will be tough.

Thoughts?

I'm only familiar to a few plugins, so can you explain what the plugin that you want to merge it with does? And who will be the merger? And what would the benefits be... I can't see any point to do it right now...

May 04, 2007 11:07

Hi.

I like this plugin, but as I found out it doesn't work together with the feeds.
At least the rss2-feed does not show up anymore because of trying to close a <content>-tag with a </script>-tag.

I don't know whether this bug is caused by your plugin or by the feeds.

(just installed 1.10 miami)

May 04, 2007 17:49

esanchez,

thank you, I've checked the post. But please help me on the tree - I really don't find the conclusion between the Digg Plugin and the Rich Tag Plugin... Or whatever you want to hint me...

May 04, 2007 19:46

I would use the RichTag plugin which has the Digg functionality. This Digg plugin here gives you the option of showing how many diggs a post has gotten. I don't use it because it doesn't align well w/ my skin.

I use the RichTags one though I haven't used the latest one they posted yesterday.

Jul 28, 2007 01:08

It would be great if the Digg text were as small as the category text. I really don't like how it takes so much space on the page. It is a bit distracting.

Jul 28, 2007 01:25

Which part are you talking about, the actual digg button or the panel that appears when you are writing your post? If you want a small digg button, click the "Compact" checkbox.

Aug 12, 2007 00:03

I installed your digg plugin, but it does not show up in my plugins (V1.10.2). The "digg_plugin" folder is in the plugin folder of my blog.

The plugin categories I have are under available plugins are:
- antispam
- Ping
- Rendering
- skin-tag
- test
- un-grouped

Any suggestions on what I need to change to make your digg plugin work?

Thanks,

RocketDude

Aug 12, 2007 00:08

balupton,

Disregard my previous post -- when I transferred the digg_plugin directory, not all of the files transferred over to my server.

Cheers,

RocketDude

Aug 14, 2007 01:49

Is there a way to add things like digg it, Flickr, etc. that is text based rather than buttons, graphics, etc. So essentially, right below each post it would look something like this:

2 comments | TrackBack | Like this post? Digg It ! | Flickr | whatever else

I am looking for something clean w/o graphics.

Aug 14, 2007 02:38

Eno, Feedburner provides that kind of footer.

Example at comiclist.com.

Aug 14, 2007 02:46

eno, cslepage is on the mark.

Aug 14, 2007 03:40

thanks cslepage and balupton - I use feedburner - hadn't noticed this functionality so I'll go check it out. Thanks!

Aug 14, 2007 03:51

You are welcome!

Just so you know, the code to put Feedflares on a B2E blog is:

Code

<script src="http://feeds.feedburner.com/~s/NAMEOFFEED?i=<?php $Item->permanent_url() ?>" type="text/javascript"></script>

Aug 14, 2007 04:11

which was my next question cslepage - thanks for the code.

From the feedburner instructions, I am to place this code IN the dynamic post? I added it at the bottom of a post but I am geting a parse error message.

Feedburner mentions placing this code in the home page template, which lists all recent posts, and the individual post template - guess I am confused about what they are talking about...???

Aug 14, 2007 04:31

It's going to go in the main.php file of your skin or skins.

For example, here's how the code looks in one of my skins:

Code

<div class="bSmallPrint" >
             <?php $Plugins->call_by_code( 'starrating', array('id' => $Item->ID ) ); ?>
             <?php $Item->feedback_link( 'trackbacks' ) // Link to trackbacks ?>
             <?php $Item->feedback_link( 'comments', "from your own site -- " ) // Link to comments ?>
             <?php $Item->feedback_link( 'pingbacks', ' &bull; ' ) // Link to trackbacks ?>
             <?php $Item->edit_link( ' &bull; ' ) // Link to backoffice for editing ?>
             <?php $Item->trackback_rdf() // trackback autodiscovery information ?>
             <script src="http://feeds.feedburner.com/~s/comiclistcomplete?i=<?php $Item->permanent_url() ?>" type="text/javascript"></script>
</div>

Those Feedburner template instructions are NOT for b2e. Unfortunately, despite all the questions I've posted on their message board, I've never been able to get anyone to make b2e one of the blogging formats in their official instructions. Now that Google has bought them, it's even less likely to happen.

Aug 14, 2007 05:01

I added the code in the _main.php file:

Code

<div class="feedback">
      <?php link_pages() ?>
      <?php $Item->feedback_link( 'comments' ) // Link to comments ?>
      <?php $Item->feedback_link( 'trackbacks', ' &bull; ' ) // Link to trackbacks ?>
      <?php $Item->feedback_link( 'pingbacks', ' &bull; ' ) // Link to trackbacks ?>
      <script src="http://feeds.feedburner.com/~s/MyBlogs?i=<?php $Item->permanent_url() ?>" type="text/javascript"></script>
  </div>

In a post, I added the script at the bottom of the post and get this error message:

Parser error: > required near xhtml1/DTD/xhtml1-transitional.dtd"><body><script src="http://feeds.feedburner.com

things that make you go hummmm...

Aug 14, 2007 05:05

You shouldn't have to add anything to an individual post. When you put that code in the main.php, it will put the Feedflare at the bottom of every post that uses that skin.

Aug 14, 2007 05:21

wicked wierd...

ok, so I modified the _main.php and simply added a new post but when I look at the new post, the feedburner info is not showing. I simply have my post title, "leave a comment" | trackback. No additional stuff from feedburner. I guess I'll play around with it and see what else it could be. I am stumped. :)

Regardless, Thanks for your help!

Aug 14, 2007 05:30

Since Feedburner normally pings web sites once every half hour, sometimes it takes a short while for the footer to show up.

What's the web site so I can take a look?

Aug 14, 2007 05:48

Its funny you mention the ping because I thought that might be the problem - patience is a virtue :)

My blog is at: http://enobytes.org/blog/index.php?blog=2 (and I just removed the trackback momentarily due to major spamming moments ago).

I deleted the test post but I can add it back if that helps. Thanks for going the extra mile cslepage! Its not necessary, but I really appreciate the help.

Aug 14, 2007 05:59

You are very welcome.

For the trackback spam I recommend the Trackback DNS IP Checker plugin.

Do you have Feedflare enabled for this feed in your Feedburner settings?

Aug 14, 2007 07:10

yes, feedflare is enabled (active).

..and I have installed something called the DNSBL Antispam a few days ago which claims to checks the user's IP address against a list of DNS blacklists, but I am still getting a lot fo spam. Is this the same plugin or is it diferent from the one you suggest?

Aug 17, 2007 12:09

Eno, I saw the topic you started on the Feedburner forum.

http://forums.feedburner.com/viewtopic.php?t=15749

Sorry they basically gave up.

I do have a question for you. This is a typical permanent URL for one of your blog posts:

Code

http://enobytes.org/blog/index.php?blog=2&title=pagliuca_s_has_its_best_days_behind_it&more=1&c=1&tb=1&pb=1

I've never seen a B2E URL like that. I thought the typical one would have the date and then the title, but yours has "blog=2", "title=", "&more=1&c=1&tb=1&pb=1"... any idea why? I think the nature of the permanent URL is the hangup here.

As for the advice the Feedburner people gave, I believe they are saying, given your current URLs, the feedburner script would look like:

You want this:

Code

http://feeds.feedburner.com/~s/EnobytesBlogs?i=<?php $Item->permanent_url() ?>%26more=1%26c=1%26tb=1%26pb=1

For example, on a message board of mine, my feedburner script looks like:

Code

<script src="http://feeds.feedburner.com/~s/smileysmile?i=', $scripturl, '/topic,', $context['current_topic'], '.msg', $message['id'], '.html%23msg', $message['id'], '" type="text/javascript" charset="utf-8"></script>

I just wish I knew why your permanent URLs have all the extra characters.

Aug 17, 2007 19:44

Eno & cslepage,

You can change how links appear on b2evo.

Go to the App Settings tab, and under the "Link options" check the box for "extra-path info"

Use extra-path info:
Recommended if your webserver supports it. Links will look like 'stub/2003/05/20/post_title' instead of 'stub?title=post_title&c=1&tb=1&pb=1&more=1'.

Aug 21, 2007 04:31

Thanks esanchez and cslepage. I'll give your suggestions a whirl and report back. Thanks!

Sep 02, 2007 05:51

Button doesn't show up in Firefox :(

Sep 02, 2007 21:25

Go to the firefox error console and does anything show up?

Sep 03, 2007 18:13

I don't see anything that specifically references this plugin

Sep 22, 2007 14:27

I'm using b2evolution 1.9.3. I got FeedFlare to work a while back, but only by checking the 'Use extra-path info' box under App settings in the back office. Thing is, I have to keep this box unchecked, or else the category system for blogs other than the main blog get screwed up (I have a number of different blogs on the same site). What happens is that clicking on links to posts just leads to an empty page instead of to the right post. This is because the part of the address signifying which blog the post is in gets left out if extra-path info is used. For example, here's an address without extra-path info:

http://www.badthinking.com/blog/index.php?blog=10&title=honour_killings_in_syria&more=1&c=1&tb=1&pb=1

But with extra-path info, the blog=10 part gets left out, and the system thinks all posts are in the main blog. Any idea what to do about this?

Sep 22, 2007 16:02

Mine is showing up now btw. I think my NoScript updated and it was blocking it.

Nov 28, 2007 08:27

Howdy! Great plugin, I really love how it works.

I have been playing with the positioning of the DiggIt buttons, and I decided that I actually liked to put a seperator line in the article and the DiggIt button to the right of it. It gives it a nice clean look as you can see in the current top post at my site http://www.stonesavage.com/

What I would like to know is where in the plugin might I make a change to the code so that I could have the plugin put the lines (just dash marks) in for me instead of me having to put them in every time? Thanks in advance!

Dec 10, 2007 22:52

balupton;

I have been trying to install your Digg plugin. I am running b2 2.2. It installs OK, but then I cannot check the Digg checkbox and the button does not do anything. Any thoughts? Thanks (hope I did not miss something simple).

Jun 19, 2008 04:04

Daethian2,

have you considered using something like addthis.com or sharethis.com?

Both services are free and really easy to integrate into your skin. Both services allow you to see what people click or bookmarked. Plus they also give you access to other social bookmarking tools.

Check out my blog to see how sharethis.com works. I used to use bookmark this until sharethis came out with the cool 'Email this" tab.

Check out this article too see the bookmark at work:
http://www.thechristianalert.org/index.php/2007/10/03/buddhism101?blog=8

Jun 19, 2008 21:30

edgar-
could give me/us some insight on how you integrated your share this button in your posts automatically? where did you put the code that's given? is it in the index.main or elsewhere?

i've been using the bae social bookmakrs but lately its been giving me some trouble am looking at alternatives.

thanks in advance.

Jun 20, 2008 01:30

jack376,

definitely. You get a code block from sharethis or addthis and then you put that in your index.main.php file.

In my case, I am putting mine right next to the author and in the comments section.

So mine is right below:

PHP

$Item->authorarray(
                        'before'    => ''.T_(' by').' ',
                        'after'     => ' ',
                    ) );
                                
            ?>

<!-- start ShareThisCode -->
<script type="text/javascript" >
code from sharethis or addthis
<!-- End ShareThisCode -->

And then right above the comments bit at the end of the post:

PHP

skin_include'_item_feedback.inc.php'array(
                        'before_section_title' => '<h4>',
                        'after_section_title'  => '</h4>',
                    ) );

Jun 20, 2008 03:40

I think I like that better than the Digg plug in AND my TagBlitz. It's a little clearer as to it's function.

Thanks !!

PS... where do I get the code to insert? i joined sharethis but don't see a code snippet

Jun 22, 2008 16:23

Fantastic Edgar Gracias!!


Form is loading...

Build your own website! – This forum is powered by b2evolution CMS, a complete engine for your website.