Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: RRasco on January 03, 2007, 09:38:01 AM

Title: Digg Topic
Post by: RRasco on January 03, 2007, 09:38:01 AM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=591)
Rate this Mod (http://custom.simplemachines.org/mods/index.php?action=review;sa=add;mod=591)

This mod adds a 'Digg this Topic' button at the top of each topic for easy submittal to Digg.com.
Title: Re: Digg Topic
Post by: scorpiious on January 04, 2007, 10:51:50 PM
nice but doesnt work on other themes
Title: Re: Digg Topic
Post by: RRasco on January 05, 2007, 10:46:02 AM
All mods are designed to be installed on the default theme.

Read This (http://www.simplemachines.org/community/index.php?topic=34526.0)

Also, if you are installing for a different theme, you may want to change the colors on the button, here is a Fireworks 8 PNG file you can edit.

Digg Button PNG (http://s170193323.onlinehome.us/Downloads/digg-button.zip)


EDIT: There is not a local button anymore, it is a Digg widget.
Title: Re: Digg Topic
Post by: geezmo on January 17, 2007, 04:16:47 AM
Any screenshot or actual example of this mod?
Title: Re: Digg Topic
Post by: RRasco on January 18, 2007, 04:13:11 PM
here is a screenshot...

(http://sh119.surpasshosting.com/~smfgarag/images/diggtopic_screenshot_thumb.jpg) (http://sh119.surpasshosting.com/~smfgarag/images/diggtopic_screenshot.jpg)
Title: Re: Digg Topic
Post by: geezmo on January 18, 2007, 06:07:10 PM
Cool. Thanks.
Title: Re: Digg Topic
Post by: tsmalmbe on April 02, 2007, 05:21:59 PM
Did did somehow rework their submission-form? This doesn't work. Always goes to phase 1, and nothing is prefilled
Title: Re: Digg Topic
Post by: RRasco on April 02, 2007, 05:24:03 PM
just tested it and it works for me.   test it with the demo link provided above.
Title: Re: Digg Topic
Post by: RoarinRow on April 02, 2007, 06:10:16 PM
Quote from: RRasco on April 02, 2007, 05:24:03 PM
just tested it and it works for me.   test it with the demo link provided above.

Off topic, but where did you get the 'Garage' mod?  Our truck club needs something like that   8)
Title: Re: Digg Topic
Post by: tsmalmbe on April 02, 2007, 06:38:36 PM
Quote from: RRasco on April 02, 2007, 05:24:03 PM
just tested it and it works for me.   test it with the demo link provided above.

The digg-service does a reverse-lookup on your domain name. My testsite is not in a public DNS, and thus couldn't be reversed. Works on my production site like a charm.
Title: Re: Digg Topic
Post by: RRasco on April 03, 2007, 10:59:03 AM
Quote from: RoarinRow on April 02, 2007, 06:10:16 PM
Quote from: RRasco on April 02, 2007, 05:24:03 PM
just tested it and it works for me.   test it with the demo link provided above.

Off topic, but where did you get the 'Garage' mod?  Our truck club needs something like that   8)

well, this thread is for the completed Digg mod.  SMF Garage is another mod I am currently developing.  It does not have a public release yet, but I see you already signed up at SMFGarage.com, so just stay tuned there for updates.
Title: Re: Digg Topic
Post by: RoarinRow on April 03, 2007, 11:00:44 AM
Quote from: RRasco on April 03, 2007, 10:59:03 AM
Quote from: RoarinRow on April 02, 2007, 06:10:16 PM
Quote from: RRasco on April 02, 2007, 05:24:03 PM
just tested it and it works for me.   test it with the demo link provided above.

Off topic, but where did you get the 'Garage' mod?  Our truck club needs something like that   8)

well, this thread is for the completed Digg mod.  SMF Garage is another mod I am currently developing.  It does not have a public release yet, but I see you already signed up at SMFGarage.com, so just stay tuned there for updates.

Will do, thanks!   8)
Title: Re: Digg Topic
Post by: markn26 on April 09, 2007, 12:21:48 PM
It doesn't work :(
Title: Re: Digg Topic
Post by: RRasco on April 09, 2007, 12:23:06 PM
are you using the default theme?  define 'doesnt work'.
Title: Re: Digg Topic
Post by: markn26 on April 09, 2007, 12:26:06 PM
I'm not using the default theme - isn't there any way to get it to work on other themes? I really want this plugin. Thanks
Title: Re: Digg Topic
Post by: RRasco on April 09, 2007, 12:27:54 PM
yes, but you will have to figure out where to place the DIV in your theme's display.template.php
Title: Re: Digg Topic
Post by: markn26 on April 09, 2007, 12:55:15 PM
Thanks RRasco, I can probably figure that out after taking a look.
Title: Re: Digg Topic
Post by: RRasco on April 09, 2007, 12:55:42 PM
np.
Title: Re: Digg Topic
Post by: ArkServer on April 09, 2007, 01:21:45 PM
Quote from: markn26 on April 09, 2007, 12:26:06 PM
I'm not using the default theme - isn't there any way to get it to work on other themes? I really want this plugin. Thanks

