Is it possible to pull comments from facebook into your blog?

I just added this feature to the beta branch of Simple Facebook Connect. It pulls comments back from auto-published stories and integrates them into the normal comments stream. Features: Integrated with Auto-Publish. When you post, and it’s auto-published to your Page or Profile, SFC notices and saves the resulting story IDs for later polling. Fast. … Read more

setting comments off as default for pages and custom post types?

From what I understand, you want to set pages and some custom post types to have commenting ‘off’ by default, while posts will still use the default option (i.e. commenting ‘on’). If this is the case, the following function will do it. function default_comments_off( $data ) { if( $data[‘post_type’] == ‘page’ && $data[‘post_status’] == ‘auto-draft’ … Read more

How to rearrange fields in comment_form()

That’s pretty simple. You just have to take the textarea out of the default fields – filter ‘comment_form_defaults’ – and print it on the action ‘comment_form_top’: <?php # -*- coding: utf-8 -*- /** * Plugin Name: T5 Comment Textarea On Top * Description: Makes the textarea the first field of the comment form. * Version: … Read more

Why do I get comment spam even with Akismet and Captcha?

On the Akismet side, a few things to note. First, in wp-admin under ‘Plugins -> Akismet Configuration’ is everything green? You mentioned that you confirmed the API key is correct. Did you check the ‘Server Connectivity’ section? All of the IP addresses listed should be green. If not then you server isn’t able to make … Read more

R: Comment out block of code

Most of the editors take some kind of shortcut to comment out blocks of code. The default editors use something like command or control and single quote to comment out selected lines of code. In RStudio it’s Command or Control+/. Check in your editor. It’s still commenting line by line, but they also uncomment selected lines as well. … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)