So If I create a cck nodefield where the person can enter a hashtag, how would I take that, precede it with # and use it for the search term?

Comments

whatsnewsisyphus’s picture

I intend to display the results dynamically in every node page with a hashtag cck field

irakli’s picture

You can either write a theme preprocessor or embed appropriate logic/twitter_pull function call in a node-[type].tpl.php

irakli’s picture

Status: Active » Fixed
whatsnewsisyphus’s picture

Status: Fixed » Active

how can I do the the theme preprocessor one? I am assuming that the node-type one I can do by printing a node field value within the function

cookiesunshinex’s picture

Could you share an example of how to do this. I want to do the exact same thing.

I want to have nodes for celebrities or companies for example. I would like to have a CCK field where I can place that Celebrity or Company's twitter ID, and then display the 5 latest tweets on the node for that entity.

Is there an easier way to do what I'm trying to do?

jonivanbogaert’s picture

Hi cookiesunshinex, I'm doing something similar here.
I created a custom user-profile.tpl.php and in that custom file I put:

	$twittername = '@' . $account->profile_twitter;
	if (function_exists('twitter_pull_render')) { print twitter_pull_render($twittername, "Twitter feed", 10); }