0
votes
3answers
87 views

How to change commenter links to /user/user_id?

I would like to change the commenter links as shown in this screenshot: In my test plugin at GitHub I have first tried the following code: define('PROFILE', '<a href="/user/%s" rel="external ...
1
vote
1answer
72 views

$reverse_top_level works the opposite way according to Codex?

The Codex for wp_list_comments states $reverse_top_level (boolean) (optional) Setting this to true will display the most recent comment first then going back in order. For my it is actually the ...
0
votes
1answer
40 views

How to get the number of pages when paginating comments?

I want to display threaded comments via ajax using pagination. If I use this code to display comments for page 1 how can I know if there is something more to be displayed on page 2? If there is ...
0
votes
1answer
549 views

How does “Your comment is awaiting moderation” work?

The question here is if someone could help me to make the comment "Your comment is awaiting moderation" work correctly for custom page. It works ok for standard Wordpress page but not for my own page. ...
1
vote
1answer
112 views

Can wp_list_comments output into variable?

Is there any way how to output wp_list_comments() into a variable? Something like $output = wp_list_comments(array('reverse_top_level' => false ), $comments); I am writing a plugin and it would ...
0
votes
1answer
392 views

Add a Custom Field in Comment Box next to the Text area

Good Day. I Recently try to figure out for adding the custom field in the comment box it working fine. Still I need to know how to add the custom field after the comment box. I am not sure how to do ...
0
votes
1answer
43 views

how to get the top 10 popular blogs

Our wordpress sites have many many users, each of them have an blog account, they can write posts,comments and so on. Now I want to find out the top 10 popular blogs, according to or order by ...
1
vote
1answer
126 views

Why are two functions over-riding each other?

I have function in my plugin that is: add_filter('comment_text', 'commentimage_comment_text'); function commentimage_comment_text($comment = '') { $options = get_option('commentimage'); $id = ...
2
votes
1answer
58 views

Plugin: How should I handle deleting comments?

I am writing a plugin that creates an api for a custom post type. Users can comments on the custom post types and the comments are added using WP core comment methods. My question arises when trying ...
1
vote
1answer
74 views

Creating a plugin to sanitize comment and the url field before display only

I want to create a plugin to sanitize comment and mainly the url field before display only (not before adding to database), to filter the url fields and only allow displaying this field only if it ...
4
votes
1answer
317 views

Writing a plugin that notify my friends of new post that mentions(@) them

For example, I write a new post with content "Today I'm happy, because I finally met the girl that @David told me about bla blah..." Once the post is published, there should be an email notification ...
2
votes
1answer
55 views

comment_email hook doesn't seem to work for comment editor field

I am building a plugin that allows users to PPK encrypt their users' IP/email data. Thus, IP/email data is set to dummy values in the comments table and encrypted values are stored in corresponding ...
0
votes
1answer
154 views

Custom avatars in wordpress comments?

I'm looking for a way to let people connect with facebook when posting comments, and to use their facebook avatars as the avatar for the comments. How can this be done? Do I need to create a seperate ...
0
votes
1answer
137 views

custom comments form for custom post type

Hello everyone I am creating a theme dedicates to hotels display and booking in which I have created a custom post type 'Hotels' so now I want a mechanism to book the hotel rooms and a "book now" ...
2
votes
1answer
270 views

Show comments fields in two columns

I am using comment_form(); in loop-single.php file to show the comment form. I have the following fields in it: Name, Email, Website, Title, Comment. Currently all these form fields show underneath ...
1
vote
2answers
356 views

Plugin Functionality Only for Editor and Administrator

I've never actually written a Wordpress plugin before, so this is my first crack at it. Basically, the plugin is for multi-author blogs where post authors must submit their post for review. The ...
1
vote
2answers
601 views

How could I create a 'private comments' section on a custom post type?

Related to my How do I create a custom post type for a training CMS in WordPress? question, I would like to know how I can create a private comments section for a custom post type (or any post type ...
0
votes
1answer
154 views

disable defaault wordpress comments from a plugin

I am modifying the facebook comments plugin to my purposes. What I'd like to do is have it remove Wordpress native comments automatically if it is enabled- in fact what I'd really like it to do is use ...
1
vote
1answer
320 views

How do I alter the comment form 'allowed tags' text in a plugin?

I'm using the PHP Markdown plugin, and I'd like to modify it so that it adds some text to the bottom of the comment form indicating that Markdown is supported in comments. I've been modifying my ...
0
votes
2answers
356 views

Comments do not respect display_name setting, how to make plugin to overcome this

When I post something on Wordpress, it's posted with my display name. However if I change my display name, posts posted by me will be updated with the new author. Comments will stay with the old ...
1
vote
2answers
218 views

How to integrate CLEditor to comment system?

I would like to improve the comment editing for user by adding a simple WYSIWYG editor, and I selected CLEditor as possible good candidate because it is light, customizable and jQuery based. I ...
0
votes
1answer
520 views

How can I get Wordpress to save comments in markdown format?

I love markdown, and I have the Wordpress markdown-for-wordpress-and-bbpress parsing markdown in my posts and comments. However, I've noticed that Wordpress saves the comments rendered in html ...
0
votes
1answer
419 views

Hook to See if Comment got a Reply?

Okay I know the title is pretty vague but I didn't know how to articulate it. Basically, I want a plugin that sends email notifications to users who opted-in only if they specifically got replied to. ...