'; //if we don't the panel will show old value...which may scare people. //$inapall doesn't need to be updated because it has the new values added to it immediately $use_options = get_option('inap_use_options'); } if($inapall['comment_template'] == '1'){ $temp1 = 'checked="checked"'; }elseif($inapall['comment_template'] == '2'){ $temp2 = 'checked="checked"'; }else{ $temp = 'checked="checked"'; } if($inapall['split_mode'] == '3'){ $sm3 = 'checked="checked"'; }elseif($inapall['split_mode'] == '2'){ $sm2 = 'checked="checked"'; }else{ $sm1 = 'checked="checked"'; } if($inapall['split_comments'] == '3'){ $sc3 = 'checked="checked"'; }elseif($inapall['split_comments'] == '2'){ $sc2 = 'checked="checked"'; }else{ $sc1 = 'checked="checked"'; } if($inapall['paginate_mode'] == '3'){ $fp3 = 'checked="checked"'; }elseif($inapall['paginate_mode'] == '2'){ $fp2 = 'checked="checked"'; }elseif($inapall['paginate_mode'] == '1'){ $fp1 = 'checked="checked"'; }else{ $fp0 = 'checked="checked"'; } if($inapall['default_behavior'] == 'content'){ $sel1 = 'checked="checked"'; }else{ $sel2 = 'checked="checked"'; } if($use_options == '1'){ $uop = 'checked="checked"';} if($inapall['strip_excerpt'] == 1){ $se = 'checked="checked"'; } if($inapall['show_html'] == 1){ $sh = 'checked="checked"'; } if($inapall['use_fade'] == 1){ $uf = 'checked="checked"'; } if($inapall['use_prototype'] == 1){ $up = 'checked="checked"'; } if($inapall['use_scriptaculous'] == 1){ $us = 'checked="checked"'; } if($inapall['use_scriptaculous_posts'] == 1){ $usp = 'checked="checked"'; } if($inapall['show_comments_single'] == 1){ $scs = 'checked="checked"'; } if($inapall['show_addcomments_single'] == 1){ $sas = 'checked="checked"'; } if($inapall['show_comments_page'] == 1){ $scp = 'checked="checked"'; } if($inapall['show_addcomments_page'] == 1){ $sap = 'checked="checked"'; } //if($inapall['show_comments_home'] == 1){ $sch = 'checked="checked"'; } if($inapall['add_comments_tags'] == 1){ $act = 'checked="checked"'; } if($inapall['simple_posts'] == 1){ $sp = 'checked="checked"'; } if($inapall['simple_comments'] == 1){ $sc = 'checked="checked"'; } $inapall['link_show_text'] = remove_thes(stripslashes(htmlspecialchars($inapall['link_show_text'],ENT_QUOTES))); $inapall['link_hide_text'] = remove_thes(stripslashes(htmlspecialchars($inapall['link_hide_text'],ENT_QUOTES))); $inapall['comment_open'] = stripslashes(htmlspecialchars($inapall['comment_open'],ENT_QUOTES)); $inapall['comment_hide'] = stripslashes(htmlspecialchars($inapall['comment_hide'],ENT_QUOTES)); $inapall['comment_tag'] = stripslashes(htmlspecialchars($inapall['comment_before'],ENT_QUOTES)); $inapall['comment_all_tag'] = stripslashes(htmlspecialchars($inapall['comment_before'],ENT_QUOTES)); $inapall['comment_body_tag'] = stripslashes(htmlspecialchars($inapall['comment_body_before'],ENT_QUOTES)); $inapall['comment_title_tag'] = stripslashes(htmlspecialchars($inapall['comment_title_before'],ENT_QUOTES)); $inapall['addcomment_open'] = stripslashes(htmlspecialchars($inapall['addcomment_open'],ENT_QUOTES)); $inapall['pagelinks'] = stripslashes(htmlspecialchars($inapall['pagelinks'],ENT_QUOTES)); $inapall['addcomment_hide'] = stripslashes(htmlspecialchars($inapall['addcomment_hide'],ENT_QUOTES)); /** Temporary to ensure people stop using the_title() etc. **/ function remove_thes($link_text){ global $err,$message; $link_text = preg_replace('!the_title\(.*?\)!','%title',$link_text); $link_text = preg_replace('!the_author\(.*?\)!','%author',$link_text); if($err !== 1 ){ preg_match('!the_(.*?)\(.*?\)!',$link_text,$match); if(count($match) >0){ $err = 1; $message .= 'I have detected that you are using a function such as the_title in your show/hide text. These are depricated and will not be supported in the next version of INAP.
Please remove this function as soon as possible. If you would like to continue using this function then please request that a tag ( like %title) be added as a patch in the official INAP support thread.
This message will be repeated until the function is removed.'; } } return $link_text; } if($message){ echo '

