Does anyone know a smart way to do this?

The regular Service Links settings don't provide an option for this since the thank you page is not a content type / taxonomy.

Comments

remkovdz’s picture

Any ideas?

TheCrow’s picture

Status: Active » Closed (works as designed)

Use the block for not node pages.. either code a custom module using service_links_render_some() as mentionded by Simon.

remkovdz’s picture

Ok, the block for not-node page works fine. However, I need the to alter the standard Tweet text just for this page (not al other pages), is that possible?

I also found this, which works fine:

<?php
  print implode(' ', service_links_render($node, FALSE));
?>

Can I alter that code so that I can choose a specific tweet text? I'm not a coder...

TheCrow’s picture

if you want build your custom block (using PHP filter) altering some item, without write a custom module, you can try this:

$settings = _service_links_load_settings();

_service_links_get_tags(NULL, $settings);

$link = array(
    'name' => 'Custom label',
    'description' => t('Custom description'),
    'link' => 'http://twitter.com/share?url=<raw-encoded-short-url>&text=<raw-encoded-title>',
  );

print implode(' ', _service_links_render('twitter', $link, $settings, FALSE, NULL));

Edit: Forgot the implode function!

remkovdz’s picture

That is exactly what I want. I tried it, and it outputs only 'Array'? Thanks!

TheCrow’s picture

i forgot the implode() function! Rewrote directly above, should work now :)