westpointer
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Password-Protect a Directory with .htaccess@ 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
In reply to: Password-Protect a Directory with .htaccessSearching 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
In reply to: WordPress Add Page & Permalinks Pages Chewing up CPU@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
In reply to: [Plugin: Auto Group Join] Admin Menus ErrorHey 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 to get it until I can get my svn updated.
Forum: Fixing WordPress
In reply to: Sorting Next Gen Gallery?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
In reply to: Announce: wp-forecast v1.0 final – weather pluginexcellent work! Thx!
Forum: Plugins
In reply to: Are there any trivia/quiz plugins?wbquiz can still be downloaded at http://kanslozebagger.org/wp-content/wbQuiz-0.1.0.zip
http://www.thewestbrooks.com/bruce/techblog/test/
I’m not sure how well it works but plan to give it a try.
Forum: Plugins
In reply to: Plugin to add <! — nexpage –> to postshehe … 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
In reply to: memory_limit problem, host won’t helpLots of good tips on this page:
Forum: Plugins
In reply to: Plugin to add <! — nexpage –> to postsBTW – 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
In reply to: post blank – max size issue?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
In reply to: post blank – max size issue?(formatting.php line 71)
$pee = preg_replace(‘/\n?(.+?)(?:\n\s*\n|\z)/s’,
“$1\n”, $pee);
// make paragraphs, including one at the endcommenting 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
In reply to: Blank Page Loading Error.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
In reply to: Image not showingCould you explain more the difference between using TEMPLATEPATH and bloginfo(‘template_directory’)? Why pick one over the other?
Forum: Fixing WordPress
In reply to: Variable to determine last pageold post but thought I’d answer in case someone else needs this too:
if ($page == $numpages) { echo “Last Page!”; }