Social bookmarking allows users to submit, comment on, and “promote” websites. The Gregarious plugin supersedes the Digg This Reloaded Plugin and allows for seamless integration between your Wordpress Blog and social bookmarking sites such as Digg.com, Del.icio.us, Reddit and more. Requiring no editing of templates, and a simple point and click interface, Gregarious is the ultimate social bookmarking plugin for Wordpress.
Due to time constraints, I cannot guarantee support for this plugin.
Not compatible with WP 2.5.
Dynamic Buttons
I’m Diggin’ it
Gregarious uses the brand new Digg APIs to generate a dynamic ‘Digg It’ button on your post that shows the number of Diggs and allows the user to Digg post. No manual work is needed - the plugin knows when a post has been ‘dugg’ and sticks the button onto your post with no effort, leaving you free to write quality content. That’s right. Just activate it, and watch your traffic shoot through the roof.
Have you reddit?
Another great social bookmarking site that features dynamic buttons is Reddit. Again, integration is no hassle. Just turn on the Reddit button from the Gregarious options page, and you’re laughing. No manual labor, no long and complicated PHP scripts, and no coding. One click and you’re away!
More Features
Wow, could Gregarious possibly have more features? You betcha! As well as merely adding Digg and Reddit buttons, Gregarious has the following nifty additions:
General Features
- Complete admin interface with options regarding all configurable aspects of plugin including styles, display options (show on post, page, home, etc.) Digg link style (button, image or text link), and more.
- Check for updates automatically so you’re never out of date.
- No template customizations or coding knowledge necessary as the plugin handles everything for you, and then some.
- Choose the position of the buttons. Do you want them before or after your post content?
Digg related features
- Uses the brand new Digg API to generate dynamic buttons.
- Gregarious automatically knows if your post has been “Dugg” using DiggDetect™.
- You decide what to show for posts which have been Dugg or those which are yet to be Dugg. You can customize the links, show a dynamic or compact badge, an image - or choose not show anything.

- Configurable “What’s this?” link, so your users know exactly what they’re up against.
- Ease up on the bandwidth by using a text link instead of an image or Digg button if you need to.
Reddit integration
- Choose between three styles of buttons, from the eye-candy laden to the minimalistic.
- Customize the position of the button easily from the options page.
- Easy to use with no work required.
Other social bookmarking sites
- Submit your post to heaps of bookmarking sites with Alex Kings’s Share This plugin built right into Gregarious (it comes integrated - no further installation needed).
- Take advantage of further customization with options for Share This in the Gregarious admin panel.
- Add, remove, edit or rearrange social sites for the Share This plugin - an indispensable feature.
Download
Version 1.9.xx
Gregarious can be downloaded from the WordPress.org Gregarious page. (The link below points to the download from that page)
Installation and Usage
How do you install Gregarious, the ultimate social bookmarking plugin for Wordpress? It couldn’t be easier. After downloading the package, Unzip. Upload. Activate.
The options menu should show up in your administration under Options -> Gregarious. Here’s a screenshot:
If you wish to add social sites for Share This, you’ll need to CHMOD the akst.js and akst.css files to 777. Don’t worry if you don’t know what this means or can’t do this - Gregarious has alternative methods to cope.
Configuration
The plugin will work fine immediately after activation, but you may want to change some options to customize it. Gregarious can be configured from the Options tab of the administration panel in Wordpress. Just click on the Gregarious Options link. As mentioned earlier, there are a plethora of options and choices available, so feel free to tweak it to your needs.
Frequently Asked Questions
I installed and activated Gregarious, but the Digg button / Share link isn’t showing on my posts.
Gregarious uses different modules to provide all the features for your site. The PostBadge
module is the one that appends content to your posts. If there isn’t anything showing on your posts, make sure that the PostBadge module is turned on, as well as the modules for whatever features you want. (For example, the Share This module shows the Share link, and the Digg button module shows the Digg button or link). Activating a module will also add options to the Gregarious options page so you can configure it.
The Share This link takes me to a separate page. How do I get the popup dialog to show?
To show the Share This
popup on your site rather than linking to a Share This page, you need to ensure:
- That there is a
<?php wp_footer(); ?>call somewhere in the footer.php file of your template. - That there are no javascript errors on your site (due to your template or theme).
- That there is a
<?php wp_head(); ?>call somewhere in the header.php file of your template. And that you’re either running WordPress 2.1 or above or have prototype.js referenced in theGregarious no longer requires prototype.js<head>section of the page.
Generally, it’s the lack or misplacement of the <?php wp_footer(); ?> call that causes the popup not to show. If you still can’t get it working, ask me.
Template Integration
Currently, Gregarious’ feature-set includes various template tags that have been set up to be easy to use and integrate into any theme. Whether you’re a WordPress theme developer, or interested in more precise integration of social bookmarking to your blog, ask me about it.
Copyright © 2006-07 Ankur Kothari. All rights reserved.

1219 Comments so far
Leave a commentThe plugin looks really cool, so I tried installing it. After I activated it on the admin page, my site stopped working, and began returning a incomplete page. I looked at the apache2 logs and this is what I found:
[Mon Dec 04 23:14:01 2006] [error] [client 74.136.192.200] PHP Parse error: syntax error, unexpected $end in /var/www/theronge.com/docs/wp-content/plugins/gregarious/gregarious.php on line 531
[Mon Dec 04 23:14:03 2006] [error] [client 66.249.72.44] PHP Parse error: syntax error, unexpected $end in /var/www/theronge.com/docs/wp-content/plugins/gregarious/gregarious.php on line 531
Any thoughts? I’m guessing my setup is b0rked, any suggestions on where to start?
Thanks,
Matt
professed by Matt Ronge on December 5, 2006 5:17 pm | Permalink
What’s weird is that there is no variable $end in the script. Could there be any other plugins interfering with Gregarious, especially other social bookmarking plugins?
professed by Ankur on December 5, 2006 8:36 pm | Permalink
Hey man I’m having trouble with your plugin I was hoping you could help me.
See I run Fatadam.com and was wondering how do I position the before digg this item and the digg number button after where I want.
Ya see on my site I want the Digg This story near the other digg this story which I plan to remove later because I’ve been using notable (another plugin)
Thanks for your help if any.
-Adam
revealed by Adam on December 6, 2006 6:34 pm | Permalink
Adam, to position the plugin manually in your template, go the options page for Gregarious. Under Auto-append, uncheck “Enable automatic append of links to posts.” Then you can position the plugin somewhere in your template using the following php code:
<?php show_digg_button(); ?>
and the button will show up. Most settings from the options page will still be applied.
To change the image of the Digg button you can go to the “Undugg posts” section of the Digg.com settings and change the URL for “Button to use (if Digg option is button)”.
Hope that helps.
(btw, you need to upgrade to version 1.5.1 for this. Download by clicking check for updates through your options page or from the above download link).
professed by Ankur on December 7, 2006 7:23 am | Permalink
Do you anticipate adding the fine tuning (auto-append) for the “Share this” component of the plugin. It would be good if I could easily keep both off of pages with a click of a box.
Darrell
declared by Schulte on December 8, 2006 1:30 pm | Permalink
Hi Darrell,
If you want to stop the links showing on your pages, simply find this section in the options page:

