29 Oct
Posted by: admin in: SocioFluid
I received a few requests on openversion and on this blog from sociofluid users to have the option to add their own buttons. For the moment I don’t think it’s a good idea to implement it in sociofluid admin panel. The main reason is the performance, the data need to be stored somewhere and I don’t think it’s a good option to store it in the database.
I’ve changed the structure of the plugin and now it’s really simple to add new buttons. All you have to do is to go to function get_the_checks() in sociofluid.php file using any editor and add a new item. You don’t really need php knowledge to do it. Here is an example (the bold characters are the lines you have to add for a new button, you must take care to commas to have them in place) :
function get_the_checks()
{
$checks = array(
“check_digg” => array(
0 => ‘digg’,
1 => ‘http://digg.com/submit?phase=2&url=%s&title=%s’,
2 => ‘Digg’
),
….
“check_jamespot” => array(
0 => ‘jamespot’,
1 => ‘http://www.jamespot.com/?action=spotit&url=%s&title=%s’,
2 => ‘Jamespot’
),
“check_meneame” => array(
0 => ‘meneame’,
1 => ‘http://meneame.net/submit.php?url=%s&title=%s’,
2 => ‘Meneame’
) ,
”check_newbookmarkingsite” => array(
0 => ‘newbookmarkingsite’,
1 => ‘http://newbookmarkingsite.com/submit.php?url=%s&title=%s’,
2 => ‘New Bookmarking Site’
)
);
return $checks;
}
The first %s is the place where the your post/blog url will be inserted and the second one is the title.
Then you have to add images for the specific botton in the images directory of the sociofluid plugin. The following images are required(depending on what you select in sociofluid panel 2 images will be used):
Please let me know if you add a new button to your blog an you would like to provide me the images to add the buttons to the plugin(and if the license of the images allows it to be distributed).
9 Responses
PzheL
29|Oct|2008 1Hey.. Thanks for the tutorial.. CheerS!
Simon
30|Oct|2008 2Do you use Sociofluid on this blog?
admin
30|Oct|2008 3yes, you can see it at the end of each post
daddy design
12|Jan|2009 4We have created a “email this post” icon and code using sociofluid. You can see it here:
http://www.daddydesign.com/wordpress/
We are now working on a RSS Subscribe icon/code for this amazing plugin.
The tutorial was great.. thank you!
daddy design
12|Jan|2009 5also, for the email icon. We were able to make the post link be either in subject or in thebody. What I was really wanting to do was put it in the body and have the subject be the title of my blog. Does anyone know how to that?
admin
12|Jan|2009 6Hi, insert an element as described in this tutorial containing the following link: mailto:?body=%s&subject=%s
daddy design
12|Jan|2009 7that still just shows the link in the body.. and that’s what I had already. I want that plus I want the Subject to have the name of my company in it. Is that possible?
daddy design
12|Jan|2009 8haha. Never mind. I figured it out.
mailto:?body=%s&title=%s&subject=CompanyName
Noa
15|Jan|2009 9The plugin is amazing! and with the tutorial it has been a child play to customize it!
Thanks very much!
As I’m Italian and I needed italian bookmarkings, I’ve added lots of new addresses. If you want just contact me by email and I’ll send you a txt file and a folder with all the info you need for an italian version of this great plugin!
Leave a reply
Search
Categories
Recent Posts
Recent Comments
Tags
A design creation of Design Disease
Copyright © 2007 - ImproveSeo.info - is proudly powered by WordPress
InSense 1.0 Theme by Design Disease