the only thing you need to do (if the install ifself went correctly..) is to change your theme template.
Title: Re: Digg Topic
Post by: tsmalmbe on April 10, 2007, 01:03:43 AM
Quote from: markn26 on April 09, 2007, 12:26:06 PM
I'm not using the default theme - isn't there any way to get it to work on other themes? I really want this plugin. Thanks

There are ways of course. Just open the mod, have a look at the xml and add the digg-link into whatever theme you are  using. THis is probably the easiest mod to  add manually. I ended  up with a digg button for musiconica that really has nothing in common with this mod after playing around with it. It's just a link, nothing else.
Title: Re: Digg Topic
Post by: abda53 on May 29, 2007, 05:32:49 AM
This does not work with SEO4SMF.. how do i get the SEO URL into the link to Digg?
Title: Re: Digg Topic
Post by: RRasco on May 29, 2007, 10:51:26 AM
Quote from: abda53 on May 29, 2007, 05:32:49 AM
This does not work with SEO4SMF.. how do i get the SEO URL into the link to Digg?

well, im not sure, since i dont use that mod at all.  you are gonna have to figure out what variable holds its value, and i dont know since the SEO mod probably changes that.
Title: Re: Digg Topic
Post by: Joshsux on July 07, 2007, 07:01:02 AM
how about a 1.1.2 update eh?!?!?!?!?!
Title: Re: Digg Topic
Post by: RRasco on July 09, 2007, 11:02:46 AM
I'll update it soon enough.  Probably going to add the smaller long digg button they have now, but I am working on a much larger mod right now that I am almost finished with, which currently has priority over this one.
Title: Re: Digg Topic
Post by: RiderRaghav on July 11, 2007, 09:20:26 AM
Just installed it on 1.1.3 v .....it works like a charm ...

Thanks ;)
Title: Re: Digg Topic
Post by: RRasco on July 11, 2007, 10:15:45 AM
Quote from: riderraghav on July 11, 2007, 09:20:26 AM
Just installed it on 1.1.3 v .....it works like a charm ...

Thanks ;)

I assumed it would, never tried though.  It should work with all 1.1.
Title: Re: Digg Topic
Post by: RiderRaghav on July 12, 2007, 12:41:55 AM
Quote from: RRasco on July 11, 2007, 10:15:45 AM
Quote from: riderraghav on July 11, 2007, 09:20:26 AM
Just installed it on 1.1.3 v .....it works like a charm ...

Thanks ;)

Yeah thanks ...it works fine with me :)

I assumed it would, never tried though.  It should work with all 1.1.
Title: Re: Digg Topic
Post by: AtariKid on August 15, 2007, 02:28:57 PM
Awesome! Would it be too much hassle for someone to make it compatible for SMF 1.1 RC1?  Our programmer disappeared and if we upgrade, we'd scrap a lot of extra additions.
Title: Re: Digg Topic
Post by: RRasco on August 15, 2007, 02:29:39 PM
Quote from: AtariKid on August 15, 2007, 02:28:57 PM
Awesome! Would it be too much hassle for someone to make it compatible for SMF 1.1 RC1?  Our programmer disappeared and if we upgrade, we'd scrap a lot of extra additions.

Have you tried installing it on RC1?
Title: Re: Digg Topic
Post by: AtariKid on August 15, 2007, 02:32:40 PM
Yes.

QuoteThe package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Title: Re: Digg Topic
Post by: RRasco on August 15, 2007, 02:33:53 PM
Ah, I see.  That is just because the package says 1.1.1 and not 1.1.  You can open up the package file and change it, or wait for me to update this mod; which may be possibly next week since I should be finishing up my bigger mod this week.
Title: Re: Digg Topic
Post by: AtariKid on August 15, 2007, 02:35:50 PM
I wouldn't know what to change, so I can wait for your expertise. Thank you RRasco.

