Trackping Separator Plugin
Please move to Trackping Separator wiki page for latest information.
Traditional Chinese Instruction(outdated).
Consider a donation
.
The blog is a lie
Please move to Trackping Separator wiki page for latest information.
Traditional Chinese Instruction(outdated).
Consider a donation
.
Thanks for the plugin. Looks like the only thing we’re missing is a replacement for the comments_number() function, which still counts all comments and trackbacks together.
For instance, when you want to say “There have been 11 comments about this post”
In case you still want the old style (no. of comments + trackbacks/pingbacks), just use back the old function comments_number() !
Hi… I’m getting the following error message on my index:
Hello Serge,
Seems I have messed up with the instruction above. Please refer to the latest version.
Sorry for your inconvenience.
hey, thanks a lot this was what i was looking for for a while. just one question though, as elliott stated above i am not able to get my comment number on the single page to show just the number of comments. it is currently showing the number of tracbacks/pingbacks/comments total even though they are not displayed under the comments section. Everything else works fine so far though. thanks. please emailme or just reply here. thanks
Seems I have miss that function in the document.
There’s a function comments_only_number() which has the same effect as comments_number(), saves it only shows the number of comments.
To show pure numbers, I suggest
comments_only_number(’0′, ’1′, ‘%’);
Hope that helps
thanks for the help that was usefull, but one 2 more questions
I am trying to format it so that it looks like the ping back at the bottom of http://getk2.com/2006/02/welcome-to-k2/ so that it shows the date and whether its a pingback or trackback, but it doesn’t work with the function calls i tried. can u write out how to do this? also when i placed the favatar function into your loop it just displayed the same favatar over and over.
and finally how do i limit the length of a name of a commentor or pingback/trackback. because sometimes they are awfully long is there a code u can enter that automatically limits them to 30characters for example?
Seems you are using the trackback/pingback loop right?
Try to modify the loop variable for the track/pings you get from trackpings() to $comments, since favatars.php uses $comments as the reference to retrieve the icon from the database. The solution also applies on all other comment-loop based functions and plugins.
To limit the length of those fields, I think either you have to use substr() (or mb_substr() for i18n support) function from PHP. You could read about it here .
i am not able to retrive the time yet. i tried using comment_time; ?>
also how do you make it show whether the item is a trackback or a pingback so that i can say this for example
Google Blog
pingback at 03/30/06
Try this:
$comment->comment_date
where $comment is the comment loop variable.
however u may need some PHP time funcion to customize the output format.
hey sorry to bug you again. the comment date thing didn’t work. it just continously loops the last comment post. so it keeps using the same date a the last comment. and it does the same thing for the permalink ID number. how can i fix this.
Could you kindly post your code or mail it to me so that I could see what actually happens? Thanks
hey mk, i placed the code in a txt here http://www.sahaskatta.com/mycode.txt
my main goal with this is to be able to pass the new values through, because currently only the full comment, url and title are going through. i want it so that i can call upon the date time and anything such as a favicon that is accociated with them. Thanks for all the help.
“echo” is missing on line 2 at the comments.php code.
before trackpings(‘count’)
umm… I don’t know will the comment_time() function inside the trackback loop will do weird things… I suggest $comment->comment_date instead.
I’m using TPS and I love it. But I’m having the same problem as “sahas” above. All of my trackbacks/pingbacks will display the same date/time as the last comment.
I’ve tried $comment->comment_date, but it didn’t work for me. I can get the correct date using:
echo $trackback->comment_date
but I don’t particularly care for the output. How can I change the output format? I’d like it to display using m/d/Y h:i a, but I don’t know how.
Also, I’ve been testing nightly builds. TPS isn’t compatible with WP 2.1 alpha 2 (so it probably won’t be compatible with the final). Any plans to update?
Hello Joefish,
Umm.. no plans to update yet… I think I’ll wait for 2.1 beta.
Hi
thanks a lot for this plugin.
comments_only_number doesn’t work for me, it shows nothing
regards
Monika
Hello Monika,
Previously I’ve made a serious mistake that the plugin for download is broken and so the comments_only_number() doesn’t work. Please re-download the plugin again. Sorry for your inconvenience
.
Hi
I’ve donwnloaded the plugin since ten minutes ago ….
I ‘m too stupid
it doesn’t work,
I activate the plugin
opened comments.php
..
and so on.....
but it doesn’t show anything, neither an error nor the numbers
is this the false place for this code?
regards and thanks for your patient
Monika
Monika:
Oops, cannot see your code, probably filtered by WordPress
If you wish to send me sample, either you could use pasteboard, or e-mail me directly. Thanks
Sorry, but TMC-page comments is closed.
TinyMCEcomments don’t work in my WordPress 2.3.3. See picture http://img301.imageshack.us/img301/5172/tinywf7.png Why? This work good in your blog and many others but don’t work in my blog. I deaktivate plugin now, picture helps well.
Would you help me, thanks very much. Sorry bad english.
Hey There,
Just downloaded v2.0.1, and there is a bug where you forgot to put a break; in your case statement. Therefore if you want a comment count, it will always return 0.
Change the lines:
switch($type) {
case ‘trackback’:
$sql .= “= ‘trackback’”;
break;
case ‘pingback’:
$sql .= “= ‘pingback’”;
break;
case ‘comment’:
$sql .= “= ””;
default:
$sql .= “REGEXP ‘^(trackback|pingback)$’”;
to:
switch($type) {
case ‘trackback’:
$sql .= “= ‘trackback’”;
break;
case ‘pingback’:
$sql .= “= ‘pingback’”;
break;
case ‘comment’:
$sql .= “= ””;
break;
default:
$sql .= “REGEXP ‘^(trackback|pingback)$’”;
@Ricky : Thanks for reminding! I will fix the bug later today.
Awesome plugin. Thank you very much.
I have a question: can I (You) somehow to reduce sql requests? with cache optimization your plugin increase sql-query from 6 to 30 on the main page.
@Dimitry : If you like you could derive your own plugin from mine and improve it.