¿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.

Only local images are allowed.
Only local images are allowed.
Only local images are allowed.

The authors of this code and images (well, the images maybe not) are Bytecoders

CommentFileSizeAuthor
meneame.png1017 bytescarlitus
fresqui.png340 bytescarlitus
barrapunto.png1.13 KBcarlitus

Comments

wayland76’s picture

I'd suggest that resolving this bug:

http://drupal.org/node/253758

...would also fix these problems, and in a more flexible way.

davebv’s picture

I 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!!

c-c-m’s picture

Is it possible to implement this code (#1) into version 5.x? I'm willing to have a meneame button!

wayland76’s picture

If 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).

esclapes’s picture

Susbscribe.

I will patch the module and it will save me time if next time you update the module you include this.

Thanks

TheCrow’s picture

Status: Active » Closed (won't fix)

services already in 2.x, 1.x is not mantained.