Title: westpointer's Replies | WordPress.org

---

# westpointer

  [  ](https://wordpress.org/support/users/westpointer/)

 *   [Profile](https://wordpress.org/support/users/westpointer/)
 *   [Topics Started](https://wordpress.org/support/users/westpointer/topics/)
 *   [Replies Created](https://wordpress.org/support/users/westpointer/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/westpointer/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/westpointer/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/westpointer/engagements/)
 *   [Favorites](https://wordpress.org/support/users/westpointer/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 36 total)

1 [2](https://wordpress.org/support/users/westpointer/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/westpointer/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/westpointer/replies/page/2/?output_format=md)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Password-Protect a Directory with .htaccess](https://wordpress.org/support/topic/password-protect-a-directory-with-htaccess/)
 *  [westpointer](https://wordpress.org/support/users/westpointer/)
 * (@westpointer)
 * [13 years ago](https://wordpress.org/support/topic/password-protect-a-directory-with-htaccess/#post-3656014)
 * @ Self Hosted WP.com – I was using the tool in cPanel to assist with creating
   the .htaccess entries and password files. But I’d get a redirect with a 404 error.
   The solution ended up being simple:
 * at the top of /.htaccess add
 * #next two lines allow password protected directories with 404 errors
    ErrorDocument
   401 ./error.html ErrorDocument 403 ./error.html #
 * then create error.html file.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Password-Protect a Directory with .htaccess](https://wordpress.org/support/topic/password-protect-a-directory-with-htaccess/)
 *  [westpointer](https://wordpress.org/support/users/westpointer/)
 * (@westpointer)
 * [13 years ago](https://wordpress.org/support/topic/password-protect-a-directory-with-htaccess/#post-3656008)
 * Searching for the same issue. I have two sites running WP. On one, the password
   protection works; the other gives the 404 page. blah
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WordPress Add Page & Permalinks Pages Chewing up CPU](https://wordpress.org/support/topic/wordpress-add-page-permalinks-pages-chewing-up-cpu/)
 *  [westpointer](https://wordpress.org/support/users/westpointer/)
 * (@westpointer)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/wordpress-add-page-permalinks-pages-chewing-up-cpu/#post-2296444)
 * [@fonglh](https://wordpress.org/support/users/fonglh/) – where did you see this
   is fixed in 3.3?
 * I have a site with 800+ pages. We don’t want to change the permalink structure
   but saving a page nearly crashes the server.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: Auto Group Join] Admin Menus Error](https://wordpress.org/support/topic/plugin-auto-group-join-admin-menus-error/)
 *  [westpointer](https://wordpress.org/support/users/westpointer/)
 * (@westpointer)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/plugin-auto-group-join-admin-menus-error/#post-1232059)
 * Hey Gang – sorry for the issue above. I didn’t understand how my plugin would
   get renamed when I loaded it to WP depository. I need to put my training wheels
   back on!
 * I’ve updated the plugin to work correctly with the latest wpmu and bp (1.1.x)
   versions. Please see [bn-auto-join-group](http://brentandmary.net/2009/10/24/bn-auto-join-group-plugin/)
   to get it until I can get my svn updated.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Sorting Next Gen Gallery?](https://wordpress.org/support/topic/sorting-next-gen-gallery/)
 *  [westpointer](https://wordpress.org/support/users/westpointer/)
 * (@westpointer)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/sorting-next-gen-gallery/#post-1212486)
 * I have my settings this way but when I do the custom sort then click “Update 
   Sort Order” the pictures go back to how they were sorted.
 * So, I had to change the “Alt / Title text” sorting which works.
 * Anyone else having issues with the custom sort working?
 * I’m on WP 2.8.4, NextGEN 1.3.5
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Announce: wp-forecast v1.0 final – weather plugin](https://wordpress.org/support/topic/announce-wp-forecast-v10-final-weather-plugin/)
 *  [westpointer](https://wordpress.org/support/users/westpointer/)
 * (@westpointer)
 * [18 years ago](https://wordpress.org/support/topic/announce-wp-forecast-v10-final-weather-plugin/#post-621642)
 * excellent work! Thx!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Are there any trivia/quiz plugins?](https://wordpress.org/support/topic/are-there-any-triviaquiz-plugins/)
 *  [westpointer](https://wordpress.org/support/users/westpointer/)
 * (@westpointer)
 * [18 years ago](https://wordpress.org/support/topic/are-there-any-triviaquiz-plugins/#post-728366)
 * wbquiz can still be downloaded at [http://kanslozebagger.org/wp-content/wbQuiz-0.1.0.zip](http://kanslozebagger.org/wp-content/wbQuiz-0.1.0.zip)
 * [http://www.thewestbrooks.com/bruce/techblog/test/](http://www.thewestbrooks.com/bruce/techblog/test/)
 * I’m not sure how well it works but plan to give it a try.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Plugin to add <! — nexpage –> to posts](https://wordpress.org/support/topic/plugin-to-add-lt-nexpage-gt-to-posts/)
 *  Thread Starter [westpointer](https://wordpress.org/support/users/westpointer/)
 * (@westpointer)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/plugin-to-add-lt-nexpage-gt-to-posts/#post-724014)
 * hehe … continuing the discussion with myself. I found that nextpage is evaluated
   in query.php starting around line 1511.
 * Before the line `if ( preg_match('/<!--nextpage-->/', $content) ) {`
 * I added this:
 *     ```
       $pos1 = stripos($content, '<!--nextpage-->');
       	if ($pos1 === false) { /* we did not find a nextpage tag so add automatically */
       		$content = str_replace("< /P >", "< /p >", $content);
       		$save = explode('< /p >', $content);
       		$content = '';
       		$count = 1;
       		foreach ($save as $a){
       			$content .= $a.'< /p >';
       				if ($count % 10 == 0){
       					$content .= '<!--nextpage-->';
       				}
       			$count = $count + 1;
       		}
       	}
       ```
   
 * The hack first checks if the content contains nextpage tags already. If yes, 
   then nothing is done. If no nextpage tags are found, the hack will insert nextpage
   after each 10th closing paragraph tag. Wish I could make this a plugin but I 
   don’t think there’s anywhere to hook to have the right impact.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [memory_limit problem, host won’t help](https://wordpress.org/support/topic/memory_limit-problem-host-wont-help/)
 *  [westpointer](https://wordpress.org/support/users/westpointer/)
 * (@westpointer)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/memory_limit-problem-host-wont-help/#post-701548)
 * Lots of good tips on this page:
 * [wordpress-error-fix-increase-php-memory-for-cachephp/](http://perishablepress.com/press/2008/02/17/wordpress-error-fix-increase-php-memory-for-cachephp/)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Plugin to add <! — nexpage –> to posts](https://wordpress.org/support/topic/plugin-to-add-lt-nexpage-gt-to-posts/)
 *  Thread Starter [westpointer](https://wordpress.org/support/users/westpointer/)
 * (@westpointer)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/plugin-to-add-lt-nexpage-gt-to-posts/#post-723977)
 * BTW – here is what the plugin looks like. Right now it adds `<!--nextpage -->`
   after the third ending paragraph tag.
 *     ```
       <?php
   
       function addNextPageBL($content) {
       	$save = explode('</P>', $content);
       	$content = '';
       	$count = 1;
       	foreach ($save as $a){
       		$content .= $a.'</P>';
       			if ($count == 3){
       				$content .= 'Next Page: <!--nextpage-->';
       			}
       		$count = $count + 1;
       	}
   
       	return $content;
       }
   
       add_filter('the_content', 'addNextPageBL');
   
       ?>
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [post blank – max size issue?](https://wordpress.org/support/topic/post-blank-max-size-issue/)
 *  [westpointer](https://wordpress.org/support/users/westpointer/)
 * (@westpointer)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/post-blank-max-size-issue/#post-697276)
 * Hmmm … commenting out the line does fix the problem BUT the length of the content
   is not the issue. Something else is going on for me. I’ll try to dig into the
   preg_replace tomorrow.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [post blank – max size issue?](https://wordpress.org/support/topic/post-blank-max-size-issue/)
 *  [westpointer](https://wordpress.org/support/users/westpointer/)
 * (@westpointer)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/post-blank-max-size-issue/#post-697275)
 * > (formatting.php line 71)
   > $pee = preg_replace(‘/\n?(.+?)(?:\n\s*\n|\z)/s’,
   >  “$1\n”, $pee); // make paragraphs,
   > including one at the end
   > commenting that line out fixes the problem. All the posts now appear.
 * Bless you! I was having the exact same issue. Commenting out the line above fixed
   it.
 *   Forum: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
   
   In reply to: [Blank Page Loading Error.](https://wordpress.org/support/topic/blank-page-loading-error/)
 *  [westpointer](https://wordpress.org/support/users/westpointer/)
 * (@westpointer)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/blank-page-loading-error/#post-631944)
 * I’m seeing this too. My theme was occasionally flipping automagically back to
   the default theme. So, I figured I’d just remove the default theme (and classic)
   theme from the server so my theme was the only one available.
 * Now, I’m getting the occasional white screen. When I do, I go into wp-admin and
   find that my theme is listed as available but there is no current theme selected.
   Select my theme again and the site is back up.
 * I wonder if I renamed my theme to default if that would help? I also just upgraded
   to WP 2.3.3 so maybe that will help too.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Image not showing](https://wordpress.org/support/topic/image-not-showing-1/)
 *  [westpointer](https://wordpress.org/support/users/westpointer/)
 * (@westpointer)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/image-not-showing-1/#post-697560)
 * Could you explain more the difference between using TEMPLATEPATH and bloginfo(‘
   template_directory’)? Why pick one over the other?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Variable to determine last page](https://wordpress.org/support/topic/variable-to-determine-last-page/)
 *  [westpointer](https://wordpress.org/support/users/westpointer/)
 * (@westpointer)
 * [20 years, 7 months ago](https://wordpress.org/support/topic/variable-to-determine-last-page/#post-78939)
 * old post but thought I’d answer in case someone else needs this too:
 * if ($page == $numpages) { echo “Last Page!”; }

Viewing 15 replies - 1 through 15 (of 36 total)

1 [2](https://wordpress.org/support/users/westpointer/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/westpointer/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/westpointer/replies/page/2/?output_format=md)