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

diegogers’s picture

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

faunapolis’s picture

How do you implement this function in the theme template?

Thank you

http://www.faunapolis.org/

faunapolis’s picture

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/

pedroz’s picture

// 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>";
BeaPower’s picture

How about for drupal 7?