Articles of comments

WordPress comments – delimiter “/” not found

I’m using WordPress comments as a “chat”. Not real time chat, it’s more like comments with more flow. But when 4-5 or more members are using coments at the same time, I get this message: Not sure why this happens or if its because more than one user is using it at the same time. […]

get_comment_author_link not working properly

I have this snippet: <span><a href=”<?php bloginfo(‘url’); ?>/writer/<?php echo get_comment_author_link(); ?>”><?php echo get_comment_author_link(); ?></a></span> I am displaying the username of the author but it’s weird because it works well on the posts… Beneath the post, the username is linked like /writer/username, which is fine, but beneath the comment, the username is linked like /writer/Username. So […]

Does Jetpack store comments in local database also?

I want to implement JetPack comments plugin on my external WordPress site. I assume it stores the comments in the local database of the website also. Is it possible to disable that option so that it does not store comments in local database?

Limit action in comment according to IP

I’ve been trying to set something that might be really easy (but I never had to do this before) : add_filter(‘pre_comment_user_ip’, ‘limit_commentator’); function limit_commentator( $comment ) { $comment_field_value = get_comment_meta( $comment->comment_ID, ‘some_custom_field’, true ); //my code } I think this is the right hook but how can I limit the ability for commentators to post […]

Embedding Youtube video on comments

In my posts, you can embed a video of Youtube by adding the link to the post. You don’t have to do anything beside that. On my comments, I can’t do the same thing. Is it possible to embed Youtube video’s by putting the link only (or a different manner, but I prefer the first), […]

Comment_author_url doing nothing

I have this function: <?php function top_comment_authors($amount = 5) { global $wpdb; $results = $wpdb->get_results(‘ SELECT COUNT(comment_author_email) AS comments_count, comment_author_email, comment_author, comment_author_url FROM ‘.$wpdb->comments.’ WHERE comment_author_email != “” AND comment_type = “” AND comment_approved = 1 GROUP BY comment_author_email ORDER BY comments_count DESC, comment_author ASC LIMIT ‘.$amount ); foreach($results as $result) { $output .= “<li><a […]

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 this. add_filter(‘comment_form_defaults’, ‘change_comment_form_defaults’); function change_comment_form_defaults($default) { $commenter = wp_get_current_commenter(); $default[‘fields’][‘comment’] .= ‘<p class=”comment-form-author”>’ […]

How to get recent comment link

I’m getting 5 recent comments into my sidebar using the following code: <?php $recent_comments = get_comments(‘status=approve&number=5′); ?> <?php foreach ($recent_comments as $comment) { ?> <li> <a href=”#”><?php echo get_avatar( $comment, ’60’ ); ?> </a> <div> <a href=”<?php echo get_permalink($comment->ID); ?>” title=”on <?php echo $comment->post_title; ?>”><?php echo strip_tags($comment->comment_author); ?> </a><br /> <span><?php echo wp_html_excerpt( $comment->comment_content, 35 […]

Error: Can´t access facebook comment plugin admin page

The plugin i’m talking about is facebook–comments-plugin The problem is i can´t access admin page: /wp-admin/options-general.php?page=fbcomments This error is happening: PHP Warning: DOMDocument::load() [domdocument.load]: URL file-access is disabled in the server configuration in E:\home\intothebac\Web\wp-content\plugins\facebook-comments-plugin\class-admin.php on line 194 PHP Warning: DOMDocument::load(http://www.facebook.com/translations/FacebookLocales.xml) [domdocument.load]: failed to open stream: no suitable wrapper could be found in E:\home\intothebac\Web\wp-content\plugins\facebook-comments-plugin\class-admin.php on line […]

Customizing Comments

Hi I want to customize the text with the arrows pointed at at the image I have uploaded. I have managed to customize some but I cannot find the file to customize the rest. Many thanks its on local host, and it is a custom theme.