This might not even be an issue, but I just can't find how to do it.
I created a custom content type "Blog" that holds blog - like newsitems

on the page www.site.com/blog I generate a list of the most recent "blog" items , by using Views2.

I have the "blog" content type checkbox switched on, on the Tweetmeme config page , but the Tweetmeme badge doesn't show up.

what is the php statement for embedding the Tweetmeme badge on all the posts ?
I got it working now by embedding the Tweetmeme code as proposed on the tweetmeme site.

Documentation on the tweetmeme site reads the following, but I simply can't grasp what it means : "Basically what we’ve done here is include some php to tell the embed code the specific URL for each post – without this php it will only work on full-node view pages and not Views/Panels that list multiple nodes." (source : http://help.tweetmeme.com/2010/01/04/adding-tweetmeme-to-your-drupal-site/)

Thanx

Comments

deville’s picture

Enclose the script in a div (to style) and include the tweetmeme script:

<div class="tweetmeme tweetmeme-button">
<script type="text/javascript">
tweetmeme_style = 'compact';
tweetmeme_url = 'http://mysite.com<?php print $node_url ?>';
tweetmeme_source = 'twitterhandle';
</script>
<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script>
</div>
brunox’s picture

Just a tweak to the tweetmeme_url:

<div class="tweetmeme tweetmeme-button">
<script type="text/javascript">
tweetmeme_style = 'compact';
tweetmeme_url = 'http://'.$_SERVER['HTTP_HOST'].base_path()'<?php print $node_url ?>';
tweetmeme_source = 'twitterhandle';
</script>
<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script>
</div>