Plugin Directory

Tango Smileys Extended

How do you input each smiley?

  1. CLICK TO INSERT: Click the PIGGY icon in TinyMCE while in Visual editing mode to add a smiley to your post. If CTI is enabled for comments, you simply click the smiley you want and the shorthand will be inserted into the comment box.
  2. MANUALLY: For a complete and up-to-date list of all available smileys and the shorthand to input each one, please check the plugin homepage here.

How do I add support to my theme for CTI for comments?

  1. Open the comments.php file for your theme and look for the text <?php do_action('comment_form', $post->ID); ?>.
  2. If the text is missing, locate your comment textarea which should be something like <textarea name="comment" id="comment"></textarea> and add <?php do_action('comment_form', $post->ID); ?> either above or below the textarea. Wherever you add this line, the CTI scrollbox will appear.
  3. SEE THE NEXT QUESTION FOR MORE OPTIONS!

How do I add the CTI interface to a textarea, including the one for comments?

  1. You can use the function tse_cti_anywhere( 'target', OUTPUT ) where 'target' is the ID of the textarea you are using and OUTPUT is boolean TRUE or FALSE.
  2. Set OUTPUT to TRUE to echo the CTI smileys to the page, and FALSE to use the output of the function in a variable.
  3. 'target' defaults to 'comment' if not set.
  4. OUTPUT defaults to TRUE if not set.
  5. TO STYLE: You can add CSS to your theme's stylesheet. SEE EXAMPLE #4 BELOW.
  6. SEE THE PREVIOUS QUESTION FOR ANOTHER OPTION FOR THE COMMENT TEXTAREA.

EXAMPLES

  1. Use <?php tse_cti_anywhere(); ?> to manually add the CTI smileys to your comment form. This will automatically print the clickable smileys to the comment form in whichever location you use. If you add this before the textarea, you get smileys before the textarea. If you add this after the textarea, you get smileys after the textarea. If you use this manual function, please uncheck Enable CTI for comments on the TSE Options page.
  2. Use <?php tse_cti_anywhere( 'bananas' ); ?> to print clickable smileys for use on the textarea defined as <textarea id="bananas"></textarea>.
  3. Use $variable = tse_cti_anywhere( 'oranges', false ); to use $variable elsewhere in PHP. $variable reverences <textarea id="oranges"></textarea> and can be used as <?php echo $variable; ?> on the form containing the textarea.
  4. You can style the box containing the CTI smileys in your theme's stylesheet. For tse_cti_anywhere( 'grapes', true ) you can reference the box as #tseCTIsmileys-grapes and for tse_cti_anywhere( 'apples', true ) you can reference the box as #tseCTIsmileys-apples.

Download

FYI

Compatibility beta

Your Setup

Log in to vote.

The Consensus

No data
100,1,1 0,1,0
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(5 ratings)