INAP updated to version 2.2.3
Posted on Thursday the 29th of March, 2007 at 7:58 pm in NewsInline Ajax Page has been updated. This release is primarily a bug-fixing release, but adds a live comment preview and the ability to trim feeds.
You may go to the main INAP page for more information.
Special thanks goes out to Truden for all of his help hunting down them wascily wabbits…er…bugs.
Pun intended.
hi, this is an awesome plugin, and am simply loving it. I do have one small issue, when I use the tag, and once I have saved it, there will be duplication. The plugin works beautifully tho, it’s just that I get double links, like so:-
more
more
Any idea why? I am using Ultimate TAg Warrior and WP-Contact Form 3 plugins, and nothing else.
Reply to alanbernardHave you upgraded to the latest version?
Can you get me a screenshot or do you have a test site where this is happening?
Reply to AaronHi,
I have Simple Post turned on, and I realized the flash components after won’t show up properly.
Here’s an example:
Go to http://www.siuyee.com/, click on “click to continue reading” on the first article (”Fukubukuro”). Scroll down a bit and you will see the wordtube plugin is not showing.
Going to the page directly works fine.
http://www.siuyee.com/2007/03/28/fukubukuro-materialism-at-its-best/
Is that a shortcoming of AJAX?
Thanks!
Reply to SiuyeeSiuyee reminded me about the “no problem” fact that LightBox 2 does not work on a page when displayed in AJAX.
Reply to TrudenFor me it is really no problem, although it would be nice if it works.
But if we have to load additional 50 KB I would go without it.
@Siuyee:
The short answer is the problem is caused because nothing is telling the Flash player to run its Javascript.
@Truden
Lightbox has had problems with INAP since version 1.0 I’m not sure if there is a way to fix it, but I have only gotten one or two complaints in over a year, so it hasn’t been a big priority.
I’ll try to get them fixed for the next version, but no guarantees.
Reply to AaronI’m wondering if there’s a bug with the Have Comments Open, and Have Comment Box Open? I can’t seem to get those two options to work. I’m gonna do some poking around in my theme, but for some reason they don’t open automatically.
I’m using Safari & Firefox to test. I’m on a Mac, OSX.4.9
Any ideas?
Reply to JodyIf you want to use the AJAX comments on a single post page you will have to edit your theme’s single.php the same way you died to your index.php. Once you do that the options go into effect.
There currently is no way to have them open by default on the index.php. Is this where you want them open?
Reply to AaronThat is correct, I use a single page format that is the home page. I’m running into a couple of weird things now. I didn’t change the settings from where they were working, but now comments can no longer be submitted when INAP options are turned on (so I’ve turned them off and now I don’t have all the fancy stuff anymore, bummer). I can’t figure that one out.
Also, I’m noticing the same thing someone else is noticing that the link to add a comment gets doubled up when the comment box is actually open.
Reply to JodyI’m not sure about the phantom errors most likely they are caused by your browser or another plugin, but to allow open comments on the home page
Open: inap.php
Find:|| (is_page() && $inapall['show_comments_page'] == 1 )
Add After:|| (is_home() && $inapall['show_comments_single'] == 1 )
Find:|| (is_page() && $inapall['show_addcomments_page'] == 1 )
Add After:|| (is_home() && $inapall['show_addcomments_single'] == 1 )
Now the Home page will use the same options as the single post page.
That is a feature not a bug. Theoretically, users will line thier comment links up like mine, so the links always stay above the comments and add comment boxes. The extra link will allow the user to avoid scrolling back up to the top of the comments. Also, if you test it on my site, you will find that the add comment box will “jump” above and below the comments to the link that was clicked to open it.
Reply to AaronAaron, thanks for posting that. I’ve made the changes it seems they’re in three spots for one. However, for some reason, the home page still doesn’t open the comments automatically. Any other ideas?
Thanks.
Reply to JodyOh, I didn’t see the special thanks for me
You are very welcome, Aaron (can I call you friend, please).
And the BIG Thanks goes for you, for this wonderful plug-in.
Thank You!
Reply to TrudenHi Aaron,
I think I found the issue, if it is one in the first place. In INAP Management, overall options, when I have “Use Options In INAP?” and “Use Simple Posts?” checked, I get the duplication issue. This is after I have enabled Prototype js., which is already part of my customized theme. If I unchecked “Use Simple Post?” the problem disappears. I guess maybe my theme may have some problems, I will play around more, I don’t think it is a bug wit this wonderful plugin, it is a problem on my side. I guess I posted it here to see if anyone else faces this… thanks again for the swift reply, buddy! Now that’s what I call support. Kudos, my friend.
Reply to alanbernardYes, the problem is with the simple posts option.
Are you using version 2.2.3 because it should have fixed that.
Reply to Aaroni checkmarked “Show HTML in preview” but it’s still stripping my img tags. Therefore none of my images are showing. Is there a way around this?
Reply to Tinstrange, when viewing the permalink to each page, img tag is stripped as well. is there a way to restore img?
Reply to TinMost likely this is being caused by something else. It is possible that if you are using a specific word count it may be trimming in the middle of the tag.
Reply to Aaroni have disabled every single plugin except INAP. the problem persists. INAP strips img tag.
Reply to Tinand it’s not because of my theme because using ‘default’ theme does the same thing. try it on any of your pages. i just installed a new fresh WP blog. the problem persists.
Reply to TinI’m not sure what to say. Have you made sure the img tag is not being cut off in the middle? You will have to view the source to see this.
If you look at my front page you will see an image.
Reply to AaronI don’t know what did I do or what INAP does, but since I installed it I don’t have SPAM.
Reply to TrudenMay be two or three spam caught by Akismet in the beginning, while I was setting it up.
I’ve created custom inap-comments.php where the post form is missing, and in the admin settings I enabled the post form to show in the single page.
May be I did something else but it is more than week now I don’t have a single SPAM.
Or it could be my lucky week
Oops…!
No wonder there is no SPAM 
Reply to TrudenIt seams that I can not comment on my blog toо
To make sure I don’t use modified files, I uploaded the original 2.2.3 INAP files.
I still couldn’t comment.
I’ve downgraded to 2.2.1 and I can comment again.
Note that I did change only INAP files, and not even a line from my theme files.
Reply to Trudenyour plugin requires that the img tag is within quotes, for example:
img src=”http://anthologyyoi.com/inap/example.jpg”
is there anyway you can remove this requirement or for me to modify the inap plugin to remove this requirement? i have over 400 entries with images that do not have quotes. wordpress doesn’t require it nor does any other plugin. thanks. your previous versions (prior to 2.1) didn’t do this either.
Reply to TinI think I’ve broken the commenting on my site, click my name for the link. You need to register to post comments (for some reason, INAP doesn’t seem aware of this and makes it look like non-registered users can post anyway) but you type your comment and hit “Submit Comment” and the throbber appears then nothing happens - the post is still submitted but the page doesn’t update and you have to refresh to view the comment. Any ideas?
Matt
Reply to Matthew Waters@truden
I’ll have to take a look at he code tomorrow.
This isn’t a problem caused by my plugin. Basic HTML requires that the src be inside of quotes.
@Matt
You removed the span that was named form_submit. You must add it back, but you can leave it empty.
You are correct, INAP doesn’t check if you are registered before showing you the form.
Reply to Aaronis there a way to change the plugin file itself to remove this odd html behavior? it was not present in your previous versions.
Reply to TinAaron, can you be more specific please? Which file does that span need to be in and whereabouts?
/Matt
Reply to Matthew Watersnevermind i did a quick find-and-replace in mysql. would you ever support frames with this plugin?
Reply to TinNevermind, got it sorted - used an app to compare the differences between my files and the originals. Check out the way I’ve done the comments though - the live preview is like typing in place, instead of being seperated it’s exactly where and how it’ll appear when submitted
Not too shabby for a guy that knows next to 0 PHP huh?
/Matt
Reply to Matthew WatersVery good.
Yes, I do like it. I’m very happy that people (you) have taken advantage of the new add comment submit form to really integrate it in your themes. When checking to see what was breaking I had to check and make sure you were using my plugin.
Bravo.
Eventually, I may make a showcase for people who do a very nice job integrating it.
Reply to AaronMany thanks Aaron - just a couple of features I’d like to request (or maybe receieve instructions on here for a quick patch) is the ability to check whether a user is logged in or not before showing the add comments form (and possibly displaying a “You need to Log in or Register to post comments” message when not logged in) and also the ability to move the close add comment form to the bottom of the add comment form when it’s opened, so it doesn’t interrupt the comment flow, like they do at the moment:
Thanks again for your help.
Matt
Reply to Matthew WatersSeems the live preview shows the image but it’s stripped from the real comment on here.
Here’s the image:
http://images.captobvio.us/link.png
Reply to Matthew WatersThere is a problem between Lester Chan’s WP-Email and INAP. Here is the error:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at …../public_html/wp-content/plugins/inap2.2.3/inap.php:311) in …../public_html/wp-content/plugins/email/wp-email.php on line 21
Any help you could provide to solve this problem would be much appreciated.
Thanks,
Reply to JasonJason
This is fairly easy.
Open:inap-get-info.php
Find:include ("inap-add-comments.php");
Add Before:
- Use the following to copy and paste the code.
Reply to Aaronif (! is_user_logged_in() && get_option('comment_registration')){$link = '<a href="' . get_option('siteurl') . '/wp-login.php" rel="nofollow">' . __('Login') . '</a>';if ( get_option('users_can_register') )$link .= ' or <a href="' . get_option('siteurl') . '/wp-login.php?action=register" rel="nofollow">' . __('Register') . '</a>';die( __('Sorry, you must '.$link.' to post a comment.'));}Aaron, many thanks again! I took your code and kind of took a little poetic licence on where it was placed - I put it in inap.php in the inap_addcomments_link section, so it displays the “You must login or register…” line instead of the “Add Comments” link - I feel this is better in terms of the user experience.
I was also impressed when reading your code to see that you took the time to make it account for my global preferences like changing depending on whether I had user registrations enabled
Reply to Matthew WatersMatt
I considered adding it there, but the feature has been added to the main build (meaning next time you won’t have to make an edit) and it is a long block of text for people who don’t want it.
Reply to Aaron@Truden
The problem is a missing ‘&’.
To fix:
Open:inap-misc.js.php
Find:parameters: 'type=submit_form
Replace with:parameters: 'type=submit_form&
This is about to be updated in the main Wordpress download.
Reply to AaronHow so?
Reply to Aaronprior to installing the plugin, commenting would always require signing into my site. But with your plugin, people just get a comment box… is there a way to say you need to login to leave a comment?
Reply to EliteTrackStarEliteTrackStar, it’s about 2 comments above yours
The code is there for you to add and everything. It’s in use on my site in a slightly different way though, if you put it in your inap.php in the addcomments_link section it should do what you want, like on mine - http://captobvio.us/
Matt
Reply to Matthew WatersThanks for fixing the posting bug, Aaron.
As you know I have problem accessing your web site from South Africa, but I stay close to it thanks to my email subscription.
I mean, if I don’t say “Thanks”, it is because I can not say it
Reply to TrudenYou are quite welcome and it is no problem. Unfortunately, I have found that several different people can’t access the site, but I can’t figure out the cause.
Reply to Aaronwithin frames, the ‘hide entry/post’ won’t work. no idea why not. it might have something to do with the javascript files.
Reply to TinOh, that isn’t caused by INAP, but by the very nature of Javascript and the browser. The short answer is that browsers and Javascript are specifically built so you can’t interact with a site in a frame to prevent people from spoofing sites through the use of frames.
If you want INAP to work in a frame you will have to specifically include the Javascript within the framed page.
There isn’t anything I can do as a general solution without direct access to your site and doing custom work.
Reply to AaronBoth.
Reply to Aaronright now i’m using the scroll left feature. it’s quite nifty. i notice no difference whether or not i checkmark ‘prototype.js’. what does prototype.js do with INAP? scroll left feature still works regardless of prototype.js.
i’m not interested in using scriptaculous at this point. thanks.
Reply to TinScroll Left has nothing to do with Prototype.js, it is built directly into INAP. The option to use Prototype just loads a larger AJAX library and allows you to use Scriptaculous (which does the effects for comments and the add comment box) if you want them.
Mostly, the option is there in case you have other plugins that also use Prototype.js.
Reply to AaronVery promising plugin, thanks for all the great work. The following problem came up: when INAP is activated, all users have access to the password protected posts. The password protection seem to be stripped away.
We use the standard WordPress function for password-protecting each post individually - typing a password into the “password-protect box” on the right hand sidebar when writing or editing a post.
Reply to Mike LanxessWhat version of Wordpress are you using? I just tested it and it seems to work fine.
Reply to AaronI use WP 2.1.3. Will try to get more information to figure out the cause.
Reply to Mike LanxessComment Preview does not work, what is the problem can be?
Reply to ZyamaI’ll need to know more details to figure out exactly what your problem is, but as a guess: the live comment preview only works automatically with the add comment box that comes with the plugin.
If you want to use it with your default theme you will have to edit your theme’s comments.php and replace your current comment box with:
- Use the following to copy and paste the code.
Reply to Aaron<p><label for="comment_<?php echo $id;?>">Comment:</label><textarea name="comment" id="comment_<?php echo $id;?>" style="width:95%;" rows="10" cols="10" tabindex="4"<?php if($inapall['live_preview'] == 1){echo 'onkeyup="inap_live_preview('.$id.')"';} ?> > </textarea></p><p><input name="submit" type="submit" id="submit_<?php echo $id;?>" tabindex="5" value="<?php _e('Submit Comment');?>" /><input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /></p>I changed index.php (added inap_excerpt). Where should I put I put it to index.php, but no result.
Sorry for so many questions.
Reply to ZyamaDid you follow the instructions located on the official INAP page?
Questions are no problem.
Reply to AaronThis plugin just doesn’t seem to work for me. I’ve tried the last three versions but my blog seems destined to remain Ajaxless.
I get two ‘Continue reading’ type messages for posts I’ve used the more tag in (or where I’ve explicitly set excerpts in the post), both of which link to the permalink page.
http://www.christophermiles.com.au/blog
Would appreciate any help, this plugin sounds like exactly what I want
Reply to Christopher MilesIt looks like your theme is missing <?php wp_head(); ?> in its header.
Open your theme’s header.php, find </head>, then add the code above to it.
Also, it looks like you are calling multiple functions to show your content. You need to use only one of the following: the_content, the_excerpt, inap_post, inap_excerpt, inap_content, doaction(’inap_post’). (I suggest using the_content or the_excerpt with simple mode enabled)
Reply to AaronThanks for the quick reply Aaron. Does it matter that I’m not using a theme as such - I’m running the loop in a custom index.php page rather than using a Wordpress page… When I have a chance to modify the header.php in the default theme I’ll do so to see if that makes a difference.
Re multiple functions, I’ve replaced the_content() with inap_content(). As far as I know this is the only point at which I’m calling the content - I’ll post my code after I have a go at modifying header.php
Thanks again for your help.
Reply to Christopher MilesNo problem. You are better off just using the_content, but yes, you must have wp_head() in your header. If you don’t, the plugin won’t have the Javascript it needs to run.
You can link directly to the files, but this is not suggested.
Reply to AaronI’m using wordpress 2.1.3 with the latest inline-ajax (downloaded about a week ago). Activation of the plugin is no-problem, but when I spefify the options in the admin (doesn’t matter which ones) and try to save, nothing gets saved to the DB. Zilch. Emtpy. No error message, no nothing. If I go back and forth between the admin menus, the inline ajax config form is empty. I looked into the DB - no options saved… What’s up? All other plugins work fine and wordpress works fine… ?? Thanks for helping out.
Reply to klausWhat browser are you using?
Reply to AaronHi, I have activated the latest INAP plugin in WP 2.1.3, and testing it locally on an WAMP server.
When U use the “more” link to display the rest of a post, I get the “apache” error:
Forbidden
You don’t have permission to access /sitename/
It does attempt to open the rest of the post, but to no avail.
I have no idea why this is happening, testing WP without the plugin works fine.
Although maybe not directly “your problem”
I am wondering if anyone else has had this error, and how to prevent it.
thanks in advance for any directions or solutions, If this works fine, it is a great plugin!!
Ronald
Reply to RonaldDo you have permalinks enabled?
Reply to AaronIE 7…
Reply to klausregarding my previous message: I just noticed that it DOES work (and wow does it look great!) on my remote hosted webserver, so it must be a local apache/php/sql glitch in my WAMP setup.
Still confusing, but I can live with testing and setting it up on my host’s server. I am not an webserver/apache expert (to say the least, I got it up and running!), so will just accept it doesn’t work locally. The post might still be useful to others, but I am pretty sure ths issue is all on my side, so apologies for causing a stir!
Thanks anyway!
Ronald
Reply to RonaldGood call, Aaron! Just tried in firefox and it WORKS… Any inside info on what’s going on? Thanks a lot!
Reply to klaus@Ronald
That is no problem. The first few test servers I set up were problematic. One time I forgot to turn on (and how to turn on) error checking so I would have to upload my files to the server just to see why they weren’t working.
You should try looking in your httpd.conf file to see if you have htaccess turned on.
@klaus
Unfortunately, I’m not sure what the cause is, but I’ll run some tests to find out.
Reply to AaronHi there! This seems like a really great pugin. It’s causing me a bit of frustration though…
Firstly, when I activate simple posts, it really does make the posts all nifty and shiny and whatnot, so I can see how it is supposed to work and it makes me happy with the potential of it all. Problem is, I also get a copy of the post at the top of the page. And by top, I mean TOP — as in, above the header image and top-most buttons and whatnot, where the page is supposed to meet the browser. This happens in every theme I’ve tried. Is this a known issue, by any chance?
Secondly, and possibly more frustrating, is that I cannot get the comments to work in anything other than basic fashion. I looked at and tried several possible variations of your instructions, but to no avail. Excuse my newbie-ness but, as someone with barely any knowledge of Wordpress or php… What does this even mean?
If possible, a little hand-holding, and maybe a brief walk on the beach in the moonlight would be great for my sanity. (which has been rapidly eroding since the installation of WP 2.1.3)
((ooooh! And a note on how that fellow got the preview to do the typing in place thingy would be extra peachy!
— I can’t even get a separate window!)
Reply to ChiLynChiLyn, I had similar to your problems when I first opened phpNuke to make Truden Web Site.
Well, I had that problems for a very long time
Then I installed Apache server in my PC and started to experiment and learn.
Now even WordPress is not that difficult for me
Try to experiment with few different themes.
Reply to TrudenTry to play around with the code.
And in the same time try to enjoy it
Just give me a second to get my sandles…ready? O.K.
Unfortunately, no, I have never heard of this. Have you tried disabling your other plugins one-by-one to see which one is causing the problem?
If disabling one of the plugins makes this go away, please let me know which one it is.
Secret code, I’m sorry. I’m sworn to never tell… Oh fine.
Okay, I’m going to make the assumption you have no clue what php is and how it works.
Take a look at my home page. Do you see where the show comment link is and where the comment box appears when you click it? The commands <?php inap_comments(); ?> and <?php inap_comments_link();?> control where they appear. Similarly, the commands <?php inap_addcomments(); ?> and <?php inap_addcomments_link();?> control where the add comment box appears.
These need to be added to your index.php inside the Wordpress loop—the line that looks like <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
Technically the commands can go anywhere inside there, but depending on how you want it to look and your theme certain places look better.
In my theme I add them in just before the <?php endwhile; ?> and I use
<?php do_action('inap_comments_link');?> | <?php do_action('inap_addcomments_link');?><?php do_action('inap_addcomments');?><?php do_action('inap_comments');?>The simple answer is he faked it. He just manipulated the form a little and the before and after text to make it look like it is the next comment in line.
The only instructions I can give without seeing your exact theme is he opened inap-add-comments.php and moved the line <?php do_action('live_preview'); ?> to the very beginning of the file.
What do you mean separate window? Do you mean like mine? If so, this is all done in CSS and and by adding HTML to the box in the admin panel that says “Text or XHTML before live comment preview”.
Reply to AaronThank you! Much more informative.
At this point, I am inclined to believe it was a possible conflict with the ajaxy things already loaded into the theme, combined with previous plugin/theme problems leaving traces in my DB. I say this beacause, when I deleted everything and started fresh, things that weren’t working….. started. However, I haven’t had the chance to try INAP exclusively with another theme yet.
Thank you for your help! I now have a much better idea what “put them where you want them to go” means in respect to all of that other code.
Thanks again!
Reply to ChiLynmoo.fx is kind of neat as well, have you considered using moo?
Reply to jezI love moo!!
I’ve used moo.fx in the past; in fact, the original versions of INAP used it.
I’ve recoded the AJAX and effects script selector to make it easier to use, so it will be fairly easy to add new libraries.
Reply to AaronHi, great plugin. i’m just facing one issue: I cant use Flashbox anymore. It seems as if the javasript that would open the window is deactivated somehow.
Same with Lightbox or Slimbox
Any idea?
Thanks
Reply to ThomasThis has repeatedly come up, but basically, there is no way to tell the other plugins that they should “do their thing” again when the entire post is loaded.
It is on my list of things to fix, but it isn’t easy.
Reply to AaronThanks for that quick reply!
Another question. Do the comments work for pages? I didn’t manage to get them working so I’m using the default ones.
Reply to ThomasThe comments should work on pages. (This is a page) Make sure you have the option to “Have Comments open by default on pages” checked on the management page.
Reply to AaronI’ve just updated the site to the developmental version of INAP. Now testing Threaded Comments.
Please let me know if you find an error on this site (email me if you can’t comment), so it can be fixed before this version is released.
Reply to AaronI’m trying to use the “load” feature and nothing is happening. I don’t know if this is an error or what. I did a refresh and still nothing.
Reply to BernardThank you I fixed it.
Reply to AaronHey, did somebody try the plug-in with IE 7?
Reply to TrudenI don’t use it often and only today I noticed that the “Save” button (admin settings) does not work with Internet Explorer 7 (Win XP home edition) in INAP 2.2.3
Yes, the problem is with the donation button. I didn’t consider that it was adding a form inside a form.
Reply to AaronGreat plugin! But please fix the bug with Lightbox
Reply to au8ustJust figured out that it doesn’t work with this handy tool: Tagalize-it. The shortcuts don’t get expanded.
Thomas
Reply to ThomasI’m working on various incompatibilities. i hope to have some of them fixed in the next version.
Reply to AaronFYI: Another issue is with podpress. It doesn’t play the files.
Reply to ThomasGreat plugin. This is really cool. I’d like to use the comment count as the link to inline comments but the “Show text (for comments) :” comments option in management tab doesn’t allow code. I also tried to alter line 265 in the inap.php file that says:
function inap_comments_link($comment_open= ‘Show Posts Comments’, $comment_hide=’Hide Post Comments’)