Best Regards.
Title: Re: Digg Topic
Post by: JoshieDaMan on August 22, 2007, 09:42:36 AM
Is there a 1.1.3 version of a mod for this?
Title: Re: Digg Topic
Post by: RRasco on August 22, 2007, 10:28:54 AM
Quote from: riderraghav on July 11, 2007, 09:20:26 AM
Just installed it on 1.1.3 v .....it works like a charm ...

Thanks ;)

According to riderraghav it works on 1.1.3.
Title: Re: Digg Topic
Post by: glennk on August 22, 2007, 12:00:20 PM
Installed fine on 1.1.3.

Button doesnt really stand out though. I had to search for it and I knew it was there - somewhere. Will the users see it ?
Title: Re: Digg Topic
Post by: RRasco on August 22, 2007, 12:01:52 PM
I guess that depends the user.  I am planning on updating it with an integrated DIGG button that will keep count of the diggs.  That is in due time though, I'm working on something much bigger right now.
Title: Re: Digg Topic
Post by: glennk on August 22, 2007, 12:03:00 PM
Actually just realised it doesnt work for me. The button is redirecting back into the topic.
Title: Re: Digg Topic
Post by: RRasco on August 22, 2007, 12:03:49 PM
What is the URL it is linking to?
Title: Re: Digg Topic
Post by: ragots on August 30, 2007, 02:22:30 AM
My forum is embedded in joomla. When a user click on digg logo, it gives him the standalone url. How could I make it so it gives him the embeded url ?
Title: Re: Digg Topic
Post by: RRasco on August 30, 2007, 11:14:33 AM
You would have to look at the code and figure it out.  This gets the URL from SMF so unless Joomla is passing that URL to SMF, it obviously won't get it.  I do not have Joomla and have no experience with it, so I can't advise you on that.
Title: Re: Digg Topic
Post by: RRasco on November 21, 2007, 01:30:39 PM
The mod has been updated to use the new integrated Digg button that will track the number of diggs and display them in the button.
Title: Re: Digg Topic
Post by: RRasco on November 30, 2007, 09:20:59 AM
I have updated the package again, I found a bug where the subject needed characters to be escaped to work in the js.  Newest package is 2.1.
Title: Re: Digg Topic
Post by: AtariKid on November 30, 2007, 01:18:49 PM
Do any of the updates include SMF 1.1 RC1?
Title: Re: Digg Topic
Post by: RRasco on November 30, 2007, 01:20:06 PM
IDK, try it.  It will tell you if it won't install.
Title: Re: Digg Topic
Post by: AtariKid on December 04, 2007, 07:54:38 AM
Quote from: RRasco on November 30, 2007, 01:20:06 PMIDK, try it.  It will tell you if it won't install.
It's a no go.
Title: Re: Digg Topic
Post by: RRasco on December 04, 2007, 09:59:27 AM
Quote from: AtariKid on December 04, 2007, 07:54:38 AM
Quote from: RRasco on November 30, 2007, 01:20:06 PMIDK, try it.  It will tell you if it won't install.
It's a no go.

It may just be that the package is not setup to install on that version.  Extract the package to a folder, and open up package-info.xml.  In that file, you need to add 1.1 RC1 to the version list.

Replace:
<install for="1.1 RC3, 1.1, 1.1.0-1.1.99">
<readme>ReadMe.txt</readme>
<modification type="file">digg-topic.xml</modification>
</install>

<uninstall for="1.1 RC3,1.1, 1.1.0-1.1.99">
<modification type="file" reverse="true">digg-topic.xml</modification>
</uninstall>

With:
<install for="1.1 RC1, 1.1 RC3, 1.1, 1.1.0-1.1.99">
<readme>ReadMe.txt</readme>
<modification type="file">digg-topic.xml</modification>
</install>

<uninstall for="1.1 RC1, 1.1 RC3,1.1, 1.1.0-1.1.99">
<modification type="file" reverse="true">digg-topic.xml</modification>
</uninstall>


Then re-package the files and you should be set to go.  Well, it will at least run the test to tell you if it will work or not, but if the version doesn't match your current version it won't even run the test, it will just tell you it is a corrupt package or an incompatible version.
Title: Re: Digg Topic
Post by: MATTEK on June 10, 2010, 02:30:53 PM
I would absolutely love this for RC3.