WordPress.org

Ready to get started?Download WordPress

Forums

jQuery Comment Replies
[resolved] Can't get it to work. (42 posts)

  1. patc890
    Member
    Posted 1 year ago #

    Hi, I'm using Commentpress 3.3.2 theme and I've replaced wp_list_comments with bb_list_comments in the comments.php file but it doesn't seem to have any effect?
    Am I missing something?

    Thanks.

    Pat.

    http://wordpress.org/extend/plugins/jquery-expandable-comments/

  2. ttomp13
    Member
    Posted 1 year ago #

    Yeah it's not working for me either. :( This plugin has the potential to be great. I'm looking to do what TMZ does (with their replies) Where you click the button, and it shows all replies.

    Anyway, if there is an alternative plugin, or we could at least get this plugin working, I would be more than happy to donate.

  3. patc890
    Member
    Posted 1 year ago #

    Hi ttomp13,
    Glad to hear(sort of) that it's not just me. I was hoping the creator of it would get back but nothing yet.

    I haven't found an alternative for it.

  4. ttomp13
    Member
    Posted 1 year ago #

    I know. :( I've been looking for alternatives as well. It seems to be working on this persons site:

    http://brassblogs.com/blog/expandable-comment-replies

    (This may be the creator's site, I'm not sure.)

  5. patc890
    Member
    Posted 1 year ago #

    Right she is the creator of the plugin but she doesn't seem to be watching the site right now.

  6. ttomp13
    Member
    Posted 1 year ago #

    I know that it's not my theme, and I know that it's not my plugins. I've tried deactivating all of my other plugins with no luck. I'm wondering if it is something in the functions.php file. I'm going to look for a solution for the next half hour. I'll let you know if I find anything.

  7. patc890
    Member
    Posted 1 year ago #

    ok thanks.

  8. ttomp13
    Member
    Posted 1 year ago #

    Yeah nothing so far. I'm going to head to the gym. I think this is only something the creator will be able to fix. Once I get a solution, I'll post a link and a tutorial video on how to fix the problem.

  9. patc890
    Member
    Posted 1 year ago #

    Thanks.

  10. Doodlebee
    Member
    Plugin Author

    Posted 1 year ago #

    Actually, I do check back on WordPress every now and again, but comments (i.e. support questions) don't get emailed to me unless it's attributed correctly. But I do have my contact information in the plugin's readme file, so email works fine too :)

    As I said in another thread, I have the plugin working just fine on several sites right now, and just to be sure, I just installed it on a fresh installation of WordPress 3.4.1 with the Twenty Eleven theme, and it's working just as it should. (that brassblogs.com site is mine.)

    As I said in the other thread, simply saying "it's not working" gives me absolutely nothing to go on. Without knowing how you're applying it in your the,e, what code you're using to edit the layout of the comments, I have no idea what's going wring with your installation.

  11. Doodlebee
    Member
    Plugin Author

    Posted 1 year ago #

    To the OP, I'm looking at the CommentPress theme files on github. In the comments.php file (for the theme) did you replace the wp_list_comments() call? In that theme, it looks like this:

    wp_list_comments(
    			array(
    				// list comments params
    				'type'=> 'comment',
    				'reply_text' => 'Reply to this comment',
    				'callback' => 'cp_comments'
    			)
    		);

    You have to replace the wp_list_comments with bb_list_comments. Did you do that?

    EDIT: Just used the functions from the theme and 'ported them over to Twenty Eleven, then did the above. The expandable comments are working just as they should. I don't know about the rest of the theme, but the comments stuff from that theme are working fine with the plugin.

  12. patc890
    Member
    Posted 1 year ago #

    Hi thanks for getting back. I told you all I can in my first post. I'm using Commentpress theme. I did what it says in the installation instructions. And I doesn't seem to work?

    Can you suggest anything else to check?

  13. patc890
    Member
    Posted 1 year ago #

    Yes that's what I did.

  14. Doodlebee
    Member
    Plugin Author

    Posted 1 year ago #

    Without actually seeing your code and setup, I can't say what's up. Have you reverted back to the default theme, and edited the comments.php file in Twenty Eleven? if it works (and it should, since I just did it in my own install0 then you know it's a theme conflict. how about plugins? I saw that this theme comes with an optional plugin. Is that activated? have you deactivated your plugins to see if they're affecting it?

  15. patc890
    Member
    Posted 1 year ago #

    I haven't tried switching themes but I'll do that later and see what happens. I have deactivated plugins but will try them all again with the different theme. Thanks for the help.

  16. Doodlebee
    Member
    Plugin Author

    Posted 1 year ago #

    Ah, okay. I see. I just installed this theme on my testbed to see what's going on. The theme alone is set to not even show comments, so you *have* to use the plugin that comes with it. The plugin already does showing/hiding of comment layouts, and uses a lot of AJAX/prototype scripting to do all kinds of showing/hiding. I'd say this is a scripting conflict. That's not really anything that's my plugin's fault (or the plugin of this theme's fault either) - it's just conflicts. Your best bet is to get rid of my plugin and use the plugin that comes with that theme, or ditch that theme and use my plugin. They simply don't play well together.

  17. patc890
    Member
    Posted 1 year ago #

    Thanks for doing that. I didn't do the initial setup of this theme so I didn't know it already does show/hide of comments. Can you tell me where because I haven't noticed it?

    As you say this has noting to do with your plugin but the people I set the site up for want that theme so there's not much I can do but I appreciate you help and will use yours on some other sites I have

  18. Doodlebee
    Member
    Plugin Author

    Posted 1 year ago #

    I just did an initial setup. When you activate the plugin, there's a tab for comments that show up in the sidebar. It shows/hides the "reply" form, but not the comment replies themselves. Each "layer" within the comments tab allows you to expand comments left for each paragraph, as well as shows/hides a section for comments on the overall post. it doesn't show/hide comment *replies* (save the actual form to leave them) - but with all the AJAX expanding, etc. it's hard to tell what you'd have to do to that theme's plugin to make it work with mine.

  19. patc890
    Member
    Posted 1 year ago #

    It is the show/hide of the comment "replies" that I'm looking for but thanks for the help.

  20. ttomp13
    Member
    Posted 1 year ago #

    Hey Shelly! :)

    Thank you soooo much for taking the time to respond. I went through all of your responses, and just don't know what to do.

    1. I've activated your plugin.
    2. I've changed to wp to bb.
    3. I noticed your plugin is changing my formatting.
    4. That's about it.

    The other thing is, I am using a custom theme by themeforest, which I paid $50.00 for. I'd be more than happy to create a second admin account, so you can login and look at my code.

    I'm usually really good with code, but no so much on the Plugin end of the deal.

    I'd be more than happy to donate if we can get your plugin working, and I'd be more than happy to also share the solution on Youtube.

    If you could get back to me sometime before February 3rd, that'd be great, because I'm going to be out of town after that date.

    THANK YOU SO MUCH. :)

  21. ttomp13
    Member
    Posted 1 year ago #

    UPDATE:

    1. For those having trouble, go to your WordPress Admin Dashboard.
    2. Click "Settings"
    3. Click "Discussion"
    4. Click Checkbox "Enable threaded (nested) comments"

    Taking the above steps got me to get the words "Show/Hide Replies" to come up. Now I just need to figure out how to turn these words into a clickable link.

    Here's what I have so far: http://www.taylorthompsonfitness.com/best-rep-range-for-building-muscle-size/ (scroll down to see comments)

  22. ttomp13
    Member
    Posted 1 year ago #

    Here's what I have: http://www.91daychallenge.com/fire/blog/?p=8#comment-3

    There I am using the Twenty 11 Theme for example.

    Again, I got the "Show/Hide Replies" to come up, it's just not clickable.

  23. Doodlebee
    Member
    Plugin Author

    Posted 1 year ago #

    Now I just need to figure out how to turn these words into a clickable link.

    it should already be doing that for you -my plugin is set for that. it'snot an actual *link* - so you won't get a "hand" cursor (it's a span class), but you can use CSS to put that on there so people know it's clickable.

    And yes, you have to have "enable threaded comments" in your settings ;)

  24. Doodlebee
    Member
    Plugin Author

    Posted 1 year ago #

    http://www.91daychallenge.com/fire/blog/?p=8#comment-3

    your jQuery isn't working.

    Your'e linking (to anOLD version of jQuery, by the way. You're using 1.3.2, and jQuery is now at 1.7.1), but if you view your source code, you're pulling in this file:

    http://www.91daychallenge.com/fire/blog/wp-content/themes/twentyeleven/scripts/jquery/jquery132.js

    if you go to look at it, it goes to a 404. How that got there, I don't know. Twenty Eleven doesn't have any such script in the theme files (in fact, the scripts are stored in the "js" folder within the theme, not the "scripts" folder, and even then, Twenty Eleven enqueues WordPress' jQuery - it's not in the theme files at all)

    I don't know where this link is coming from, but however it got put in there, it's totally wrong.

    EDIT: just checked the other site, too - you have the same problem there. Your call to the (old) jQuery script goes to a 404.

  25. ttomp13
    Member
    Posted 1 year ago #

    Hey Shelly,

    I don't know much about jQuery. What are the steps that I should take in order to link to the new version (1.7.1) of jQuery?

  26. ttomp13
    Member
    Posted 1 year ago #

    Is there a video that will teach me how to do this?

    By the way, I appreciate all of the support. :)

  27. ttomp13
    Member
    Posted 1 year ago #

    Update: I got your plugin to work on my TEST page by installing this code into my functions.php file.

    if( !is_admin()){
       wp_deregister_script('jquery');
       wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"), false, '1.4.2');
       wp_enqueue_script('jquery');
    }

    Unfortunately, I tried that same code on the actual site I want the plugin to work for, and still, the SHOW/HIDE replies isn't working.

    HOWEVER

    The replies are all hidden, so we're getting really close to making this work! :)

    Here's the link of the site having trouble:
    http://www.taylorthompsonfitness.com/best-rep-range-for-building-muscle-size/

    Here's the link of the site that is working:
    http://www.91daychallenge.com/fire/blog/?p=8#comments

  28. Doodlebee
    Member
    Plugin Author

    Posted 1 year ago #

    My guess is (on the site where it's not working) that the theme has a function somewhere that pops the jquery in from a localized spot (the themes folder). You could try and find where that is, and remove it, and enqueue jQuery yourself; or you could grab a copy of jQuery, rename it to "jquery132.js" and upload it to the "scripts/jquery" folder of your theme. Then when it looks for it, it'll be there.

  29. ttomp13
    Member
    Posted 1 year ago #

    I'm working on this as we speak. I tried using the Twenty 11 and Twenty 10 theme on TaylorThompsonFitness (the site that isn't working) and those themes DID work. So this is a theme specific problem.

    I tried grabbing a copy of jquery and renaming it to jquery132.js and then uploading it into this folder:

    taylorthompsonfitness.com/wp-content/themes/greenearth/javascript
    link: taylorthompsonfitness.com/wp-content/themes/greenearth/javascript/jquery132.js

    Unfortunately, this didn't fix the problem. I am now going to try to find the function that pops the jquery in from a localized spot.

  30. ttomp13
    Member
    Posted 1 year ago #


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.