2005
CA-Credits
Sponsored Links
Parameters
Beginning from v0.5, the following parameters are added: $max_length, $list, $zero, $one, $more
Beginning from v1.0, no more parameter required to call ca_credits() function. It will automatically use the default setting and also use one random pseudo-output format available. If you want to use specific pseudo-output format, use the new function: ca_credits_custom().
Beginning from v1.3, $hide is added to the parameter list.
There are 7 11 12 parameters:
ca_credits_custom($before, $after, $delimiter, $before_last, $max_item, $max_length, $list, $zero, $one, $more, $post_idx, $print, $hide)
- $before and $after
String, define the output format for text before and after the commentators list output. - $delimiter
String, define the output format for text between each commentator’s name. - $before_last
String, define the output format for text before the last commentator’s name. - $max_item
Integer, number of maximum commentator’s name to display. Default is 5. Set it to 0 to show all names. - $max_length
Integer, maximum comment content characters displayed (keyword %comment%). Default is 50. Set it to 0 to show all names. - $list
String, define the output format for each commentator display. The default is commentator’s name with a link to their website. - $zero
String, define the output format for text displayed when there’s no comments for the post. The default is ‘No Comment Yet‘ text with a link to the post’s comment form. - $one and $more
String, define the output format for text displayed when there’s 1 or more comments for the post. The default is ‘Only 1 Comment‘ text and ‘%num_comment% Comments‘, both with link to the post’s comment form. Use keyword %comment_link_text% to automatically choose between $one and $more, depend on the number of comments. - $post_idx
Integer, post ID where the commentator’s name should be feed. By default, CA-Credits will use the current post ID.
Tips: you can activate global comment credits mode by entering -1 as $post_idx value. - $print
Boolean, whether to show the output or not. Default is true - $hide
Boolean, whether to hide/show credit for post author’s comment. Default is true (hide).
Keywords
There are several keywords you can use with the output format parameter ($before, $after, $delimiter, $before_last, $list, $more) :
- %name%, %url%, and %comment%: commentator’s info (name, website, and content).
- %num_comment%: number of commentator for the post.
- %num_comment_real%: number of comments for the post.
This keyword is deprecated on v1.3. Use %num_comments% instead. - %num_comments%: number of comments for the post.
- %comments_link%: link to the comment form.
- %comments_link_text%: text between $one and $more parameter, selected automatically based on the number of comments.
- %comment_link%: link to the commentator’s comment.
Note: $more parameter ONLY support %num_comment% keyword.
Pseudo-Output Format
Please read the documentation on the option page for more information.
Example
Hello A, B, C, D, and E. Thanks for the comments!
[php]ca_credits(’Hello ‘,’. Thanks for the comments!’);[/php]
Thank you A | B | C | D | E for your comments.
[php]ca_credits(’Thank you ‘,’ for your comments.’,’ | ‘,’ | ‘);[/php]
Kudos A, B, and C.
[php]ca_credits(’Kudos ‘,’.',’, ‘,’, and ‘,3);[/php]



I was sent here by a wordpress guru — and now I’m lost. I’m looking for the CA comment plug-in that creates a link for the commentors — and allows the blog owner to write comments to each commenter within the comment. Check out http://thiseclecticlife.com/2007/05/02/thursday-thirteen-8-my-last-meal-before-i-die-et/#comment-902 to see what I mean. She says she is using your CA plug-in — but I can’t find it. It’s great plug-in by the way.
Thanks,
Susie
well, you’re already on the right page
the plugin is called CA-Credits and you can download it from the link above. However, please note that I’m no longer support this plugin and haven’t try it with Wordpress 2.x.
OK. Thank you so much for directing me to the right place. However, I have wordpress 2.x (the latest current version.) I’m going to pass until ta version for 2.x comes out — I wouldn’t be able to fix the bug, if there was one! Thank you.
[…] Visit […]
[…] people’s plugins, I did create my own plugins as well. For example: CA-Weton, CA-Weekday, CA-Credits, and […]