You can uncheck “Individual Wordpress pages” and you’re set.
voiced by Ankur on December 8, 2006 3:19 pm | Permalink
Ankur,
I have that checkbox unchecked already. When it’s enabled I see both Digg button and the “Share This Story” link…when I uncheck it, the Digg button goes away but the sharing link still appears.
revealed by Schulte on December 9, 2006 12:08 am | Permalink
Ankur,
I see you have, starting on line 52, a commented out section that appears to handle some of the controls for the sharing link…would it make sense to just include that within the digg_button_hook so that wherever digg button goes…either before or after the content, so goes the share link? You wouldn’t need to re-use the same code twice.
Darrell
disclosed by Schulte on December 9, 2006 12:34 am | Permalink
I’m slowly adding Share This into the Gregarious plugin, so they act as one. When that happens, there will only be one content hook. There is the problem of updates to Share This though, and how they’ll be integrated into the plugin at a later date.
stated by Ankur on December 9, 2006 10:47 am | Permalink
I get exactly the same error as the first comment. It cant be any other plugins causing the problem because I dont have any others installed.
As soon as I activate the plugin everything stops.
Did he get it working ?
divulged by jon on December 10, 2006 10:42 am | Permalink
I get the same error with all previous versions of Digg-this reloaded as well
I am using Php5.2.0 and the WP 2.0.5
voiced by jon on December 10, 2006 10:49 am | Permalink
Jon, it can’t be the plugin, as it’s being used all over the net, and on my own server. Which theme are you using? I’m very curious about this error, since there is no $end on line 531, let alone anywhere in the script.
reasonded by Ankur on December 10, 2006 11:24 am | Permalink
Great plug in. But why is the digg butoon in three pieces with not text? Ex: cspencerbeggs.com/clips/
Screencap here: cspencerbeggs.com/diggbroken.jpg
recorded by Spencer on December 13, 2006 11:08 pm | Permalink
When I use Gregarious, only the digg button shows up with no What’s this link, or a reddit link.
Also, if my story has been dugg, a red ERROR: Not Found message shows up in place of the badge.
It seems like Gregarious is a promising plugin!
professed by Mattthew Willis on December 14, 2006 4:46 pm | Permalink
Great plugin! Just one small problem. For some reason I’m not getting the dynamic button showing the total number of diggs for my stories. The reddit button’s working fine, but I always see the default ‘digg this’ button.
mentioned by kirk on December 15, 2006 9:41 am | Permalink
I am using the tiga theme, and the Share This box isn’t showing up, though the other ones are. Any thoughts?
http://www.derekperkins.com
recorded by Derek Perkins on December 18, 2006 4:13 pm | Permalink
default theme, no plugins. as soon as its activated, everything stops working.
reasonded by jon on December 21, 2006 3:38 am | Permalink
Jon, Digg has been updated recently. The new digg doesn’t work with Gregarious (I had the same problem). For that matter, I don’t think any digg plugin still worked after the update.
proclaimed by SeoxyS on December 21, 2006 5:15 am | Permalink
Seoxys this was prior to the recent digg website update, but thanks anyway.
posted by jon on December 21, 2006 7:03 am | Permalink
2 things….
I see the above post about nothing working on Digg was dated yesterday…does that mean theres no use in even playing with this Plugin until dude comes back from India and can maybe tweak his code? Or does it still work?
Also, I tried installing this a few days ago and it works great, but the options section will not save…it just takes me back to the general options page and the values are all at default…
any idears???
James
reasonded by james on December 23, 2006 3:45 am | Permalink
How does this function with previously Dugg posts?
posted by John on December 23, 2006 8:40 am | Permalink
Dude awesome plugin (too bad it doesn’t work though)!
Any chance on encorporating the new digg/podcast features?
Keep the good stuff coming!
uttered by Sneaker Peet on December 28, 2006 8:52 pm | Permalink
I’m having the same problem mentioned by Kirk (a couple of comments up). I only ever see the Digg This button, the total number of digs doesn’t show up. I am not using the auto-append, because I have included the tag as part of my theme, could this be the problem. Has anyone found a solution?
voiced by Dean on December 31, 2006 8:35 pm | Permalink
I keep getting an error when I try to activate the plugin:
Parse error: syntax error, unexpected $end in /home/xavisys/www/blog/wp-content/plugins/gregarious/gregarious.php on line 618
You can view my phpinfo if it helps: http://xavisys.com/temp/phpinfo.php
professed by AaronCampbell on January 3, 2007 8:38 am | Permalink
I switched back to diggclick. If you get it worked out, I’m interested!
professed by AaronCampbell on January 4, 2007 12:07 am | Permalink
I found the error that was causing the $end problem that has been reported on here a few times. The script uses short open tags (a practice that is discouraged by pretty much everyone, including Wordpress). Replace
stated by AaronCampbell on January 6, 2007 3:34 pm | Permalink
Hi an dthanks for the plugin. Few teething problems I am having with it though, first when I save any changes in the admin panel I get:
Fatal error: Call to undefined function curl_init() in g:..mysite\wp-content\plugins\gregarious\gregarious.php on line 29
Also I cannot fathom how to get delicious etc as a link, cannot get anything to show when I click share this? What should I put in the share this link txt box? Cheers
disclosed by Simon on January 8, 2007 6:13 am | Permalink
oh, a followup - one thing of note is that the first story was dugg after i had installed gregarious. the other story was dugg before i’d installed it. not sure if that has any bearing on it.
expressed by Paul Theodoropoulos on January 9, 2007 4:33 am | Permalink
heh. i figured it out. the only way the icon gets toggled is if you go to digg, then follow the digg link back to the article. since it had been something like a week since the article had been submitted to digg - and it wasn’t terribly popular - nobody had followed the link on digg.com back to it. once i did so, the link changed. now it makes sense. so…..never mind! ;^)
professed by Paul Theodoropoulos on January 11, 2007 6:21 am | Permalink
I’m having the same problem: i never see the number of diggs, i alwaus see the ‘digg this button’! Could anyone help me?
posted by michipu on January 11, 2007 9:13 am | Permalink
Hi,
Getting Fatal error: Call to undefined function: curl_init() in htdocs/wp-content/plugins/gregarious/gregarious.php on line 29
after saving the options in Admin. Also, the plugins text or image link disappears after the page has been submitted to Digg.
Please advise. Thank you!
Chris
recorded by Chris on January 14, 2007 8:53 am | Permalink
Nice work, easy enough to set up. The Share this link doesn´t appear (theme Blix 0.9.1) and the Reddit buttons don´t aling well. Turned off the div wrap styling, that´s a task for another day.
I do understand this correctly, Share this is integrated, I don´t need to install it separetely, right?
http://www.sealandblog.com
stated by Sailor Tom on January 16, 2007 3:57 am | Permalink
I’m having the same problem as Derek above: The Digg button shows up, but not the Share This button. I’m using the Sea theme. This theme has no single.php file, only index.php; could that be causing problems?
disclosed by Lisa on January 16, 2007 9:26 am | Permalink
Ok, I’m back.
Just to make it clear, I’m using Gregarious on this site with just the Digg button turned on and it’s working 100%. If my Digg button works, there’s a serious problem with the plugin. If you’re not getting it to work, tell me what’s happening, and if you’ve done that, please wait till I sort through all the comments that have been posted while I was gone.
For all the people who are getting the submit to Digg link perpetually displayed (ie. The button with the number of Diggs is not showing up), there are two things that could be wrong. Number 1 is that no one has clicked the link from the Digg page for your site. For example, this page is Dugg http://digg.com/tech_news/WP_Plugin_Gregarious_the_ultimate_SMO_plugin so unless someone goes to that page and clicks the big link at the top, Gregarious can’t pick it up. (It just has to happen once, mind you. After a visitor from Digg is detected, the link is stored and further referrals are ignored).
If you’re certain that the plugin is not picking up the referral, post up the link to your site and to the Digg page and I’ll try to see what’s going on. Most likely reason is something like Digg Defender or Digg This Reloaded being active which interfere with Gregarious.
Also, please note that Gregarious needs to be under wp-content/plugins/ with the ‘gregarious’ folder name remaining unchanged.
Sorry for all the confusion, I’ll be clearing everything up shortly.
proclaimed by Ankur on January 17, 2007 3:11 pm | Permalink
Spencer, your site’s Digg buttons seem to be fine now: http://cspencerbeggs.com/clips/
It may have been the changes at Digg that messed up the graphics for a short while, but everything looks fine now.
Matthew Willis, only the Digg button will show up unless you tick the options to display the other links in the admin options page. The red “ERROR: Not Found” message to my knowledge was only during the period when Digg was upgrading. As I said before, if the Digg button on this page is showing, it should show on yours too.
Kirk, the default Digg button will keep showing until there is a click from the Digg page to your post. When this happens, the plugin will detect the referrer as Digg and show the badge from then on.
revealed by Ankur on January 18, 2007 8:09 am | Permalink
John, you asked
Well, once someone clicks on the link from Digg to your post, the referrer is detected and the badge is shown from then on (the referrer detection is only needed once before the badge is shown at all times.)
declared by Ankur on January 18, 2007 8:23 am | Permalink
hey, great plugin. this is a future improvement suggestion: when you uncheck “When post hasn’t been dugg, show submit to Digg option” the digg button only appears once the story has been linked (this is good!) BUT the reddit button appears either way. can you add the ability to hide the reddit button unless the story is submitted? this is the one thing preventing us from displaying this plugin on the front page (we only have it turned on for individual posts right now). thanks!
uttered by andy cochrane on January 18, 2007 2:53 pm | Permalink
Andy, as far as I’m aware, Reddit does not provide the API required to do this. This may be possible in the future once the developers at Reddit expand their service.
Currently all that’s available is http://reddit.com/buttons
announced by Ankur on January 18, 2007 3:55 pm | Permalink
what if you add an option to hide the reddit icon if the score is 0 points for the item? that would cover hiding unsubmitted and old reddits in one fell swoop!
we don’t want to clutter up the front page with even more icons, but at the same time having the digg/reddit buttons appear when the post is active on one or both of those services would be great.
recorded by andy cochrane on January 18, 2007 5:47 pm | Permalink
I switched back to diggclick. If you get it worked out, I’m interested!
stated by tech on January 18, 2007 7:25 pm | Permalink
Got the ERRO not found thing..
http://www.newschoolphoto.com/blogme/2007/01/17/fun-with-remotes/
it exists on digg: http://digg.com/videos/comedy/Fun_With_Remotes/
But people can’t digg it from my site! Any help is appreciated, since it’s actually gaining some momentum on digg…
k
voiced by Kevin Swan on January 20, 2007 6:17 pm | Permalink
Does this work okay with WP-Cache installed?
And, do we know if it works with WP2.1 please?
Cheers,
declared by Rob on January 21, 2007 3:15 am | Permalink
Kevin Swan, I think the Digg button breaks when the article is in more than one category. It’s an error in Digg’s API itself so there’s nothing we can do unfortunately.
Rob, this works with WP 2.1 but I think it wont work with any caching plugin. (Referral detection is not static code. It needs to run on the backend which caching stops). If you want me to write another plugin which does work with caching, I can, but it will require manually filling in the Digg link for each post.
reported by Ankur on January 21, 2007 8:12 am | Permalink
Ankur,
It’d be nice if we could disable it for a single post so I at least don’t have the error message on that one..
divulged by Kevin Swan on January 21, 2007 1:20 pm | Permalink
Kevin,
A feature to enable / disable the Digg badge on your posts is coming in version 2. Until then, setting display:none for the diggWrap class just for that post should do it.
expressed by Ankur on January 21, 2007 5:54 pm | Permalink
I really like this plugin, and have modified it a bit for my own use. My blog is not yet running, I am just getting everything working smoothly. The reddit button was working fine at first, but now it doesn’t. I think it might be because of another plugin I am using, but don’t know what it is. Could somebody help me out.
I am currnently using the following plugins:
Anarchy Media Player
Feedburner Feed Replacement
Google Analytics
Gregarious
No self pings
Sidebar Widgets
Wordpress Reports
Youtube Brackets
Do any of these conflict with Gregarious.
My Blog
uttered by Josh on January 22, 2007 1:53 am | Permalink
I figured it out. The reddit button isn’t working with Anarchy Media Player. However, I really need both of these for my blog. Is there anyway to fix this?
uttered by Josh on January 22, 2007 1:57 am | Permalink
My problem seem to be that the host is not allowing the filenames with dots and underscores, e.g. .DS_Store. If anyone know a workaround… don´t hesitate to let me know!
composed by Tom on January 23, 2007 6:57 am | Permalink
Tom, the ._ files are hidden files that Mac OS X automatically adds. You can safely delete all the files that start with a period (dot) (Trashes, DS_Store, etc. can all be deleted.)
I’ll make sure to remove them myself on future releases.
spoken by Ankur on January 23, 2007 8:34 am | Permalink
All ok, thanks for a great plug in!
reported by Tom on January 24, 2007 6:22 am | Permalink
Is there a way to add a dynamic stumbleupon button? For example, a script with a big blue thumbs up, and when clicks, gives the page a thumbs up in stumbleupon, and turns the thumbs up picture green? Basically, I’m asking is there any way to get a button that does the same thing as the stumbleupon toolbar thumbs up button.
stated by Josh on January 25, 2007 12:46 am | Permalink
i know you are working on tons of stuff but i second josh’s last comment there- the more dynamic voting systems you can incorporate the better. i personally would like to remove my static submission icons from w.p. (we use social bookmarks: http://www.dountsis.com/wordpress/social-bookmarks-32.php)
reasonded by andy cochrane on January 25, 2007 2:40 am | Permalink
I’m looking into other systems to integrate into Gregarious. Stumbleupon seems a likely candidate, but I’m not sure if they have an official open API. I’ll check it out for sure.
divulged by Ankur on January 26, 2007 5:19 pm | Permalink
This is in regards to all of the above posts that seem to be having the errors after installing the plugin. My site had the same trouble, and the site wasn’t loading at all.
To remedy the problem, FTP into your hosting site and delete the “Digg This” folder from the wp-content/plugins directory.
Please note that I did NOT have the Digg This plugin activated & I’m not sure if this fix will work if you do have it activated.
Matt Jabs
http://www.eJabs.com
matt@eJabs.com
recorded by Matthew Jabs on January 31, 2007 5:06 am | Permalink
Okay, I thought I had this working, but apparently not. I just dugg one of my posts (it’s the first one - terminator 4) and I get an “Error not found” similar to Kevin Swan’s. This post was submitted in only one category: Comedy Videos. What is going wrong?
divulged by Josh on January 31, 2007 12:17 pm | Permalink
Josh, unfortunately Digg have not updated their API to work with videos. This is completely out of our hands at the moment. The most you can do is turn off the Digg button for that post.
revealed by Ankur on January 31, 2007 12:35 pm | Permalink
I have figured out how to fix the Error message that appears when videos are dugg. However, I need some help integrating this with Gregarious. At the moment the code would look something like this:
digg_url = ‘http://digg.com/videos/CATEGORY/POST_SLUG’;
For the button to work, all that needs to be changed is this:
digg_url = ‘http://digg.com/videos_CATEGORY/POST_SLUG’;
That’s right. This simple change between a slash and an underscore will fix the problem. Now, how do integrate this with gregarious?
determined by Josh on February 6, 2007 8:44 am | Permalink
Gregarious has added things to my feeds that don’t invalidate the feed but do produce warnings and certain feed-readers will not read the feeds because of the warnings. Currently my main feed will work okay only because I run it through feed-burner but if you do any other feed (i.e. unfoldingneurons.com/category/articles/feed you’ll see the changes.)
I’m assuming this is a bug and am hoping it can be fixed
disclosed by Darren on February 6, 2007 2:03 pm | Permalink
Josh, I’ll be integrating videos as well as some of the new Digg button features that have just been released ( see http://digg.com/tools/integrate ) into Gregarious in a little while.
voiced by Ankur on February 6, 2007 4:02 pm | Permalink
Ankur,
Toward the beginning of these comments, you mention a way to move the DIGG button. It says to go under the Auto Append option.
I don’t see an Auto Append option in the latest version and no “Enable automatic append of links to posts” option. Have the settings changed for the new version of Gregarious?
written by Dave C. on February 7, 2007 7:26 am | Permalink
I just updated to the latest version of Gregarious, and for some reason, the Reddit button is missing and I can’t choose where to put the digg button. How can I get these two features back. (I am willing to manually edit the code if that is the way to do it.)
announced by Josh on February 7, 2007 7:40 am | Permalink
Sorry for the double comment, but I just fixed one of my problems. I put the digg button at the top. Now, how to get that reddit button in there…
revealed by Josh on February 7, 2007 7:42 am | Permalink
Josh and Dave C.,
Both answers are in the PostBadge code (Under the PostBadge tab). The Digg button can be moved relative to the content by shifting the ‘<%DIGG%>’ tag before or after the ‘<%CONTENT%>’ tag.
The Reddit button is sort of an Easter egg / hidden feature for now, as I’m still thinking of the best place to put it in the options page. You can use the ‘<%REDDIT_X%>’ tag, replacing the ‘X’ in REDDIT_X with a number between 1 to 3 (to choose the style of the button). For example, ‘<%REDDIT_3%>’ shows a Reddit button with a graphic and up and down vote icons.
recorded by Ankur on February 7, 2007 1:30 pm | Permalink
For some reason, we are not getting the PostBadge but are getting the error not found message.
We have tried going to Digg and back again from that link, and still no badge. See the following 2 links for what I am talking about:
http://www.byron-harvey.com/2007/02/05/super-bowlthats-a-wrap/
http://digg.com/football/Super_Bowl_That_s_A_Wrap
Also, in one of your earlier replies, you advised someone to go to that section of the options. Our question would be - where do you find that section of the options? For the most part we can’t find any part of the options where we can actually set anything; everything seems to be static with nothing to click and/or set.
mentioned by Paul on February 7, 2007 7:49 pm | Permalink
Paul, the options page definitely shows up in Firefox, and it should work in all the major browsers - except Opera.
For people like yourself who (I’m assuming) aren’t using Firefox, and may have trouble viewing the options page, I’m writing an alternative version without all the flashy effects. (Use FF if you want to configure the plugin for now.)
For the error, the Digg button is trying to load the URL http%3A//www.digg.com/search%3Fsection%3Dnews%26s%3DSuperbowl+Commercial
To rectify this (until I release the next update in which the /search links will be detected and rejected by default), simply edit the the post, then remove the “DiggUrl” custom field. Change it to http://digg.com/football/Super_Bowl_That_s_A_Wrap
I’m just adding the finishing touches to the latest update of Gregarious on my local server. I assure you that it will see an end to all error pages. Videos now work, and the regular expressions pick up referrals from /search or /upcoming and prevent it from being added as the Digg URL. And of course, it’s using the new Digg official API.
So, to fix your problem, 1) delete the custom field of DiggUrl / fix it to the right link. and 2) wait for the next update to Gregarious which will bring an end to all these errors.
I’ll be posting up the update in a few days (if not tomorrow)
determined by Ankur on February 7, 2007 9:10 pm | Permalink
Thanks Ankur, much appreciated.
As far as FF though, I definitely use it (FF 2.0.0.1) I have several other browsers installed that I use for testing, but FF is definitely my browser of choice. Which leaves me still baffled on the Options…
voiced by Paul on February 7, 2007 9:14 pm | Permalink
Do you get any javascript errors?
disclosed by Ankur on February 7, 2007 9:19 pm | Permalink
Everything displays, it just doesn’t do anything. The only fields I can find that will do anything are the PostBadge Code and the unDugg Posts selector and the Dugg Posts selector.
Using the error console in Web Developer, I got the errors you can see in this screen shot - http://steelerdirtfreak.com/images/gregarious-screen.jpg
JS really confuses me so unless I know specifically what I need to do, I tend to shy away from messing with the code.
declared by Paul on February 7, 2007 9:33 pm | Permalink
that’s from another site I manage, but they are all getting the same behavior on the options page
revealed by Paul on February 7, 2007 9:34 pm | Permalink
I’ve got two questions:
How can I get the reddit button to line up with the digg button?
Is there a way to have the digg button animate the way it used to, or will it always now redirect to the digg page?
recorded by Josh on February 7, 2007 9:59 pm | Permalink
In the blog I am working on, they often post embedded movies from youtube. The problem is that the share-this box will not properly show up over any Flash (embedded movies) on the posts below. Is there a way to fix this? Is there a way to use DHTML to move the content below down so it does not overlap? Thanks for your time. This is a great plugin.
Bart
uttered by Bart on February 8, 2007 2:34 am | Permalink
Ankur, thanks for the response to my question about positioning the button. It sort of worked. The button is now before the content, but it stands alone between the post title and the content. Is there any way to wrap the content around the button?
determined by Dave C. on February 8, 2007 4:40 am | Permalink
Works great on my site, but I hate the little dig man favicon/icon. . the plain old digg it badge is better. .
expressed by Todd on February 8, 2007 6:14 am | Permalink
Oh, as the Digg site opens a new tab when the user clicks on an article, so should your digg it button open a new tab and not take the visitor off the site.
professed by Todd on February 8, 2007 6:15 am | Permalink
Paul: try reuploading all the files (specifically the .js files). Someone else had a similar problem, and they found that they had not uploaded the files correctly. (Also make sure the text is uploaded in ASCII and the images in binary, though your FTP client should really do that for you)
Josh:
To line up the buttons, you need to use some CSS.
In the PostBadge Code, wrap both the tags in a div tag and usediv style="display: inline"Making them display inline should make them line up next to each other.
In your PostBadge Code, wrap the buttons in a div tag with
style='float: left; margin: 4px'. You can change ‘left’ to ‘right’ depending on where you want the button, and the margin is just the amount of space you want around the button. Anything from 2 to 8 pixels will probably look ok.In regard to the Digg button just animating and not leaving the site, I think Digg stopped that because of potential abuse (ie. you but a Digg button on your site for some other Dugg page).
Bart:
If you uncheck the option which appends prototype.js under the “Share This” tab, and make sure you’re not getting prototype.js added by any other plugin, then the ‘Share This’ link will take the user to a separate page where they can submit your site to social bookmarking sites. However, if you still want the popup, try changing
document.getElementById('post').style.margin-top+=200;where ‘post’ is the id of the div that wraps your post.Dave C:
You bet! Head over to the PostBadge Code. As I said to Josh, you need to wrap the Digg button in a div tag with the attribute
style="display:inline"style="float: left; margin: 4px". By default the Digg tag is wrapped in a div with the class of “diggWrap”. You can simply add the style to it.Todd:
I completely agree! For now, the answer is as simple as heading into “Digg Options” and changing the value for what to show for unDugg posts. You can change the URL of the image, add HTML, or change it to show nothing until the post has been Dugg. In the next update, as I’ve mentioned earlier, you’ll be able to show the Badge to get the user to submit the post!
For opening the link in a new tab, the Digg button is under the control of Digg.com so it would be a good idea to ask them to run a check to see if the logged in user has set up his preferences to open links in new windows, then write the link in the Digg button accordingly.
I think that just about does it. If anybody has any more questions, feel free to write.
Phew!
written by Ankur on February 8, 2007 6:58 am | Permalink
Whatever I’m doing, it’s not working. Here is the code I am using (the parentheses represent carrots.)
(div style=”display: inline”) (%DIGG%) (%REDDIT_3%) (/div) (%CONTENT%) (%SHARE_THIS%)
spoken by Josh on February 8, 2007 7:26 am | Permalink
Sorry Josh, my mistake.
style='float:left'is what I should have written. You could also float it to the right if you like, and giving it amargin: 4pxor more would be a good idea too.posted by Ankur on February 8, 2007 3:13 pm | Permalink
Slight (intermediate) update posted. If you’d like to get a handle of the new Digg API, you can try this out. The only major differences are the selection of a background color on your dynamic Digg button, the “compact” Digg button and being able to use the Digg button as the submit link. If the current features are working for you, feel free to wait until a few more nice settings are added otherwise download it here.
(The Digg Options page is now a fork that lets you go to two different places. You can change the settings or choose the badge style.)
disclosed by Ankur on February 8, 2007 4:45 pm | Permalink
hello,
I just tested your 2.0 beta1.1 version here: http://sibiu.zice.ro and it seems there is a problem with the email post to friend function, I tried sending to different email addresses but the mails never arrive.
Could you explain how those mails are being sent, and what I can verify to check whats wrong?
Otherwise a very neat plugin, thank you very much.
reported by ovizii on February 8, 2007 8:43 pm | Permalink
Ovizii, nice theme!
The plugin uses the wp_mail() function to send emails (which I think then uses the PHP mail() function depending on your WordPress config). If your WordPress emails are getting to you, then these should be as well. I’ve certainly used the email feature several times to test and it’s always worked.
Come to think of it, the wp_mail function may not be compatible with WordPress Mu. I’ll look this up, and see if there’s a work-around.
reported by Ankur on February 8, 2007 10:19 pm | Permalink
oops,
I completely forgot to mention, that I am on wpmu…
I will dig around a bit maybe I can find out if there’s a difference between wp and wpmu regarding the mail fucntion…
Please keep me updated if you find out something.
Thx for checking this out…
proclaimed by ovizii on February 9, 2007 12:15 am | Permalink
not certain, but i think i’m hitting a bug: when selecting what digg badges to use, the only way i can get the compact badge to show up is if i select it for both dugg and undugg posts. if i select compact badge for undugg posts and the standard badge for dugg posts, the standard sized digg badge is displayed for both.
declared by Paul Theodoropoulos on February 12, 2007 9:37 am | Permalink
We just activated the plug-in on our blog and found the pop-up doesn’t work, it redirects the user to another page. I get the following JS error:
Error: $ is not definedSource File: http://www.iheartluxe.com/wp-content/plugins/gregarious/gregarious.php?akst_action=js
Line: 2
Any suggestions?
Thanks
mentioned by Anthony on February 12, 2007 9:59 am | Permalink
Paul: That bug was very annoying for me as well, but I did get it fixed. The latest unstable release is here. Note that you need to CHMOD akst.js and akst.css to 777 for this release to be able to add / remove social sites for Share This.
Anthony: For the popup dialog to work, you need to make sure prototype.js is being appended. View source and see if it’s there. If not, make sure “Append prototype.js” is on under Share This.
published by Ankur on February 12, 2007 12:27 pm | Permalink
I set up gregarious on my WP 2.1 site and the digg badge is showing up fine but always show 0 diggs even when I add one myself. The ‘url’ field in the query-string is always set to blank, but the title field is populated correctly, so the link looks like this: http://digg.com/submit?phase=2&url=&title=my_title
Thanks,
Xav
announced by Xav on February 12, 2007 3:16 pm | Permalink
outstanding! unstable beta installed, working like a charm. thanks so much, Ankur!
spoken by Paul Theodoropoulos on February 12, 2007 4:44 pm | Permalink
Xav, it could be that no referrals from Digg have been detected. Check if the post is showing up under “Dugg Posts” in your options page. If it isn’t there, go to the individual Digg page for your post and click on the link so Gregarious can detect the referrer.
Paul, I’m glad it’s happening! More nifty features are being cooked up in My Secret Lab™. Release seems to be imminent.
recorded by Ankur on February 12, 2007 7:33 pm | Permalink
Hi Ankur,
Yes, I did click on the digg link, and it still wasn’t able to fill out the url field. The “url” javascript variable is just empty, when it should be filled with the permalink for the post. The digg link inside the ShareIt script is set up just fine with the right URL.
I was able to temporarily fix it by setting the “DiggUrl” custom variable for the post to its permalink and it worked, but it’s a pain if I need to do this every time. I wonder why it’s not working. Also, when I had clicked on the digg link, Gregarious told me some posts had been dugg, but when I clicked on that link from the main page, it told me no posts had been dugg… odd.
spoken by Xavier on February 13, 2007 4:36 am | Permalink
Hmm… the DiggUrl is not being added to the custom field of the post. Could you give me a link to your site?
disclosed by Ankur on February 13, 2007 3:17 pm | Permalink
Hi Ankur,
I’m having the same problem as Xavier. The “url” parameter in the URL is not getting filled out. Any ideas?
professed by Dean on February 14, 2007 1:59 am | Permalink
Another update posted.
Dean and Xavier, your problems should hopefully be fixed in this release.
We’re getting closer to the Gregarious 2.0 official release!
reasonded by Ankur on February 14, 2007 11:39 am | Permalink
hello,
I psoted a few posts ago about mail problems with wpmu. I just upgraded to your latest version and have other problems now
:
try this link http://sibiu.zice.ro/2007/02/12/atrium/ and watch out for the following:
any feedback would be greatly apreciated.
determined by ovizii on February 15, 2007 3:39 am | Permalink
Ovizii, the Yahoo icon is showing now.
The digg_url=”; etc… is not really messing with the template, it’s the ‘related posts’ plugin which is pulling these up as part of the post content. It’s shown that way because related posts strips the HTML tags from the post excerpt. I’ll write a work-around for this.
recorded by Ankur on February 15, 2007 3:43 pm | Permalink
Sorry to bother you but after upgrading to the latest version, the Digg badge no longer shows up on posts like this. Otherwise I can’t wait to fully upgrade to the official release.
Thanks for all the hard work, it’s gotten better and better.
declared by baron on February 15, 2007 4:46 pm | Permalink
Sam, Gregarious may reset your settings if it finds that an older version is present. Make sure the settings for what to show on Dugg and unDugg posts aren’t set to “nothing”.
posted by Ankur on February 15, 2007 5:14 pm | Permalink
Setting them to nothing and putting them back on seemed to do the trick. Thanks for the advice!
I was dying to upgrade this.
revealed by baron on February 15, 2007 6:54 pm | Permalink
hello,
one more question: do you have a clue why the digg badge is showing up in the sidebar, at the bottom below my “subscribe to newsletter” part? I tried different approaches via css like display:none; for that part but there is javascript involved and it does not seem to work…
http://sibiu.zice.ro
stated by ovizii on February 16, 2007 3:30 am | Permalink
I upgraded to RC 1 today and had some problems. I’ve been reading here trying to see if others have had the same issues, and I haven’t seen it.
I’m using the Redoable 1.1 theme. Before my upgrade, the Share This element showed up nicely in the post header with the author, tags, etc… Now it does not and I can’t seem to correct that. I was wondering if any function names changed that Redoable might be calling?
Second, I’ve had a post dugg, but the plugin doens’t seem to detect it. I clicked on the link from Digg to try to get it to appear to the plugin, but my site never responds. I shut down Gregarious and then the Digg link took me right to my site with no waiting. I’m wondering if the detecting script is getting hung?
I’ve done no hacking to my theme. It’s pretty much out of the box. Everything worked under the Beta version.
Any help will be appreciated. Thanks for writing a great plugin.
Thanks,
Todd
professed by Todd on February 16, 2007 4:01 am | Permalink
Ovizii, if the content displayed at the bottom of your sidebar is a WordPress “page” that you’ve created, the Digg badge will be appended to that. If this is the case let me know and I’ll tell you how to stop it from showing.
Otherwise, it’s possible that the digg_button() function is being called somewhere in the template.
Todd, the akst_share_link() function has been renamed to share_this(). If you don’t want to have to edit your template, just add the following code to gregarious.php (I’ll add it to future releases):
The above code just redirects the old function to the new one.
Regarding the timeouts when a referral from Digg is detected, I had been experiencing that problem on my local server, but I did get it fixed before the release of RC 1. This site also handles Diggs perfectly. I’ll take another look and see what’s going on.
published by Ankur on February 16, 2007 2:58 pm | Permalink
Hello Ankur,
the newsletter stuff on the right is created like this:
Newsletter:‘); echo $content; ?>
inside the template and the resulting code is this:
Newsletter:You may manage your subscription options from your profile.
Share This
I do not know why it shows the digg badge there, but anyway I forgot to mention a little information in my last post: the badge only shows up there when I am viewing a post or page, not on the homepage as I configured gregarius to not show them there, so the linki above does not show you an example, you will have to click on a post…
actually the badge shows twice, under the post as it should and under the newsletter portion of the sidebar…
P.S. Please do not forget about my other question regarding the similar posts showing up the html stuff…
posted by ovizii on February 16, 2007 5:30 pm | Permalink
Ovizii: The latest version of Gregarious includes a setting at the bottom of the Dugg Posts lists to add ID’s of posts on which you do not wish to show the Digg badge. You can write the ID of the page that you’re including there, and it should be fine.
Regarding the related posts plugin, I answered the question up here but basically, the excerpts pulled by related posts are picking up the appended content. I’ll write a fix when I get time - more features on my Todo list.
stated by Ankur on February 16, 2007 7:12 pm | Permalink
ok, thx for putting my problem on your todo lsit, I appreciate that.
regarding the other issues with the badge, the newsletter plugin is this: http://subscribe2.wordpress.com/ and its actually not a page… its a widget
can you look into this issue? whenever you have a little time to spare, its nothing urgent I don’t even mind the badge being there but it makes no sense…
announced by ovizii on February 17, 2007 6:11 am | Permalink
when I click on the Share This text, the box that should pop up appears at the very bottom of the page. It used to work fine, and I’m now very confused about this.
Any help would be greatly appreciated
stated by Alan on February 17, 2007 12:38 pm | Permalink
Can you tell me why my Digg badges are counting wrong? I’m also not able to post new stories to the digg website without the hassel of ‘log-in, submit url, submit title, submit body…. PLEASE HELP!
stated by Nathan on February 17, 2007 1:00 pm | Permalink
Is there anyway to specify the URL for each of the sites in the Share This Options? I’d like to have the bookmark simply point to the homepage every time rather than the URL for the specific post.
mentioned by Sean on February 17, 2007 1:33 pm | Permalink
The green share this icon is not showing up. I downloaded 2.0 RC1. I’ve looked through the code and can’t figure out why it is not showing up. Anybody else having this problem?
divulged by Sean on February 17, 2007 2:35 pm | Permalink
Gregarious doesn’t seem to be interfacing with share this properly. When I change the Share This link text: option to something different, “Share This” is still displayed. Other sections of the option configuration seem to work just fine.
reasonded by Sean on February 17, 2007 2:56 pm | Permalink
background color changer for the digg badge doesn’t seem to be working.
spoken by Sean on February 18, 2007 6:34 pm | Permalink
I’m not sure how this hasn’t been discussed yet, but with the latest version of gregarious, the AKST_FILEPATH seems to get set too late, and thus the stylesheet URLs are broken. I fixed this by putting the defines ahead of the “init_options” call in gregarious.php:
@define(’AK_WPROOT’, ‘../../../’);
@define(’AKST_FILEPATH’, ‘/wp-content/plugins/gregarious/’);
$gregarious->init_options();
stated by Dean on February 18, 2007 8:25 pm | Permalink
Youch! Bug fix uploaded.
Bear with me while I fix a few more problems.
professed by Ankur on February 18, 2007 8:36 pm | Permalink
Sean: All the problems should be fixed.
To specify a different post to the Share This link, you can use the template tag share_this(’postID=1′) replacing ‘1′ with the ID of the post you wish to show. More documentation and extensibility is coming, but I’m just so busy these days!
A big thank you to Dean for picking up the unordered define statements. I’d reshuffled the functions to make it cleaner, but that obviously slipped through.
Keep the feedback coming!
proclaimed by Ankur on February 18, 2007 9:09 pm | Permalink
Nathan: The Digg badges are showing an incorrect count on some posts because URLs for the upcoming pages are being stored, such as “http://digg.com/news/upcoming/page2″. This has already been corrected previously, so if you update to the latest version it shouldn’t happen anymore. To fix the posts that have been detected incorrectly, you need to edit them, then remove the DiggUrl custom field.
professed by Ankur on February 18, 2007 9:11 pm | Permalink
Hi Ankur. Thanks for the reply and great plugin!
Changing the digg background color still seems to not be working. Also, you might want to use a class instead of and id for the sharethis link styling, as it causes validation errors when using id.
published by Sean on February 19, 2007 5:54 am | Permalink
For some reason after installing the update I am not getting Gregarious to auto-detect my previously dugg posts.
revealed by Jonathan Whipple on February 19, 2007 1:39 pm | Permalink
Sean, I’ve fixed the background color issue. Thanks for letting me know.
The share this link does use classes and the ID’s are unique so it should validate… I’ll investigate further if you’re still having trouble.
Jonathan, your posts seem to be working now.
reasonded by Ankur on February 19, 2007 3:10 pm | Permalink
I think its not compatible with WP 2.1 as it gives error when you activate this plugin.
Parse error: syntax error, unexpected T_ELSE in /home/site/public_html/blog/wp-content/plugins/gregarious/gregarious.php on line 1531
It works fine on old version of wordpress.
I hoipe new version of this plugin wil be released soon.
announced by manu on February 19, 2007 10:59 pm | Permalink
i thought i posted this earlier, maybe i didnt :S
i have updated the gregarious plugin to the latest, but as soon as i activate i get this error.
Parse error: syntax error, unexpected T_ELSE in /………/wp-content/plugins/gregarious/gregarious.php on line 1531
does anyone know if i have to change my setup or any other way to help me to get this to work pls.
im running Wordpress 2.1 and theme redoable1.1, i ran the previous gregarious plugin fine.
composed by adickt on February 20, 2007 8:35 am | Permalink
Manu and Adickt, the plugin is working fine for me on three different installs of WordPress 2.1. Perhaps it’s problem with the PHP version?
declared by Ankur on February 20, 2007 3:27 pm | Permalink
error
not compatible with WP 2.1 as it gives error when you activate this plugin.
Parse error: syntax error, unexpected T_ELSE in /home/site/public_html/blog/wp-content/plugins/gregarious/gregarious.php on line 1531
disclosed by Vinod Ponmanadiyil on February 20, 2007 9:46 pm | Permalink
hello ankur,
I have small display issue, the share this appears in the middle of the post, can you check if this is an issue with the plugin or maybe the more link breaks my post formatting?
http://sibiu.zice.ro/2007/02/20/expozitie-organizata/
posted by ovizii on February 21, 2007 1:21 am | Permalink
Am I missing something? When I click on the “dig this” button, it takes me to digg, but does not fill in the url.
When I click on the digg button under share this, everything works fine.
What am I missing?
Thanks
declared by casey on February 21, 2007 6:48 am | Permalink
I am having an issue with the plugin. It installed fine, the buttons show up fine. The issues:
1. The buttons don’t show Dugg count.
2. When I click on options button I get a network error after a long attempt at loading the file.
3. When I click on “update file” in the Plugin Editor I get a 404 error.
The issues only occur with this plugin.
reported by Monkeybit on February 21, 2007 7:40 am | Permalink
I got the same error of adikt and manu, but on line 1535 of the page gregarious.php.
resolved adding an interline between the comment and the IF I found on that line.
now it works perfectly on mine.
I suppose it’s tha same problem on line 1531. even there the IF is commented.
determined by shugotenshi on February 21, 2007 10:01 am | Permalink
I’m having the same problem as Manu and Adickt using WP 2.1 and Redoable 1.1. The PHP version of the server this blog is running on is 4.4.4.
proclaimed by Cody on February 21, 2007 10:08 am | Permalink
When activated, pages load very slowly. After the page is loaded, anytime we hover over a link, the link disappears. Entire sidebars can disappear by hovering over them.
declared by buzzdroid on February 21, 2007 12:20 pm | Permalink
MonkeyBit: The issues occur because of your usage of non-standard custom permalinks (which is pretty cool nonetheless). I may explore this later, but chances are you’ll have to the digg_button() template tag. Just call
digg_button('postID='.get_permalink($post->ID));in your template.Manu, Adickt, Vinod, Cody and others: I’ve implemented the solution proposed by Shugotenshi. Since the problem isn’t occurring for me, and I can’t get it to happen even on my local server, I don’t know if it’ll fix it. Do let me know what happens.
Everyone else, I’m still exploring the plugin to see why your problems are occurring. Please bear with me until I get it worked out.
voiced by Ankur on February 21, 2007 1:03 pm | Permalink
Download the (hopefully) bug-free version here.
No need to upgrade if you’re not experiencing any difficulties.
composed by Ankur on February 21, 2007 1:05 pm | Permalink
Hi,
Love it !!!
I don’ quite understand the following;
at the option page it says;
“1 posts and pages have been Dugg”
When I click on this it leads me to what supposedly is being dugg, but then I get this;
“Sorry! No posts or pages have been Dugg yet.”
Where did I go wrong ???
THX
announced by Daddo on February 21, 2007 10:08 pm | Permalink
Sorry,
Another thing I forgot to mention is that the posts are getting error messages on digg.com saying that someone else have posted them ??? when I try to search there is nothing to be found.
Anyways they are not being dugg as your pages/posts are.
THX
written by Daddo on February 21, 2007 10:15 pm | Permalink
Great plugin!
I’m running into one issue and can’t seem to figure it out. It’s probably a very easy fix, but how do I move the Share This box from the footer to right under the Share This link?
expressed by Tanner on February 22, 2007 3:02 am | Permalink
Daddo: A blank URL was being passed when the post hadn’t been Dugg. The problem is fixed in build 21.
Tanner: The Share This form is appended to the footer once, then repositioned using javascript to pop up right under whichever Share This link is clicked.
divulged by Ankur on February 22, 2007 7:21 am | Permalink
The plugin appears to be incompatible with Amazon Affiliate javascript. When both the Amazon js and Gregarious were active, all links would disappear when hovered.
The Amazon js I’m speaking of if for the Amazon Product Previews. The js provides a flyout Amazon product description when you hover over an image.
For the time being, we have temporarily removed the Amazon js.
reported by buzzdroid on February 22, 2007 8:11 am | Permalink
Buzzdroid, could you send me a copy of the Amazon js code so I can see where the clash occurs?
disclosed by Ankur on February 22, 2007 3:23 pm | Permalink
For template authors, I’ve started writing some basic documentation. The docs will be expanded to cover the features and usage of the plugin as well as the template tags later on.
announced by Ankur on February 22, 2007 9:40 pm | Permalink
Hi, Nice plugin but it wont quite work for me!
I’m getting the error message “Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/elivance/public_html/wp-content/plugins/gregarious/gregarious.php on line 1611″ whenever I update the settings.
Also when users click on a link to my site from Digg the page takes forever to load, but if you copy the link into a new browser window it opens instantly.
Everything used to work, then I updated both wordpress and Gregarious, now I’m getting errors. Please help!
Many thanks,
Oli
reasonded by Oli on February 23, 2007 9:49 am | Permalink
Ok, no idea how but all of a sudden the links from digg work! I’m still getting the error message and there are no social sharing sites on the Share This tab either on my site or in the control panel.
Cheers again,
Oli
reported by Oli on February 23, 2007 9:53 am | Permalink
Oli: I think it’s something to do with your PHP and/or server setup. You can probably get it if you open gregarious.php and remove the line (around line 690) that says:
After deleting that line, just reset your options and everything should hopefully work. The only drawback will be that you’ll no longer be able to re-order your Social Sites from the options page; adding and removing will still work though.
Hope that works!
written by Ankur on February 23, 2007 3:13 pm | Permalink
Don’t know if this is just me again but it seems like with the latest release CURL interferes with auto detect. When I jump from the Digg submission page to the post, it hangs forever and never auto-detects the Digg. If I turn CURL off, it works just fine.
spoken by baron on February 23, 2007 6:37 pm | Permalink
Same thing seems to be happening for me. If it’s reproducible, it can be fixed.
Although to be honest, I’ve spent so much time on getting the regular expressions perfect that I don’t think there’s much chance of having incorrect URLs detected anyway. CURL can be turned off very safely until and unless it’s ever found that incorrect URLs are being detected and stored.
determined by Ankur on February 23, 2007 7:38 pm | Permalink
Okay, I’ll leave it off for now. Not a big deal.
posted by baron on February 23, 2007 7:40 pm | Permalink
Not sure if anyone’s pointed this out before (too many comments for me to check through) but I’ve noticed a minor bug:
If someone posts a link to a page of my site in the comments of another article that has been Dugg, the plugin shows the amount of Diggs that the properly Dugg article.
See: My site, and the Digg article in question.
Currently my two-year old article is showing 1,424 Diggs, which is nice, but not really bringing me all that much traffic…
uttered by Andy on February 24, 2007 3:36 am | Permalink
Hope someone can help me. I’ve been using gregarious and have encountered intermittent problems with digg submissions. Sometimes, it works and sometimes it does not (and now lately it never works). If a user clicks on the digg guy, they usually get this message: “This does not appear to be a properly formed hostname.” Sure enough, the domain name is not getting passed (but the title is getting passed). If a user clicks the Share This link, the article is reproduced as it should and the url is passed properly, but then upon submission, digg complains again: “This doesn’t appear to be a working link - please check the URL and try again.” Finally, I have found at least on instance in which the digg badge goes to the wrong url when clicked! e.g. the digg badge on this page: http://celebritypsychologist.com/?p=9 actually takes you to this page: http://digg.com/programming/upcoming
Any assistance is appreciated.
recorded by randy on February 24, 2007 7:47 am | Permalink
Andy: Edit the post, then delete the custom field called “DiggUrl”. Unfortunately, the process I had written to ensure this doesn’t happen is currently not working (The CURL thing that was being discussed just previously). I am trying to see what Digg.com might have changed and how Gregarious can adapt.
Randy: Similar thing applies. Edit post, then delete the custom field “DiggUrl”.
I’m rewriting the whole detection system to work with the new Digg API, so hopefully everything will work better then.
announced by Ankur on February 24, 2007 10:01 am | Permalink
Randy: You’d probably need to upgrade to build 21. It was an un-announced update, but did fix the blank URL issues.
divulged by Ankur on February 24, 2007 10:06 am | Permalink
Thanks Ankur:
I installed 2.0rc1 and digg happily took the submission. Funny thing though, I went to update another site using gregarious 1.6 — and it too had returned to normal and was functioning fine without the update. The two sites share an IP, but no WP code. Maybe something on the Digg side or perhaps something on my server caused the bug?
stated by Randy on February 24, 2007 12:35 pm | Permalink
Thanks Ankur - I’ll give that a go.
stated by Andy on February 24, 2007 2:20 pm | Permalink
I am using the “Redoable” theme. I installed Gregarious, and it runs fine on the home page. However, when I go to the “single post” or permalink page, Gregarious will insert two “digg this” buttons, one in the top right, and one at the bottom left.
I only want the one in the bottom left to appear, but even when I turn all the options off, the one in the top right will still be there. How can I remove this.
You can see an example of what I am talking about here: http://gamenation.neareverything.com/?p=66
Thanks!
expressed by Ahren on February 25, 2007 7:38 am | Permalink
Ahren, the Redoable theme calls the Digg button function in single_post.php. You can just remove the following PHP code from it:
The above code is found in the entry-content div in single_post.php (and also in single_post_alt.php if you’re using it).
announced by Ankur on February 25, 2007 12:02 pm | Permalink
@Ankur
Thank you for the response. However, when I remove the code that you tell me to, it takes out both of the Digg buttons. I would still like to keep the one in the bottom left. (I would like to get rid of the one in the top right)
Thanks!
published by Ahren on February 25, 2007 4:13 pm | Permalink
To keep the Digg button that is appended to your post content, make sure you’ve turned on PostBadge in your Gregarious options page, and that the <%DIGG_BUTTON%> tag is present in your PostBadge code.
(btw, I’m only seeing one Digg button on your site… the one after the content.)
posted by Ankur on February 25, 2007 6:02 pm | Permalink
@Ankur
Ah, yes! Thank you for the help! It worked this time!
revealed by Ahren on February 26, 2007 2:22 am | Permalink
Great!
stated by Ankur on February 26, 2007 1:25 pm | Permalink
At first I was having the same problem as the first post. Once the plugin was installed my whole page stopped working. I had to ftp to my server and delete the plugin files since I couldn’t just deactivate it. I read the INSTALL.txt and found that I hadn’t changed the permissions on akst.css and akst.js. Once I changed the permissions to 777 I had no problems with the plugin at all.
Thanks for the awesome plugin! Keep up the good work.
determined by Nick Young on February 26, 2007 7:06 pm | Permalink
Thanks, Nick. I’m glad the problem is sorted out. I think it’s more likely that it was caused by the files not being FTPed properly the first time round as Gregarious runs even with akst.css and akst.js not CHMODed to 777. At least its working now.
expressed by Ankur on February 26, 2007 7:17 pm | Permalink
Thanks for a great plugin. I like the way the bookmarking sites popup in a separate window when you click the ‘Share This’ link. Nice and tidy. Good job!
divulged by Dean on February 27, 2007 4:27 am | Permalink
Thanks Dean!
spoken by Ankur on February 27, 2007 7:00 am | Permalink
Hey Ankur, great plugin! I just upgraded from v1.5.something to the current release, and i’m getting that dreaded error stating:
Parse error: syntax error, unexpected T_ELSE in /home/downpou/public_html/wpblog/wp-content/plugins/gregarious/gregarious.php on line 1546It pops up when I go to activate it, although it does show up in the Plugins list just fine. I have a good handful of plugins, none of which have changed since I had a pretty much working 1.5.x install of Gregarious. Here’s the list:
Audio player 1.0.1Adhesive 3.2
Akismet 1.14
AdSense Earnings Reports 1.0
Bunny's Technorati Tags 0.5
ClustrMap for WordPress 0.2 Adds ClustrMap code into the page. By Lou Wheeler (custom by me).
EzStatic 3.1.1
Link Harvest 1.0
MightyAdsense 2.1
Recent Links 2.01
SH-Autolink 0.94b
StatCounter for WordPress 1.01
Subscribe me 2.6
Text Control 2.0b1
WP Flickr Post Bar 0.5
Sidebar Widgets 1.0
Wordpress Theme Manager 0.1
WPvideo 1.10
Semiologic Subscribe Me Widget 1.0 Adds a sidebar widget to add Subscribe Me! links. By Lou Wheeler (written by me)
Google Search widget 1.0
Google Adsense widget 1.0
ClustrMap 1.0 Adds a sidebar widget to let users add their ClustrMap into their sidebar. By Lou Wheeler (written by me)
RecentLinks Widget 1.0 Adds a sidebar widget to make your RecentLinks sidebar modular. By Lou Wheeler (written by me)
I doubt that’ll help, but it’s worth a shot. If there’s a fix, or a bug, I’d love to know about it.
disclosed by Lou on March 1, 2007 12:09 pm | Permalink