Facebook sharing link

znation - March 14, 2007 - 08:50
Project:Service links
Version:HEAD
Component:Code
Category:feature request
Priority:minor
Assigned:Unassigned
Status:patch (code needs review)
Description

Add a facebook sharing link to the Settings and links. I actually added one and tested it; it seems to work. It required adding an "onclick" javascript piece to the links as they output, but I made the new argument to theme_service_links_build_link NULL by default. Here's a patch for it (with "diff -Naur service_links.module.orig service_links.module").

AttachmentSize
service_links.module_2.patch3.11 KB

#1

quicksketch - March 15, 2007 - 00:08
Status:patch (code needs review)» patch (code needs work)

This functionality should definately be included as part of the service_links module. I don't think it's necessary to add the onclick handler though. All it does is open the link in a new window. This functionality should be applied to all service links equally, not just to the facebook link.

#2

quicksketch - March 15, 2007 - 00:25

Attached is a no-javascript version for 4.7

AttachmentSize
facebook47.patch1.61 KB

#3

quicksketch - March 15, 2007 - 00:28
Version:4.7.x-1.x-dev» HEAD
Status:patch (code needs work)» patch (code needs review)

And a separate patch for 5.

The icon for facebook should be: http://static.ak.facebook.com/images/share/facebook_share_icon.gif, renamed as 'facebook.gif'

AttachmentSize
facebook5.patch1.59 KB

#4

quicksketch - March 28, 2007 - 06:01

New patch applies to HEAD. Moves Facebook link to a more reasonable location and uses a png image instead of gif.

AttachmentSize
service_links_facebook.patch1.64 KB
 
 

Drupal is a registered trademark of Dries Buytaert.