AJAX’d Wordpress Release Candidate 1 has been…Released.

Posted on Sunday the 11th of November, 2007 at 3:30 pm in News, Plugins

AJAX’d Wordpress is now officially a release candidate which translates to an advanced Beta. I’m hoping to officially release within a few weeks, but I will only do this after there has been ample testing on different themes and with other plugins, so I am looking for a few good, adventurous souls to help me test it in different environments.

This website has been running aWP for several week and there don’t seem to be any problems, but please ensure that you test this plugin in a developmental environment before using it on a live website. AJAX’d Wordpress is built off of INAP which was reaching maturity, so I don’t expect there to be a large number of problems, but it has changed drastically, so I expect at least a few new bugs have been created. I am also concerned about compatibility with other plugins. All the plugins I use on this website work perfectly, but I have not tested aWP with a large combination of other plugins.

This is not a final version as there are some issues I still need to correct: printing the headers for AJAX and effects libraries still needs some work and I still need to find a more flexible way to do custom options, and there are also a few specific issues I need input on.

  1. Currently all modules are double opt-in, so you have to activate them and then enable them. Is this the best way to do it?
  2. When you first install aWP there are a few main features already enabled. Should others be enabled automatically?
  3. What additional features would you like to see added as new modules?
  4. Does the in-line documentation and readme file actually make sense?

Good luck, and thanks a lot.