'.$message; echo '

'; } ?>

Edit Inap Configuration

  • name="inap_use_options"> «—

may cause undesirable effects with certain plugins; if you have any problems with it, you may want to edit your files as described in the instructions. ','inap');?>

  • name="inap[simple_posts]"> «—


  • name="inap[simple_comments]"> «—

  • «—

  • «—




  • «—

  • «—

  • name="inap[strip_excerpt]"> «—

  • name="inap[show_html]"> «—






  • «—

  • «—

  • «—

  • «—

  • «—

  • «—

  • «—

  • «—

  • «—

  • «—







  • «—

  • «—

  • «—

  • «—

  • name="inap[show_comments_single]">«—

  • name="inap[show_comments_page]">«—

  • «—

  • «—

  • name="inap[add_comments_tags]"> «—

  • name="inap[show_addcomments_single]"> «—

  • name="inap[show_addcomments_page]"> «—

  • name="inap[use_prototype]"> «—

official INAP support thread.','inap');?>
  • «—

  • «—

  • name="inap[use_scriptaculous]"> «—

  • «—

  • «—

  • : «—

  • : «—



Have you found this Plugin useful?
This project is over 90,000 characters long (plus 15,000 in the documentation), and has taken well over 160 hours to code and test THIS latest major version.
If this Plugin has helped you, isn't it worth a little bit of time or money? If you are feeling monetarily generous make a donation.
How much is entirely up to you, but numbers with lots of 0's, a 1 on the left and a decimal point on the right are the best kind. =D

Or if circumstances make a donation impossible, links, refferals and comments are appreciated.

Quick Doc

Now open your index.php (or post.php depending on your theme) in your themes folder. To display posts in-line replace the_content or the_excerpt with inap_content or inap_excerpt respectively. These will give you the most basic options and are mirror images of the normal function.

To display comments in-line add <?php do_action('inap_comments'); ?> where you want the comments to appear when they are loaded and add <?php do_action('inap_comments_link'); ?> where you want the show/hide comments link to appear.

To display the add comment box in-line add <?php do_action('inap_addcomments'); ?> where you want the add comment box to appear and add <?php do_action('inap_addcomments_link'); ?> where you want the show/hide add comment box link to appear.

Save the file and upload it to your current theme folder.



Reference
This is not the complete reference, just parts that you may need frequently. Please visit the main INAP page for the latest documentation.

This plugin adds the following tags for the loop (there are multiple ways to do the same thing):
Listed in preferential order.

To show post content:
Select Simple Post <- best if you use the admin panel.
do_action('inap_post'); <- if Simple Mode doesn't work, or has problems.
inap_post();

To show comment link:
do_action('inap_comments_link');
inap_comments_link();

To show comment content:
do_action('inap_comments');
inap_comments();

To show add comment link:
do_action('inap_addcomments_link');
inap_addcomments_link();

To show add comment box:
do_action('inap_addcomments');
inap_addcomments();

Pagination:There are three basic ways you can harness the power of pagination. 1) on a post-by-post basis with nextpage. Everything else works as normal. The page links are added inside the content and only show up when you load the rest of the post. 2) Force all posts to paginate just set it to split on paragraphs or words and you are ready to go. 3) Remove the excerpt from the beginning of all posts. To do this, just select trim excerpt and force the number of pages to be 1.

Split Mode:Inap can display the content itself in three ways. Option 1 just splits the post only if there is a <!–more–> tag. Option 2 always splits it after the line break you set (defaults to the first). Option 3 emulates the_excerpt in that it will trim it to a specified number of words. However, if you explicitly add an excerpt to the post it will automatically use that in all cases.

Show HTML:The default is to show the html (1), but if you want html stripped from your previews you can set this to off (0). Stripping HTML may cause some plugins not to work correctly, and may cause display errors.

Should other information be here? Drop me a comment.