Support » Plugins and Hacks » [Plugin: AJAXed WordPress] Comments don’t thread

  • Resolved JunoMagic

    (@junomagic)


    I just upgraded to WP 2.5 and installed Ajaxed WordPress. I think I enabled the correct modules and picked the relevant options. But I can’t get the comments to thread, or the preview box to show up.

Viewing 3 replies - 1 through 3 (of 3 total)
  • It looks like you are using a different threaded comments plugin now. If you are trying to switch to AWP, did you make edits to your theme? AWP assumes that the function comments_template() is still being called by your theme.

    Oops, I’m an idiot – I was asking not because of the JunoMagic blog, but because of my personal blog. And yeah, it looks like that function is not being called by my theme (which happens to be my first attempt at creating a theme of my own – *SIGH*).

    Thank you for your help!

    May I ask something else? Do you happen to know if the Comment E-Mail Responder Plugin works with Ajaxed WordPress? Because people at the JunoMagic blog have been hounding me about e-mail notifications for their comments …

    It won’t work by default, but by reading through the code, I think it can be modified to work. I haven’t tested this, but basically what the modifications do is remove the non-email related functionality. Actual replies will be handled by AWP.

    Open the plugin file.

    Find:
    if (isset($_POST["user_ID"]) and (!empty($_POST["reply_to"]))) {

    Replace With: Fixes a security bug

    global $userdata;
    
    	get_currentuserinfo();
    
    	$_POST["reply_to"]  = $_POST["comment_parent"];
    
    	if ($userdata->user_level == 10 and (!empty($_POST["reply_to"]))) {

    Find:

    // Hook into comment display
    
    add_filter('get_comment_author_link', 'cer_add_comment_icon');
    add_action('comment_form', 'cer_add_comment_footer');
    
    // Bind Options Page to the admin menu
    
    add_action('admin_menu', 'cer_configure_pages');
    
    // Add Javascript bit to header
    
    add_action('wp_head', 'cer_add_code_header');

    Replace With:

    // Hook into comment display
    
    //add_filter('get_comment_author_link', 'cer_add_comment_icon');
    //add_action('comment_form', 'cer_add_comment_footer');
    
    // Bind Options Page to the admin menu
    
    add_action('admin_menu', 'cer_configure_pages');
    
    // Add Javascript bit to header
    
    //add_action('wp_head', 'cer_add_code_header');

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: AJAXed WordPress] Comments don’t thread’ is closed to new replies.