AJAX’d Wordpress Release Candidate 1 has been…Released.
Posted on Sunday the 11th of November, 2007 at 3:30 pm in News, PluginsAJAX’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.
- 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?
- When you first install aWP there are a few main features already enabled. Should others be enabled automatically?
- What additional features would you like to see added as new modules?
- Does the in-line documentation and readme file actually make sense?
Good luck, and thanks a lot.
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 GeoffI’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 AaronHello.
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 ObaidIf 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 AaronWell, 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 ObaidOkay, 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 AaronI 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 Aarontried 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
Reply to Chuck Adkins[Moderators note: comment edited to remove possibly offensive language and fix typos.]
While I understand things can sometimes not work as desired, try to retain a certain sense of dignity in your responses.
Reply to AaronNo 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 ObaidIf 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 Aaronif 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…
Reply to Chuck Adkins-Chuck
I’ll help you. Just describe what you are hoping to have occur and what you did before that didn’t work.
Reply to AaronWell, 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 AdkinsKinda 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 AaronOkay, 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 AdkinsOkay…. I got it working… No quicktags… turn ‘em on in the preview… and they’re not showing up… what shall I do?
Reply to Chuck Adkins-Chuck
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 AaronWelp, 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 AdkinsYou 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 AaronHi Aaron,
Reply to JerryNot 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 ‘
Thank you.
Reply to AaronSorry forgot to add the file name core.js.php (line 187)
Reply to JerryAWP has been updated to version .99 and fixes a Javascript bug with prototype.js and the live preview feature.
Reply to AaronSmall 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 DeanAre 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 AaronThank’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
Reply to DeanDean
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 AaronQuestion. 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 AdkinsChuck!
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 DeanOn single post pages you would comment out the “comment_template()” function.
Reply to AaronThis sites is not working in Firefox - at least it shows a strange behaiviour - probably a typo in the theme.
CU
Reply to derFrankieFrank
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 AaronStrangely 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 DerFrankieIf you could email it to admin@anthologyoi.com it would be very helpful. Thank you.
Reply to AaronThere 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 AaronI 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 DirkWow - this didn’t work out as planned. I guess I can’t easily quote the php code.
Reply to DirkSo please let me know if you want to see the code and I’ll send it to you…
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 AaronYep, I tried it with TWSack as well. Still doesn’t work
Any other ideas how to debug the problem?
Reply to DirkI’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
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 AaronThis 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 RogersDid you edit your single.php and add do_action(’awp_comments’) or select the “Simple Comments” option in the administration panel?
Reply to AaronI selected the simple comments in the administration panel.
Reply to Christopher RogersI 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 AaronHere 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 RogersOkay, 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.
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 AaronAaron
The links to support and documentation in the description on the plugins pane are outdated.
Chris
Reply to Christopher RogersaWP was updated again. The following bugs were fixed.
- Issues with hiding child comments fixed.
- Double opt-in for major features removed
- Options will not be reset when the plugin is deactivated (reactivating modules will)
- Fixed links in admin panel.
- Show newest comments first feature fixed.
- Embedded posts fixed
Reply to AaronAaron
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 RogersThe 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 AaronAaron
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 RogersSorry about that, the link was fine, but I disabled the other post.
I use the following to style my comment list.
- Use the following to copy and paste the code.
Reply to Aaron/* Comment Stuff */.awpcomments ol.comments, .post_comments ol.comments {padding-left:0;list-style-type:none !important;}.awpcomments ol.comments * > ol.reply, .post_comments ol.comments * > ol.reply {list-style-type:none !important;padding-left:1.5em;/*border-left: 1px dashed #477CAA;*/}.awpcomments * ol.reply{list-style-type:none !important;}.authorcomment {border:1px solid #c0c0c0;background-color:#fafbfc;color:#3C3C3C;line-height:1.5em;margin:3px;padding:4px;}.commentbar {display:block;margin:0 !important;padding:5px 5px 10px 5px !important;font-weight:400;text-align:left;color: #FFFFFF;background:#477CAA;}.commentbar cite{font-style:normal;}.commentbar a {font-weight:700 !important;text-decoration:underline !important;color: #FFFFFF !important;}.commentbar a:hover {text-decoration:none !important;color: #FFFFFF !important;}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 RogersEveryone starts somewhere. Just add it to the theme’s stylesheet.
Reply to AaronHow come after I post a comment, the same text is in the comment box when I try to post another comment?
Reply to MaddogAWP never forces the comment box to reset.
To do this.
OPEN: /js/ core.js.php
Reply to AaronFIND: $('awpcommentform_' _d[i][_d[i].primary]).style.display='none';
ADD AFTER:$('comment_' _d[i][_d[i].primary]).value = '';
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-RoI haven’t been able to duplicate this. What browser are you using?IE of course, I’ll get this fixed ASAP.OPEN: aWP/modules/inlinecomments/templates/comment.php
Find:AWP_commentform::links($comment->comment_ID);
REPLACE WITH:
if($depth <= $awpall['comment_threaded_depth']){AWP_commentform::links($comment->comment_ID);}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 AaronKeeping up the tradition of daily releases: version .9992 is out.
The following bugs are fixed:
- The comment form no longer disappears after canceling replies on pages where it is automatically opened: it returns to its original location.
- The jump to the top of the page that happened on some themes is now fixed.
- Minor error with inline comments defaults was fixed.
Reply to AaronI’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-RoThe major changes are in:
Reply to Aaron/js/js.core.php
/modules/inlinecomments/inlinecomments.php
Thanks, I’ll see what I can find.
Reply to J-RoYou’ve modified these files? Hang on then, I’ll post a diff.
Reply to AaronI 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-RoThe 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 AaronPerfect! 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-RoAlright, 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-RoSorry 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.
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.
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 AaronOk, 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-RoAll 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:
<?php if($awpall['comment_threaded']){ ?>$('comment_parent_'+_d[i][_d[i].primary]).value = 0;<?php } ?>Find: if(_p['awpcommentform_'+_d[i][_d[i].primary]] && !_p['awpcommentform_'+_d[i][_d[i].primary]].nomove){
Add before:
- Use the following to copy and paste the code.
Reply to Aaron<?php if($awpall['comment_threaded']){ ?>$('comment_parent_'+_d[i][_d[i].primary]).value = 0;<?php } ?>You are amazing! I’ll try this stuff tonight to see how it works.
Reply to J-RoOk! 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-RoI’m also trying to get jQuery effects working. Any tips?
Reply to J-RoThat _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 AaronHmm…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-RoOh, 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 AaronJust 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");
Reply to Aaronto $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.
Cool, I’ll try that shortly…
Reply to J-RoAh, 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-RoMy Pleasure: http://anthologyoi.com/about/donate
Reply to AaronThanks! 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-RoHmm..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-RoEdited to add, I see it in your fields too…
Reply to J-RoWhen 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;