Changeset 160148
- Timestamp:
- 10/03/2009 08:58:01 AM (16 years ago)
- File:
-
- 1 edited
-
twitterlink-comments/trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
twitterlink-comments/trunk/readme.txt
r160145 r160148 61 61 == Configuration == 62 62 63 * Add twitter field automatically -> Choose NO if you wish to add the field to your comments.php template yourself. (use name="atf_twitter_id")63 * Add twitter field automatically -> Choose NO if you wish to add the field to your comments.php template yourself. (use `name="atf_twitter_id"`) 64 64 65 65 * CSS classes -> The name of the class to use for the DIV and INPUT. Only alphanumeric and hyphen characters allowed … … 71 71 * Link Format -> You can configure how the link is shown here. [username] will be replaced by the Twitter username of the user. Choose to open the link in a new window and if the link uses nofollow or not 72 72 73 * Link Format -> manual : Use this if you want to control the position and format of the follow link. use `if($comment->twitlinkid){ // some code that uses $comment->twitlinkid }` example : `$twitterusername = $comment->twitlinkid; echo '<a href="http://twitter.com/'.$twitterusername.'">@'.$twitterusername.'</a>';` 73 * Link Format -> manual : Use this if you want to control the position and format of the follow link. use 74 `if($comment->twitlinkid){ // some code that uses $comment->twitlinkid }` 75 example : 76 `$twitterusername = $comment->twitlinkid; 77 echo '<a href="http://twitter.com/'.$twitterusername.'">@'.$twitterusername.'</a>';`
Note: See TracChangeset
for help on using the changeset viewer.