• Lumina

    (@lumina)


    I’m using scriptygoddess’ dropdown comments plugin and I’m having a few issues. The dropdown part works fine and dandy, but it only will display the dropdown link on posts that already have comments on them. If a post has no comment, then the space is just blank. Secondly, I’m trying to get the link to display inline with the rest of my footer information (post author, time, category, etc.), but it’s bumped by default down to the next line. Does anyone know how to counteract this? Thanks in advance! (Example can be found here: https://www.miscreation.org/ghosts (scroll down to December 15th for the first entry with the actual comment script displayed.)

Viewing 9 replies - 1 through 9 (of 9 total)
  • ColdForged

    (@coldforged)

    Hard to help when there’s a “Please stand by” message with no links :).

    Thread Starter Lumina

    (@lumina)

    OOPS. Fixed now. ??

    ColdForged

    (@coldforged)

    Where is this plugin available? The reason they’re not displayed on the same line is that that link is placed inside its own div — so it can be shown and hidden, of course — which is a new block-level element. You could try spans instead of divs, but without the plugin code I couldn’t tell you how to change it. Similar with the “no comment no link” thing.

    Thread Starter Lumina

    (@lumina)

    Thread Starter Lumina

    (@lumina)

    Bump.

    ColdForged

    (@coldforged)

    The reason the space is blank is because this code tests for “if( $comments )” and does nothing if there are none. You could have an else clause right around the “} //end if comments” part that displays some kind of link to your “make a comment” section. In terms of the “same line” part, as I said above try changing the “comLink…” div to be a span and see if that gives you what you want.

    Thread Starter Lumina

    (@lumina)

    I don’t know how to do an else clause…pretty much clueless about php. I tried editing the $comments = $wpdb->get_results("SELECT * FROM $tablecomments WHERE comment_post_ID = '$id' AND comment_approved = '1' ORDER BY comment_date"); by adding another AND comments_number = '%', but that gave me an error: “WordPress database error: [Unknown column ‘comments_number’ in ‘where clause’]”. Changing the div to a span did solve that problem though, thanks so much!

    Thread Starter Lumina

    (@lumina)

    Nevermind, figured it out after much hair-pulling. Thank you for your help!

    Thread Starter Lumina

    (@lumina)

    Grrrr…issues arising again. Whenever I try to actually post a comment using the dropdown comments, it redirects to a blank wp-comments-post.php page. However, when I post a comment from the permalink page, it works fine. The code for the dropdown comments file can be found here. Can anyone tell me what I’m doing wrong?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Strange dropdown comments issues’ is closed to new replies.