modtang
Forum Replies Created
Viewing 1 replies (of 1 total)
-
Forum: Plugins
In reply to: Adding Custom Fields to Press ThisIt’s actually pretty easy to do. I just threw together the code to attach Twitter Tools to it. You need the press-this.php file, the plugin file of what you want to add to it and you need to isolate the relevant code from that plugin file. Here’s what I did as an example.
<!-- Post to Twitter Start (Experimental) --> <div id="tagsdiv-post_tag" class="stuffbox" > <div class="handlediv" title="<?php _e( 'Click to toggle' ); ?>"> <br /> </div> <h3><span><?php _e('Send To Twitter'); ?></span></h3> <div class="inside"> <div class="tagsdiv" id="post_tag"> <p> <input name="aktt_notify_twitter" id="aktt_notify_twitter_yes" value="yes" checked="checked" type="radio"> <label for="aktt_notify_twitter_yes">Yes</label> <input name="aktt_notify_twitter" id="aktt_notify_twitter_no" value="no" type="radio"> <label for="aktt_notify_twitter_no">No</label> </p> <p> <label for="_aktt_hash_meta">#hashtags:</label> <input id="_aktt_hash_meta" name="_aktt_hash_meta" value="#yourhashtag" type="text"> </p> </div> </div> </div> <!-- Post to Twitter End (Experimental) -->
I just copied the Tags box and replaced the form elements with those from Twitter Tools. I put the new code under the Tags box and uploaded. It works exactly as it does in full post view.
Hope this helps a little. ??
Viewing 1 replies (of 1 total)