Closed (won't fix)
Project:
Service links
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 Apr 2008 at 17:28 UTC
Updated:
20 Oct 2010 at 10:32 UTC
¿Can you put more bookmarks links or you want only the more popular english bookmarks links?
If you want to add some spanish bookmarks links (meneame, barrapunto and fresqui) here are the code:
In service_links.module in the function service_links_admin_settings
$form['what_links_to_show']['service_links_show_meneame'] = array(
'#type' => 'checkbox',
'#title' => t('Show Meneame link'),
'#return_value' => 1,
'#default_value' => variable_get('service_links_show_meneame', 1),
);
$form['what_links_to_show']['service_links_show_fresqui'] = array(
'#type' => 'checkbox',
'#title' => t('Show Fresqui link'),
'#return_value' => 1,
'#default_value' => variable_get('service_links_show_fresqui', 1),
);
$form['what_links_to_show']['service_links_show_barrapunto'] = array(
'#type' => 'checkbox',
'#title' => t('Show Barrapunto link'),
'#return_value' => 1,
'#default_value' => variable_get('service_links_show_barrapunto', 1),
);
and in the function service_links_render
if (variable_get('service_links_show_meneame', 0)) {
$links['service_links_meneame'] = theme('service_links_build_link', t('Meneame'), "http://www.meneame.net/submit.php?url=$url", t('Menea este post en meneame.net.'), 'images/meneame.png', $nodelink);
}
if (variable_get('service_links_show_fresqui', 0)) {
$fresqui = theme('service_links_build_link', t('fresqui'), "http://tec.fresqui.com/post?url=$url&title=$title", t('Submit this post on tec.fresqui.com.'), 'images/fresqui.png', $nodelink);
$fresqui = str_replace("?url=http:",'?url=http%3A',$fresqui); /* Si ponemos no ponemos %3A en lugar de : muestra el error warning: parse_url*/
$links['service_links_fresqui'] = $fresqui;
}
if (variable_get('service_links_show_barrapunto', 0)) {
$links[] = theme('service_links_build_link', t('barrapunto'), 'http://barrapunto.com/submit.pl?story=He+leido+en+' ."$site_name" .'+el+articulo+<a href="' ."$url" .'">' ."$title</a>&subj=$title.", t('Publish this post on barrapunto.com.'), 'images/barrapunto.png', $nodelink);
}
The images are attached.
![]()
![]()
![]()
The authors of this code and images (well, the images maybe not) are Bytecoders
| Comment | File | Size | Author |
|---|---|---|---|
| meneame.png | 1017 bytes | carlitus | |
| fresqui.png | 340 bytes | carlitus | |
| barrapunto.png | 1.13 KB | carlitus |
Comments
Comment #1
wayland76 commentedI'd suggest that resolving this bug:
http://drupal.org/node/253758
...would also fix these problems, and in a more flexible way.
Comment #2
davebv commentedI would like you to add those new links (meneame, barrapunto and fresqui),please, for those popupular spanish networks. I'd appreciate it really much! thank you!!
Comment #3
c-c-m commentedIs it possible to implement this code (#1) into version 5.x? I'm willing to have a meneame button!
Comment #4
wayland76 commentedIf you're referring to the link to WIJI, then the answer is no, unless someone backports the WIJI module to 5.x (currently only exists for 6.x).
Comment #5
esclapes commentedSusbscribe.
I will patch the module and it will save me time if next time you update the module you include this.
Thanks
Comment #6
TheCrow commentedservices already in 2.x, 1.x is not mantained.