We created this Drupal 7 module for this site but have decided to let you all in on the action. The Drupal module will automatically add Twitter "tweet", Google "Plus One" and Facebook "like" buttons to the end of certain content types.
The module is very, very simple right now, if you have any good ideas of how to improve it, let us know!
Comments
i don't want to show the share buttons on the frontpage. only in the node when somone click on it.
how can i realise this?
Thanks!
we could add an option to the module settings that would allow you to chose if you wish to show the buttons in teaser view, full view or both.
is that what you want?
I updated the module to include this option for you... let me know if that helps.
great job on the blog.
Just uploaded a new version, a feature and a bug fix to the module.
Apologies if you downloaded the 1.3 version... it looks like we levt the via @beacon9 in there. Update to 1.4 to correct this issue.
Is there a reason why you don't upload this as a project on Drupal.org?
Hi Ryan, I want to... the process is more than a little confusing so it's taking me a while to figure it out.
Jack,
You've got the first step down - put your code out there.
Next, I would run it through Coder module to check for style and obvious problems that can be checked automatically.
If you have a d.o account, make sure you have agreed to the Git Terms of Service. We have a new "sandbox project" classification, which is the default when creating a new project. This part is new, so it is hopefully a bit easier now.
http://drupal.org/node/1068950
Once it's up there, and you've reviewed it (or maybe asked a friend to), you have to go through a one-time approval process. After that you can make new projects. Basically, you fill out a form and subject yourself to some scrutiny.
http://drupal.org/node/1068952
I am liberatr on Drupal.org, so I may be checking in with this project when you get it up there.
Have you seen
http://drupal.org/project/tweetbutton
http://drupal.org/project/fb_social
http://drupal.org/project/buzzthis
I saw yours on my way to finding these projects - yours was a one-stop shop, these are each configured on their own.
Hey Ryan.
Thanks for that, its the git part where I'm struggling, I think I need a client with a GUI! I'll try and find some time this week to get this module and the sitemap block modules up on drupal.org
I'd like to add options to this module where you could select the social buttons that you want to include and add new buttons with sub-modules... that's next on the dev list.
This is starting to sound a lot like Service Links or a similar module:
http://drupal.org/project/service_links
For now I have hacked parts of the three modules I mentioned above into a preprocess function in my theme.
For a guide to learning Git, check out this one by my friend Mike:
http://drupaleasy.com/blogs/ultimike/2011/03/learning-git-amateurs-persp...
Hi, i'm french and didn't speak very well english.
I try your module it's look like beautiful, but i have a problem with alignment.
How can i align all the 3 buttons ?
Thanks a lot for your help
Hi Chris. The buttons can be a little tricky to align as they are all different sizes. I added these styles to my theme to get them more inline...
.beacon9-social .beacon9-social-item { display:block; float:left; width:110px; height:30px; line-height:1.2em; }Hi, thanks a lot for your response ! It's work very well !
Thank you ;)
Hi!
Can I use this module through panels? Can't seem to find it among the content.
I haven't added any support for panels... as I've never had to use that module. What is it that you are trying to achieve?
Any quick example on how to add this to my node.tpl? like
<?php echo render($content['socialthingie']) ?>
Hi Andrea, you should be able to use this...
if(isset($content['beacon9-social-bottom'])){ print render($content['beacon9-social-bottom']); }Thanks! :)
Hey, Got a bug to do with permissions.
'admin/people/permissions' is white screening and php logs show the error message as above;
Fatal error: ....modules/user/user.admin.inc on line 697.
Drupal 7.0
Problem was fixed by de-activating module.
Shame, I liked the module
Hey - are you using the most recent version of the module (1.4)?
Thanks Jack.. I was using V 1.2
Problem is solved with v1.4
Two thumbs up !
is there away to remove the google buzz?
not within the module settings. if you open up beacon9_social.module and comment out line 118, that will do the trick.
Hi,
all installed and configured but no links showing on my nodes :(
I initially got an error:
Notice: Undefined index: (node type) in beacon9_social_node_view() (line 92 of /sites/all/modules/beacon9_social/beacon9_social.module).
I updated this line like so:
if(isset($node->uri['path']) && (isset($enabledTypes[$node->type])) && $contentTypes[$node->type] != null && ($nodeTypes == $view_mode || $nodeTypes == 'both')){
This got rid of the roor but I'm not sure whether this has caused the module to fail.
Will keep an eye out for updates here and on Drupal for when you get the module hosted there. Can't wait as it looks great on your site!
Hey Mik F,
I will look into the errors and post back once I've found a solution.
In the time being, please check that you have enabled at least one content type in the module settings.
Thanks.
I've enabled for all content types except 'Poll'
Node Type = Full Nodes and Teasers
Button Type = Button + Count on Side
Facebook Color Scheme = Dark
Hey developing a new web site
www.walterwoodskiing.com
can you please go there and tell me when i like something it pops up on Facebook with a random sponsors logo?
interesting... in the next module update I will get the module to use the default site logo (if one has been set).
is there a temp fix for this?
Could we have a simple means of turning on or off the different function calls. E.g. I have never used Buzz and never had any demand to from clients. A UI for turning on/off would be great.
In regards to doing it in the module itself? Any suggestions?
Otherwise great module, thanks very much!
absolutely... thats next on the dev list... I'll post an update soon.
Amazing. Loving the module. I wonder what the response time of putting this all through Views is? We had a triggered views series of social media links.
Which we use for our homepage icons and on articles.
We use a lot of views in our sites. Any ideas as to this versus just outputting on a block/node as it currently does.
Your module seems very lightweight and bundled. Also a personal request. Maybe include Behance or linked In? (Please :)
Great work. Is the module on the drupal.org/modules section yet.
Hi John,
Glad you like it :-)
I'm trying to think of a benefit to using views instead of this... do you think it would be more flexible?
The goal is to make the module extendible, where we can add/remove any number of additional links... based on the feedback I've received this week, looks like there is a lot of demand for development on this. I'll get a new version out soon.
still not on Drupal... I can't, for the life of me, figure out GIT. I'll get there... thanks everyone for bearing with me.
Hi John, great module :)
get an error when I like to fb, though. says:
"you like this. · Add comment · Error",
has worked up until then, and doesn't do this for #1 account - just other people (the ones I want to use it :(
I am running on localhost, though... will this make a difference?
Marsh - running on localhost is almost definitely the problem ;-)
Dude... awesome plugin...
I've searched for exactly this for days to add to a website I just designed :D
Worked perfectly after adding the css code snippet you provided above.
Thanks a lot.
Check it out on the website :D
Very nice module !
But to display buttons I must add the PHP Code on my .tpl.php. Don't know if it's a bug, I use the last version !
It will be very usefull if every buttons will have a "block" (three blocks : FB Button / Tweet Button / GBuzz Button). The module would be more flexible and personnalisable ... ;)
hey CHRISHRMNN, you shouldn't have to add any code to your theme... which theme are you using?
I'm not sure blocks is the right way to go about this... I think more themes would have trouble getting buttons to line up etc. Are you thinking it would be nice to re-order and show/hide certain buttons.... I am working on that ;-)
Doesn't install?
"beacon9_social-7-1.4.zip does not contain any .info files."
you'll need to extract (unzip) the files before you try to install.
Hi! Thank you for great module!
But could you help me.
I create pages with Views in Drupal 7. Is it possible that your module work on these pages? And I don't know why but I can't see buttons in teaser?
(I download latest version and choose "Full Nodes and Teasers".
Thanks.
Hi Valery, I will take a look and get back to you with an update for the module. Make sure you subscribe to replies so you know when there is a fix.
I just downloaded and installed the module - it's nice to have a simple, all in one solution. Got a question about the tweet part, though. I've seen some other modules that do this but I haven't had a moment to pull them apart - would it be possible to include a #tag or @tag in the 'content' of the generated tweet? It looks like either the module or twitter will populate the tweet with the page title, so there's some functionality there, I'm just not sure how to manipulate it.
yes - that certainly is possible. will definitely include that in the new version (coming soon)
Loving this module, any easy way to add things like google +1 and linkedin, etc?
Not right now unless you are comfortable with php coding. A suitable alternative might be AddThis.
Hi,
Great module, would also love google plus +1 and linkedin support.
And is this module coming to drupal.org? I think you will have more feedback and may be patch support on Drupal.
Greetings, Martijn
Just added support for Google Plus button rather than Google Buzz.
I tested the twitter button, but it doesn't seem to include the URL in the tweet? Am I missing something? Great module though, many thanks :)
the url does get included - you can see by clicking on the example above the comments.
it will probably get shortened by twitter...
You're right. I tried it on my test server and it works- seems it doesn't like localhost URLs, which is very odd. A cool feature for the future would be intigration with one, or many of, the URL shortener sites!
i submitted a question, but the return email address I used does not appear to be working. Have spent many, many hours on this question, but still unable to resolve it.
Although twitter does appear to give the entire url to a particular blog in the tweet, Facebook only gives a link to the site itself when a blog is "liked" that does not include the specific node.
Would you be so kind as to help. Thank you for this marvelous, marvelous plug in!!!!!
I am unable to see the response to my question. Am I missing how to access it, Jack? Again, I really appreciate the plug in and the time you're taking to help us with such questions. Boundless thanks and gratitude.
Hi adell shay - glad you like the plugin. if I understand correctly, you're saying that facebook isn't being sent the whole URL?
in the code, twitter and facebook are provided with the exact same URL, so there must be something weird going on with you're environment. can you provide a link to where I can view/debug a little?
Very nice module. Congratulations! But i have a question. What about if i don't want the facebook like? Let's say that i want to keep onl;y the tweet and google!
Awesome little module, thank you very much!
How can I get this to work with views or panels? I usually override the output of my content types.
AWESOME! dude this is the best i was exprementing with lot of things and this is the best solution, i have right now, even though a few tweaks are indeed still needed, like the tweet text that we want to use by default and also the spacing in between the buttons and also the choice to choose where to place this. But this is so cool!
In one of my nodes it loads after my fb comments, but all the rest, of the same content nodes, it shows before the comments, any ideas? Awesome plugin by the way!
sorry for the late reply. it's likely something to do with how your theme is setup.
e.g. if the $content['comments'] are output before $content['links'] in one of your node.tpl.php files
Do you plan to add other social site buttons as well? Like Pinterest and Stumble Upon
not at this stage... but if enough people want it, I would consider adding them in.
Thanks Dude. It's work very well !
glad you like it :-)
I've installed the module, selected everything on the configuration page, but it doesn't appear on the Blocks (disabled) page. I also noticed that while the download link says version 7-1.5.zip, it installs 7-1.2.zip.Am I missing something obvious?
Hi Colin - the buttons should show up on the nodes that you've configured. The module doesn't provide a block.