Community & Support

CCK Link + Gotwo url redirection?

Hi, is it possible in some way to automatically make a link in a cck link field to transform into a Go link?

What I need is to count each click on the link.

Thanks.

Comments

Found it

I used the gotwo_get_url($url) function in the theme template.

Gotwo module

How do you implement this function in the theme template?

Thank you

http://www.faunapolis.org/

CCK extras has Link Redirect

This might be promising for this purpose, I will try it in a near future:

http://drupal.org/project/cck_extras

http://www.faunapolis.org/

<?php
// remove 'http://' if it's already in the url
$item['url'] = str_replace("http://","",$item['url']);
// output actual gotwo link
echo "<a href=\"".gotwo_get_url('http://'.$item['url'])."\">".$item['title']."</a>";
?>
nobody click here