Digg.com plugin for Konqueror

Utilities

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
7.6
Description:

A Konqueror plugin that adds an icon in the statusbar used to toggle a docked article submission window for the Digg.com website. URL and Title fields can automatically be filled as you surf the net and the list of selectable Digg categories is configurable.

FEATURES:
Single-click show/hide Digg submission window that docks in the corner of each HTML view frame.
Automatically set URL and Title fields, fill body with text selection, and open pages in new tabs if configured that way.
All current Digg topics are available and new topics can be added in case Digg.com adds more in the future.

KNOWN ISSUES:
No internationalization.

TODO:
Maybe add inline human verification and pre-submission article duplicate search capability in the future.

All Digg graphics are copyrighted by Digg.com (with which I have no affiliation) and are licensed under a Creative Commons Attribution-ShareAlike 2.5 license.
For more information, visit http://creativecommons.org/licenses/by-sa/2.5/

Digg API icon pack available here:
http://diggtheblog.blogspot.com/2006/07/integrating-digg-within-your-website.html
Last changelog:

12 years ago

* Fixed bug causing the body input of the submission window to disallow selecting text after having selected website text beforehand.
* Fixed some typos.
* Make this note that Alt+D is the shortcut for the Submit button.
* Make body input begin with selected text when window created (but not toggled).
* Set up basic project page for any issue tracking, etc. http://code.google.com/p/konqplugindigg/

agittins

12 years ago

Cool, works on x86_64 as well, except the install puts the plugin at /usr/lib/kde3 when it should go into
/usr/lib64/kde3 - I just linked them there manually but ideally configure should identify the correct location.

Report

roderick

12 years ago

Here's an ebuild for gentoo users:

# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit kde

DESCRIPTION="Digg.com Konqueror Plugin"
HOMEPAGE="http://www.kde-apps.org/content/show.php?content=44287"
SRC_URI="http://www.kde-apps.org/content/files/44287-konqplugin_digg.tar.bz2"
RESTRICT="nomirror"
LICENSE="GPL"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}"

S="${WORKDIR}/konqplugin_digg"

need-kde 3.5
need-qt 3.6

src_compile () {
econf || die "configure failed"
cd ${S}/src
make libkonqplugin_digg.la
cd ${S}
emake || die "emake failed"
}

Report

ArneBab

12 years ago

Thanks a lot!

This really saved time!

Report

roderick

12 years ago

The floating Digg box appears cut off in my install. Any recommendations on how to fix?

Report

roderick

12 years ago

I made the following patch and now I can see the buttons on the bottom correctly.

--- konqplugin_digg/src/diggpluginwidgetbase.ui 2006-08-15 20:28:32.000000000 -0230
+++ konqplugin_digg/src/diggpluginwidgetbase.ui 2006-08-17 14:36:14.000000000 -0230
@@ -8,8 +8,8 @@

0
0
- 343
- 240
+ 443
+ 340




Also need to add this to ebuild in a PATCHES line for the gentooers.

Report

roderick

12 years ago

Ignore previous...

It contained HTML chars and got hoofed in post.

Use this one...


--- konqplugin_digg/src/diggpluginwidgetbase.ui 2006-08-15 20:28:32.000000000 -0230
+++ konqplugin_digg/src/diggpluginwidgetbase.ui 2006-08-17 14:36:14.000000000 -0230
@@ -8,8 +8,8 @@
<rect>
<x>0</x>
<y>0</y>
- <width>343</width>
- <height>240</height>
+ <width>443</width>
+ <height>340</height>
</rect>
</property>
<property name="caption">

Report

roderick

12 years ago

I'm an idiot. Ignore the patch. It does not fix it.

Here's what I found.

If I click the home icon on desktop (it loads the Konqueror file browser profile) and then browse to a web site, all works as exected.

If I click on Konqueror icon (it loads the web browser profile) and this is where it is cut off and broken.

Any ideas?

Report

C

KDEfanboy

12 years ago

Hmm, I've tried some profiles and I can't get anything like this. Try emailing or on freenode sending me a konqueror profile and perhaps a screenshot and I'll see if I can replicate it. Any other Gentoo users experience it? Does it stay in that relative position even after resizing? In the meantime, I don't know what could cause the part width() to return different responses for different profiles.. so you might try explicitly calling adjustSize() on the new widget, and/or increase the timeout to reposition the widget. Something like,

--- plugin_digg.cpp.old 2006-08-18 01:08:25.000000000 -0600
+++ plugin_digg.cpp 2006-08-18 01:20:18.000000000 -0600
@@ -54,7 +54,7 @@ PluginDigg::~PluginDigg()

bool PluginDigg::eventFilter(QObject *object, QEvent *event)
{
- if (m_diggPluginWidget && event->type() == QEvent::Resize) QTimer::singleShot(0, this, SLOT(slotSetDiggPluginWidgetPosition()));
+ if (m_diggPluginWidget && event->type() == QEvent::Resize) QTimer::singleShot(1000, this, SLOT(slotSetDiggPluginWidgetPosition()));
return KParts::Plugin::eventFilter(object, event);
}

@@ -64,6 +64,7 @@ void PluginDigg::slotToggleDiggPluginWid
if (m_diggPluginWidget) m_diggPluginWidget->setShown(!m_diggPluginWidget->isVisible());
else {
m_diggPluginWidget = new DiggPluginWidget((QWidget*)(m_part->widget()->parent()), "digg");
+ m_diggPluginWidget->adjustSize();
connect(m_diggPluginWidget, SIGNAL(submitUrl(const KURL &)), SLOT(slotSubmitUrl(const KURL &)));

setWidgetPosition(m_diggPluginWidget);

Report

jrepin

12 years ago

Thanks for a usefull tool like this. I use digg.com quite a lot lately and this tool sure makes it more convenient to use it. BTW I have submited a storry about this tool to digg.com:
http://digg.com/linux_unix/Digg_com_plugin_for_Konqueror

Report

C

KDEfanboy

12 years ago

Yw! I've been wanting to Digg but I needed something first to make it all easier in my browser of choice. :P Glad to see another find it useful too! Thanks for the digg; if it's useful to more Konqueror diggers, I'm glad for that too. :)

Report

12 years ago

* Fixed bug causing the body input of the submission window to disallow selecting text after having selected website text beforehand.
* Fixed some typos.
* Make this note that Alt+D is the shortcut for the Submit button.
* Make body input begin with selected text when window created (but not toggled).
* Set up basic project page for any issue tracking, etc. http://code.google.com/p/konqplugindigg/

12345678910
product-maker Count:16 Rating: 7.63
File (click to download) Version Description PackagetypeArchitectureRelease Channel Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
version
1.01
updated Aug 15 2006
added Aug 15 2006
downloads today
0
page views today 3
System Tags app software
+