Twitter Tools Plugin Multiple forms help
-
Alright, I’ll try to explain this as best I can.
I have a client who wants users to be able to visit 3 pages. On each of these pages there needs to be a different form, each asking a specific question that users can answer to.
Right now, I’m using Twitter Tools, and through alot of trial and error, I’ve figured out how to adjust the php so that a different form shows up on each page. The users can successfully post to each form and have what they posted show up on twitter. The problem is adding the hash tags. I’d like to add a specific hash tag to the end of each answer depending on which question they responded to. I’ve figured out how to add a generic hash tag around this part of the code:
case 'aktt_post_tweet_sidebar': if (!empty($_POST['aktt_tweet_text']) && current_user_can('publish_posts')) { $tweet = new aktt_tweet(); $tweet->tw_text = stripslashes($_POST['aktt_tweet_text']); $tweet->tw_text .= ' #sm6b21'; if ($aktt->do_tweet($tweet)) { die(__('Tweet posted.', 'twitter-tools')); } else { die(__('Tweet post failed.', 'twitter-tools')); } } break;
However, figuring out a way to bring a variable in here so I can do something like:
$tweet->tw_text .= ' #sm6b2'.$variable;
Any suggestions? Or are you all really confused at this point?
- The topic ‘Twitter Tools Plugin Multiple forms help’ is closed to new replies.