Related posts

  1. Geoff posted the following on November 12, 2007 at 4:17 pm.

    I am looking for a plugin that has a similar feature to your dashboard editor plugin. I would like to be able to add sidebars to be displayed on category, author, and custom pages. I like how you can specify how many sidebars to add in your dashboard editor and add widgets specific for the dashboard. I’d like to see something similar so I can display different widgets based on the type of page such as author, category, archive, custom etc. Any ideas?

    Reply to Geoff
    1. Aaron posted the following on November 12, 2007 at 9:55 pm.

      I’ve done this with a few widgets myself (my recent articles widget doesn’t show up on the front page), but the easiest way to do it is by modifying the widget itself.

      Reply to Aaron
  2. Hani Obaid posted the following on November 12, 2007 at 8:05 pm.

    Hello.

    I tried version 0.9 of the plugin. It didn’t work with my theme, so I removed it, but now I no longer get emails when someone posts a comment.

    Any ideas where to look for the problem ?

    I was using the option for (easy comments/posts) which worked without having to edit the theme. Could it have left something beghind after installation ?

    Reply to Hani Obaid
    1. Aaron posted the following on November 12, 2007 at 9:53 pm.

      If you could be so kind, how did it “not work” so I can fix it?

      You mean the emails WP sends out automatically? There shouldn’t be anything in the plugin that would effect that. make sure in your Admin panel under the options > discussion tab that sending emails is still checked.

      Did you completely remove the folder or just deactivate it?

      Reply to Aaron
  3. Hani Obaid posted the following on November 12, 2007 at 10:10 pm.

    Well, most important for me was that comments would be added inline, after enabling the plugin and selecting easy comments. The page was still getting reloaded on each comment.

    I deactivated all the individual components, then deactivated the plugin, then erased the folder.

    I also upgraded to from WP 2.3 to 2.3.1 using an automated upgrade plugin, so that was probably what did it.

    Reply to Hani Obaid
    1. Aaron posted the following on November 12, 2007 at 10:51 pm.

      Okay, let me see if I can get that working for you. Keep an eye out for an update over the next week or so.

      Reply to Aaron
    2. Aaron posted the following on November 12, 2007 at 11:01 pm.

      I just ran a few tests and I can’t seem to find any problems with simple comments. Were you getting a javascript error?

      Reply to Aaron
  4. Chuck Adkins posted the following on November 13, 2007 at 1:39 pm.

    tried it, didn’t work worth a [...] on my theme… I’m not a [...] programmer. I want something that I just put in and it works, I don’t like [...] around with god [...] code.

    I got two comment boxes, looked like holy [...]… I nuked [it]. nice try, but trying writing something that isn’t a pain in my god [...] [...] to [...] install.

    there, my honest opinion.

    Your welcome.

    -Chuck

    [Moderators note: comment edited to remove possibly offensive language and fix typos.]

    Reply to Chuck Adkins
    1. Aaron posted the following on November 13, 2007 at 2:14 pm.

      While I understand things can sometimes not work as desired, try to retain a certain sense of dignity in your responses.

      Reply to Aaron
  5. Hani Obaid posted the following on November 13, 2007 at 7:46 pm.

    No errors at all, but I confirmed this was unrelated to the comment mail notifications stopping. There’s a wordpress trac bug report for that issue (Ticket #5294) and the workaorund fixed the problem for me.

    I would like to try awp again, but the options are a bit complex, so can you please confirm to me if I start with the default option set, and just check the checkbox for simple comments is that sufficient to enable ajax inline comment posting, or is there something else that needs to be done ?

    Reply to Hani Obaid
    1. Aaron posted the following on November 13, 2007 at 10:07 pm.

      If you use a “standard” theme, that should be all you need to do enable it on the single post pages. The front page requires a few theme edits (which you may be able to do inside your admin panel) and described step-by-step here

      If you need any further clarifications feel free to ask.

      (There may be some issues with the way the comments are styled, but you can edit this in the admin panel.)

      Reply to Aaron
  6. Chuck Adkins posted the following on November 13, 2007 at 9:52 pm.

    if you care to help me out with this, so, I can get it working. with my theme… I tried and it look like I don’t know what…
    -Chuck

    Reply to Chuck Adkins
    1. Aaron posted the following on November 13, 2007 at 10:14 pm.

      I’ll help you. Just describe what you are hoping to have occur and what you did before that didn’t work.

      Reply to Aaron
  7. Chuck Adkins posted the following on November 13, 2007 at 10:19 pm.

    Well, if you’ll kindly come look at my theme… I don’t want the comments on the page, under the post… I want people to enter the comments and it preview at the bottom and then they hot return and they appear at the top… like they do now… also, I’d like the ability to reply to comments and the quick tags… problem is, I don’t want to disturb the theme. I ended up with two comment boxes… it was crazy.

    I did everything you said to… Or so, I thought… but it made things look horrible.

    -Chuck

    Reply to Chuck Adkins
    1. Aaron posted the following on November 13, 2007 at 10:36 pm.

      Kinda like they work on my theme?

      If so, your best bet is to select “Simple Comments” and then we can go from there if changes need to be made.

      If it looks fine (your theme is fairly standard) then go to the admin panel and click on the “Add Comments” tab and you can enable any features like quicktags that you want.

      Reply to Aaron
  8. Chuck Adkins posted the following on November 13, 2007 at 10:43 pm.

    Okay, what I did, I guess this is what I get for not reading up first. I just went in and turned on EVERYTHING in the mini admin panel… hmmmm.. maybe I should have done that. doh!

    will try again

    Reply to Chuck Adkins
  9. Chuck Adkins posted the following on November 13, 2007 at 11:08 pm.

    Okay…. I got it working… No quicktags… turn ‘em on in the preview… and they’re not showing up… what shall I do? :?:
    -Chuck

    Reply to Chuck Adkins
    1. Aaron posted the following on November 13, 2007 at 11:17 pm.

      Did you make changes to the template files in the aWP folder? I just checked your site and it isn’t the default aWP form and comment list that are showing up.

      Reply to Aaron
  10. Chuck Adkins posted the following on November 13, 2007 at 11:39 pm.

    Welp, I’ve tried, I added the codes that you said to add and I cannot get the quicktags to work, nor the preview, you’d better come up with something fast magic boy. or your plug in is going bye bye…

    you got 5 mins…

    Reply to Chuck Adkins
    1. Aaron posted the following on November 14, 2007 at 12:49 am.

      You did not purchase the plugin, and you are not paying me. I do not have to do anything to help you especially after your vulgar, personal attacks both here and in email. Even after your first attack I voluntarily helped you.

      I gain nothing if you use my plugin; I lose nothing … except the distinct pleasure of dealing with you … if you delete it.

      Reply to Aaron
  11. Jerry posted the following on November 14, 2007 at 8:49 am.

    Hi Aaron,
    Not sure whose code this snip belongs to, but there seems to be a missing closing parenthesis in line 187.
    var ajax = new Ajax.Request((’http://services.thebankruptcynews.com/blog/wp-content/plugins/aWP/aWP-ajax.php’,
    181 {
    182 method: ‘post’,
    183 parameters: ‘type=’ _d[i].type ‘

    Reply to Jerry
    1. Aaron posted the following on November 14, 2007 at 1:02 pm.

      Thank you.

      Reply to Aaron
  12. Jerry posted the following on November 14, 2007 at 9:01 am.

    Sorry forgot to add the file name core.js.php (line 187)

    Reply to Jerry
  13. Aaron posted the following on November 14, 2007 at 3:21 pm.

    AWP has been updated to version .99 and fixes a Javascript bug with prototype.js and the live preview feature.

    Reply to Aaron
  14. Dean posted the following on November 14, 2007 at 7:49 pm.

    Small Problem

    Installed and activated Ajax’d Ver .99 wanting to import comments to main page. Added calls per instructions and instead of importing comments the link redirects to single post page as normal.

    I don’t know if I dinged a file because I mistakenly added the following

    where I wanted the comments to appear.

    I repaired my error and added the correct call.

    However the link is still redirecting me to the single post page. Any Ideals?

    THX in advance Mr. Aaron

    Reply to Dean
    1. Aaron posted the following on November 14, 2007 at 8:08 pm.

      Are you getting a Javascript error or do you have a URL where I can see what is occurring? (You can email it to me if you don’t want it to be public.)

      Reply to Aaron
      1. Dean posted the following on November 14, 2007 at 9:16 pm.

        Thank’s for getting back so quick Aaron,

        In answer to your first question:

        I opened the error console in firefox and it says, “aWP is not defined”
        and it gives the url wich is on my local box. (localhost/wordpress/)

        I do have a site if you need me to put it up so you can take a hard look.

        One more clue, when I mouse over your link it shows the page address in the browser nav window and when click on it that’s where we go.

        thx again
        Dean

        Reply to Dean
        1. Aaron posted the following on November 15, 2007 at 10:53 am.

          What is the JS error that it gives just before it says that it is not defined and what Javascript library are you using and does the same thing happen if you select a different one?

          Reply to Aaron
  15. Chuck Adkins posted the following on November 14, 2007 at 9:08 pm.

    Question. The code that one has to add to make the plug in work. Do you comment the standard code out? and use yours? or do you just put your code under it?

    please advise.

    This may have been the problem that I was having.

    Reply to Chuck Adkins
    1. Dean posted the following on November 14, 2007 at 9:38 pm.

      Chuck!

      I don’t think Aaron talking to you. However it shouldn’t matter whether u delete or leave the original code.

      So, I don’t think that’s your problem.

      Reply to Dean
    2. Aaron posted the following on November 15, 2007 at 10:52 am.

      On single post pages you would comment out the “comment_template()” function.

      Reply to Aaron
  16. derFrankie posted the following on November 15, 2007 at 6:01 am.

    This sites is not working in Firefox - at least it shows a strange behaiviour - probably a typo in the theme.

    CU
    Frank

    Reply to derFrankie
    1. Aaron posted the following on November 15, 2007 at 10:50 am.

      Do you mean the site’s style is not displaying? If so I’ve had other people report it, but I’ve never been able to duplicate it myself.

      Reply to Aaron
      1. DerFrankie posted the following on November 15, 2007 at 2:59 pm.

        Strangely enough it just happend on one pc I have. I will send you a screenshot and the Source of the page in PM if you want.

        Reply to DerFrankie
        1. Aaron posted the following on November 15, 2007 at 3:43 pm.

          If you could email it to admin@anthologyoi.com it would be very helpful. Thank you.

          Reply to Aaron
  17. Aaron posted the following on November 15, 2007 at 11:50 am.

    There were enough other Javascript bugs with the JQuery and Prototype libraries that version .991 has been released.

    The only file changed is aWP.php.

    Reply to Aaron
  18. Dirk posted the following on November 15, 2007 at 2:12 pm.

    I seem to be stuck - I can get the comments to show and hide, but if I try to do the inline comment add, all I get is a spinning wheel - it never shows the form that allows you to input your comment (this is with 0.991)

    I see a POST access to aWP/aWP-ajax.php in my apache log files every time I click on the “add comment” link, but then nothing happens.

    Here’s the excerpt from my index.php

    Reply to Dirk
    1. Dirk posted the following on November 15, 2007 at 3:44 pm.

      Wow - this didn’t work out as planned. I guess I can’t easily quote the php code.
      So please let me know if you want to see the code and I’ll send it to you…

      Reply to Dirk
      1. Aaron posted the following on November 15, 2007 at 4:07 pm.

        I’ve run some tests on the page and although I know where the problem is, I can’t find anything wrong with it that could be causing it. Does it happen if you switch to a different Javascript Library?

        Reply to Aaron
        1. Dirk posted the following on November 15, 2007 at 4:23 pm.

          Yep, I tried it with TWSack as well. Still doesn’t work :-(
          I’ve played with the wonderful XmlHttpRequest Debugging Greasemonkey script to see if I can spot anything obviously wrong - but everything looks right to me. Do you want me to send you the requests and responses? Come to think of - I’m sure you can capture those yourself :-) Any other ideas how to debug the problem?

          Reply to Dirk
        2. Aaron posted the following on November 15, 2007 at 4:48 pm.

          I already did and everything is working fine, but the aWP.update() call isn’t being…called.

          It is possible one of the other Javascripts you are loading is causing a conflict, but other than that, I haven’t the foggiest.

          Reply to Aaron
  19. Christopher Rogers posted the following on November 15, 2007 at 3:24 pm.

    This plugin promises all of the features that I need to use Wordpress in the classroom, so I am very excited about its development. I couple of things I have noticed so far are: no matter what theme I use if I choose to use the theme’s default comments template the comments will appear blank and from anonymous, the list newest comments first feature doesn’t seem to work in any template either. Inline commenting, and quicktags seem to be working great. Thanks for the work!

    Reply to Christopher Rogers
    1. Aaron posted the following on November 15, 2007 at 3:40 pm.

      Did you edit your single.php and add do_action(’awp_comments’) or select the “Simple Comments” option in the administration panel?

      Reply to Aaron
      1. Christopher Rogers posted the following on November 15, 2007 at 4:04 pm.

        I selected the simple comments in the administration panel.

        Reply to Christopher Rogers
        1. Aaron posted the following on November 15, 2007 at 4:45 pm.

          I saw this bug on another website, but I have never been able to duplicate it myself, so it may be a plugin conflict.

          The only plugins that both you and the other website both have is paged-comments and WP-cache. Could you try disabling these, if they are enabled, to see if they are causing the issue?

          Reply to Aaron
        2. Christopher Rogers posted the following on November 16, 2007 at 8:45 am.

          Here are the plugins that I have enabled:

          advanced-admin-menus, ajax’d wordpress, akismet, better comments manager, events calendar, better comments manager, simple forum, wp-polls, wp-polls widget, wp-post ratings, wp-post ratings widget.

          I have deleted any plugins that are not activated. You can check the comments for yourself and see that the oldest are at the top.

          http://www.rogersenglish9.com/rogersenglish9/speakblog/

          Also, I like the way comments are formatted on your site with the boxes and the blue banners to separate them. Is there a way that I can do this? Right now when I have your plugin activated there is no clear separation between the comments.

          I was thinking that a useful feature for future releases could be a button that activated all of ajax’d wordpress’ features with one click.

          Once again thanks for the hard work. I will continue to donate as this plugin holds huge potential for me.

          Reply to Christopher Rogers
        3. Aaron posted the following on November 16, 2007 at 2:11 pm.

          Okay, the newest-at-the-top feature might is broken: I’ll fix it ASAP, but I’m more worried about the the way you are getting “anonymous” for the commenter’s name.

          The styling that aWP uses for comments is fairly generic, so they may not look the way they did before aWP was activated; however, you can change — from the Admin panel — the way comments are structured to match your theme, but if you just want to style them like mine, The CSS I use was posted in this comment.

          I’ll try to add the instruction on customizing the structure soon.

          I was thinking that a useful feature for future releases could be a button that activated all of ajax’d wordpress’ features with one click.

          That would be Scary because aWP has so many different features all rolled into one that most people will only use a small subset of them. (Even I only use a few of the features. ) However, I will be making it easier to activate the major options.

          Your welcome and thank you.

          Reply to Aaron
  20. Christopher Rogers posted the following on November 16, 2007 at 11:15 am.

    Aaron

    The links to support and documentation in the description on the plugins pane are outdated.

    Chris

    Reply to Christopher Rogers
  21. Aaron posted the following on November 16, 2007 at 11:23 pm.

    aWP was updated again. The following bugs were fixed.

    1. Issues with hiding child comments fixed.
    2. Double opt-in for major features removed
    3. Options will not be reset when the plugin is deactivated (reactivating modules will)
    4. Fixed links in admin panel.
    5. Show newest comments first feature fixed.
    6. Embedded posts fixed
    Reply to Aaron
  22. Christopher Rogers posted the following on November 17, 2007 at 10:29 am.

    Aaron

    Newest comments now work! If I select the option to use my theme’s default comment template I no longer get the anonymous commenter I get the following error:

    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1' at line 1]
    SELECT * FROM wp_comments WHERE comment_post_ID = ‘22′ AND comment_approved = ‘1′ ORDER BY comment_date 1

    Live preview is working perfectly.

    My list of comments is still all white though. How can I format them like the comments on this page with colored headers and blocks around them?

    Chris

    Reply to Christopher Rogers
  23. Aaron posted the following on November 17, 2007 at 11:16 am.

    The formatting of your comments is all in your theme files: you can basically copy and paste the CSS I posted in this comment into your style.css file in your theme.

    If you use your theme’s default template you won’t be able to use any of aWP’s comment features, but I’m still very curious about why the anonymous comments are appearing because I have never been able to do that.

    Would you mind emailing me your aWP settings when this is happening? (On the admin panel on the right side there is a link that says “Show all current saved AWP options”) Click that and then copy and paste the content of the textbox.

    Reply to Aaron
    1. Christopher Rogers posted the following on November 19, 2007 at 12:38 pm.

      Aaron

      The latest version is working great! All of the features seem to be working now. Every time I click the link you have provided for the CSS to style the comments I am taken to the top of this page and I don’t see any CSS. Could you fix the link for me? Thanks a lot.

      Chris

      Reply to Christopher Rogers
      1. Aaron posted the following on November 19, 2007 at 12:54 pm.

        Sorry about that, the link was fine, but I disabled the other post.

        I use the following to style my comment list.

        1. /* Comment Stuff */
        2. .awpcomments ol.comments, .post_comments ol.comments {
        3. padding-left:0;
        4. list-style-type:none !important;
        5. }
        6. .awpcomments ol.comments * > ol.reply, .post_comments ol.comments * > ol.reply {
        7. list-style-type:none !important;
        8. padding-left:1.5em;
        9. /*border-left: 1px dashed #477CAA;*/
        10. }
        11. .awpcomments * ol.reply{
        12. list-style-type:none !important;
        13. }
        14. .authorcomment {
        15. border:1px solid #c0c0c0;
        16. background-color:#fafbfc;
        17. color:#3C3C3C;
        18. line-height:1.5em;
        19. margin:3px;
        20. padding:4px;
        21. }
        22. .commentbar {
        23. display:block;
        24. margin:0 !important;
        25. padding:5px 5px 10px 5px !important;
        26. font-weight:400;
        27. text-align:left;
        28. color: #FFFFFF;
        29. background:#477CAA;
        30. }
        31. .commentbar cite{
        32. font-style:normal;
        33. }
        34. .commentbar a {
        35. font-weight:700 !important;
        36. text-decoration:underline !important;
        37. color: #FFFFFF !important;
        38. }
        39. .commentbar a:hover {
        40. text-decoration:none !important;
        41. color: #FFFFFF !important;
        42. }
        43. Use the following to copy and paste the code.
        Reply to Aaron
        1. Christopher Rogers posted the following on November 19, 2007 at 1:50 pm.

          Silly question. Do I add this styling to the stylesheet or to comments.php or do I add it in the plugin (I know I’m a newb)?

          Reply to Christopher Rogers
        2. Aaron posted the following on November 19, 2007 at 2:04 pm.

          Everyone starts somewhere. Just add it to the theme’s stylesheet.

          Reply to Aaron
  24. Maddog posted the following on November 17, 2007 at 11:43 am.

    How come after I post a comment, the same text is in the comment box when I try to post another comment?

    Reply to Maddog
    1. Aaron posted the following on November 17, 2007 at 11:52 am.

      AWP never forces the comment box to reset.

      To do this.

      OPEN: /js/ core.js.php
      FIND: $('awpcommentform_' _d[i][_d[i].primary]).style.display='none';
      ADD AFTER:$('comment_' _d[i][_d[i].primary]).value = '';

      Reply to Aaron
  25. J-Ro posted the following on November 18, 2007 at 4:09 am.

    I’m trying to use this plugin with a heavily modified comments form. I’ve gotten about 90% of the way there, but I’m having trouble on 3 issues.

    You can test a current version of my code at http://www.theseminal.com/testing/2007/03/28/golden-moment/

    1. When you click a link to respond to a threaded comment, you are taken to the top of the page, not to that comment with the form. The form moves and it works, it’s just that the user has to scroll down. What’s wrong there?

    2. Is there a way to return the comment form back to its original position at the bottom of the page if someone clicks “Cancel Reply”? Right now, the comment form simply disappears.

    3. Is there a way to insert a conditional line that doesn’t display the Reply to whoever link if the comments can’t nest anymore? I’ve got the page set to 3 nesting levels, so on the highest level (3 in), I would like there to be no reply link, so the only option is replying to level 2.

    Any help on this would be much appreciated. This is a pretty awesome plugin, and I’d love to get it working perfectly. Thanks!

    Reply to J-Ro
  26. Aaron posted the following on November 18, 2007 at 11:27 am.
    1. I haven’t been able to duplicate this. What browser are you using? IE of course, I’ll get this fixed ASAP.
    2. Yes, I’ll have a fix for that later today.
    3. I assume you have been editing the template files that come with aWP.

      OPEN: aWP/modules/inlinecomments/templates/comment.php
      Find:AWP_commentform::links($comment->comment_ID);
      REPLACE WITH:

      1. if($depth <= $awpall['comment_threaded_depth']){
      2. AWP_commentform::links($comment->comment_ID);
      3. }
      4. Use the following to copy and paste the code.

    Side note, so far yours is the most customized version of aWP (or INAP for that matter) I’ve seen yet. Nice job.

    Reply to Aaron
  27. Aaron posted the following on November 18, 2007 at 1:03 pm.

    Keeping up the tradition of daily releases: version .9992 is out.

    The following bugs are fixed:

    1. The comment form no longer disappears after canceling replies on pages where it is automatically opened: it returns to its original location.
    2. The jump to the top of the page that happened on some themes is now fixed.
    3. Minor error with inline comments defaults was fixed.
    Reply to Aaron
    1. J-Ro posted the following on November 18, 2007 at 3:38 pm.

      I’ll implement fix #3 shortly. For the update, because I’ve customized my version so much, can you show me how to manually fix what you’ve updated in this daily release? That would help me a ton.

      Reply to J-Ro
      1. Aaron posted the following on November 18, 2007 at 4:18 pm.

        The major changes are in:
        /js/js.core.php
        /modules/inlinecomments/inlinecomments.php

        Reply to Aaron
        1. J-Ro posted the following on November 18, 2007 at 4:21 pm.

          Thanks, I’ll see what I can find.

          Reply to J-Ro
        2. Aaron posted the following on November 18, 2007 at 4:30 pm.

          You’ve modified these files? Hang on then, I’ll post a diff.

          Reply to Aaron
        3. J-Ro posted the following on November 18, 2007 at 4:33 pm.

          I modded a bunch. I searched for diffs, I could only find one line diff in core.js, which I swapped and it didn’t make a difference. inlinecomments.php was exactly the same…

          (I’m using Safari by the way)

          Reply to J-Ro
        4. Aaron posted the following on November 18, 2007 at 4:47 pm.

          The core.js.php had a lot of changes whole sections were added. Are you sure you downloaded the new .zip named awp-09992.zip and diff’d the right files?

          This is my diff: aWP core.js.php diff .9991 -> .9992

          Reply to Aaron
        5. J-Ro posted the following on November 18, 2007 at 4:52 pm.

          Perfect! Got it working. Thanks! I just want to do a bit more testing, but it looks like this is going to work out great.

          Reply to J-Ro
        6. J-Ro posted the following on November 18, 2007 at 11:57 pm.

          Alright, getting closer on this thing. I have three more small issues…

          1. After I reply to a comment or cancel a reply, the comment form goes back to the bottom of the page, as it should. However, when I then submit a comment, the comment nests where it was before. For example, if I cancel a reply to comment a, and then submit a comment at the bottom of the form, the reply goes under comment a anyway. Seems like some variable isn’t being reset back after cancelling. Same thing happens when I do actually reply to a comment. The next comment, even when done form the bottom of the page, will be a 2nd reply to the comment I originally replied to.

          2. I can’t acutally submit comments at the bottom of the post. When I load a fresh page and try to comment without replying to anything and I click submit, nothing happens. The comment is actually submitted (the message comes up that it has been submitted and if I reload the page it appears), but the comment does not appear AJAX style.

          3. As you can see on my test page, I’ve got some extra stuff sitting next to the Click to Reply link. If I click to reply, and then cancel, that extra stuff appears on a new line. Why is that? Where can I get at the code that controls what is displayed when I click the reply button and what is put back there when I cancel?

          You’ve been most helpful. Hopefully I can get all this worked out. You’re still taking donations I assume?

          (sorry if this is a dupe, I’m hitting some of the same bugs on this page……)

          Reply to J-Ro
        7. Aaron posted the following on November 19, 2007 at 10:55 am.

          Sorry about the delay: Spam Karma decided you were talking too much…it really didn’t like you. You were lucky I even found it, but aside from that.

          1. I just confirmed this is happening, I’ll fix it ASAP. Basically it is happening because Cancel Reply was supposed to just hide the box.
          2. I think you are getting a JavaScript error. The changes I posted had a small bug in them and the fix is here.

            Those changes there also had a bug and the first line should have been if(_p['awpcommentform_'+_d[i][_d[i].primary]] && !_p['awpcommentform_'+_d[i][_d[i].primary]].nomove){.

            This is going to create a new bug that appears occasionally, so you are going to want to move the line try{$('throbber'+i).parentNode.removeChild($('throbber'+i));}catch(e){} right after the line complete: function (){

            This still leaves another problem where the comment form won’t move back to the same child comment twice, so I’ll get right on that. Oye.

          3. This is actually a FireFox display bug that doesn’t occur in Opera or IE. It is caused because the only way to reliably ensure that the comment form attaches to the right comment is to add it right after the Reply To link. It could be fixed by adding an anchor on the theme, but I didn’t want to have to clutter up people’s themes more than I already have.
            If you want to delve into the inner workings, look for instances of “case ‘commentform’:”, but it isn’t pretty or easy to understand. I’m still working on improving certain parts.

          The problem is that aWP was designed to work in such a specific way that making one change to the way the comment form is moved around the whole thing everything else gets a little wacky.

          Side note: this new preview finally helped me to figure out what was causing code to randomly disappear: who would have thought little ampersand would cause so much trouble?

          Reply to Aaron
        8. J-Ro posted the following on November 19, 2007 at 11:16 am.

          Ok, cool. I’ll try those fixes tonight. #3 isn’t a huge issue, but I figured if there was an easy fix I’d try it…

          Reply to J-Ro
        9. Aaron posted the following on November 19, 2007 at 11:28 am.

          All other issues you reported are now fixed, and will be uploaded momentarily.

          The fixes:

          OPEN: “js/core.js.php”

          Find: case 'commentform':

          Add after: var comparent = $('comment_parent_'+_d[i][_d[i].primary]).value

          Find: if(!_p[i].nomove && comparent ==0){

          Replace With: if(_p[i].prev_link != _d[i].link_num || !_p[i].nomove && comparent ==0){

          FInd: $('awpcommentform_anchor_'+_d[i][_d[i].primary]).parentNode.insertBefore($('awpcommentform_'+_d[i][_d[i].primary]),$('awpcommentform_anchor_'+_d[i][_d[i].primary]));

          Add After:

          1. <?php if($awpall['comment_threaded']){ ?>
          2. $('comment_parent_'+_d[i][_d[i].primary]).value = 0;
          3. <?php } ?>
          4. Use the following to copy and paste the code.

          Find: if(_p['awpcommentform_'+_d[i][_d[i].primary]] && !_p['awpcommentform_'+_d[i][_d[i].primary]].nomove){
          Add before:

          1. <?php if($awpall['comment_threaded']){ ?>
          2. $('comment_parent_'+_d[i][_d[i].primary]).value = 0;
          3. <?php } ?>
          4. Use the following to copy and paste the code.
          Reply to Aaron
        10. J-Ro posted the following on November 19, 2007 at 11:31 am.

          You are amazing! I’ll try this stuff tonight to see how it works.

          Reply to J-Ro
        11. J-Ro posted the following on November 19, 2007 at 8:22 pm.

          Ok! All the bugs seemed to be worked out. The only issue I’m seeing, which is really more of a feature, has to do with moderation. It would be great if a comment awaiting moderation could show up, just with a message that the comment is awaiting moderation, as it usually does on normal wordpress themes.

          My workaround would be to change the comment submitted message to say something like “If you don’t see your comment, it is awaiting moderation and will appear shortly”, but of course, having the comment appear in the right place with a moderation flag would be a lot cleaner.

          Reply to J-Ro
        12. J-Ro posted the following on November 19, 2007 at 8:29 pm.

          I’m also trying to get jQuery effects working. Any tips?

          Reply to J-Ro
        13. Aaron posted the following on November 19, 2007 at 9:22 pm.

          That _should_ be as simple as clicking the Ajax tab, selecting the JQuery option, Enabling special effects, clicking the “pick special effects” option next to jQuery and picking two effects.

          Reply to Aaron
        14. J-Ro posted the following on November 19, 2007 at 9:29 pm.

          Hmm…doesn’t seem to be working for me. I enabled the effects, and even uploaded jQuery and linked to it in my header. Seems like the comments just appear, not fade in Slow as they are supposed to…

          Reply to J-Ro
        15. Aaron posted the following on November 19, 2007 at 9:48 pm.

          Oh, that is because on your site it never actually hides: it just moves around. The effects are only used when it is made visible or invisible.

          Reply to Aaron
        16. Aaron posted the following on November 19, 2007 at 9:36 pm.

          Just change this line $allcomments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = '$post->ID' AND comment_approved = '1' ORDER BY comment_date $order");
          to $allcomments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = '$post->ID' ORDER BY comment_date $order"); in inlinecomments.php The rest can be done in the template file.

          Reply to Aaron
        17. J-Ro posted the following on November 19, 2007 at 9:41 pm.

          Cool, I’ll try that shortly…

          Reply to J-Ro
        18. J-Ro posted the following on November 19, 2007 at 10:13 pm.

          Ah, right. I thought it was for fading in and out posted comments. Ah well, it seems to be working great now. Thanks for all the help! Can you post a link to your donation page?

          Reply to J-Ro
        19. Aaron posted the following on November 19, 2007 at 11:55 pm.

          My Pleasure: http://anthologyoi.com/about/donate

          Reply to Aaron
        20. J-Ro posted the following on November 20, 2007 at 12:04 am.

          Thanks! You’ve earned it.

          If you ever add in the moderation feature I mentioned, let me know. I’ll want the new version.

          Reply to J-Ro
        21. J-Ro posted the following on November 20, 2007 at 12:19 am.

          Hmm..perhaps I spoke perfect too seen. I’m having some problems with cookie-ing users so they don’t have to fill in their info twice. It seems the fields are displaying things like J%20Ro instead of J Ro, and things like http://http%3A//www.theseminal.com instead of the http://www.theseminal.com that was entered.

          Is this something in your files or somewhere else in my theme?

          Reply to J-Ro
        22. J-Ro posted the following on November 20, 2007 at 12:19 am.

          Edited to add, I see it in your fields too…

          Reply to J-Ro
        23. Aaron posted the following on November 20, 2007 at 8:49 am.

          When I “fixed” something I was overzealous and fixed it too well.

          In core.js.php find the first line
          value = escape(base[y].value);
          Replace With:
          value = base[y].value;