mtnbikersocal
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: ERROR: WordPress 2.9 requires MySQL 4.1.2 or higherThank you for the upgrade steps. I’m proceeding now. I’m waiting for my installation to be downloaded to my computer, just to be sure (although a bit late).
I think the database created by WordPress admin has the things removed that you had to remove.
I hope the WordPress team has gotten the word that there is a problem with this upgrade.
Forum: Plugins
In reply to: Do not display a specific Widget for a specific pageOn further thought, create a file named, e.g., widepage.php that contains:
(is_page("stills")) or (is_page("anotherwidepage"))
then in sidebar.php and other pages that have the logic:
wide=include (widepage.php);
and then the logic becomes:<?php if wide { echo "<div id=\"right-column-no\">"; } else { echo "<div id=\"right-column\">"; } ?>Then when you add a widepage, only the widepage.php file has to be changed.
None of this has been tested and I’ve not used PHP much lately, so test thoroughly or consult references. For example, do variables have special naming such as$wide?
Also the addition of comments explaining what’s going on.Forum: Plugins
In reply to: Do not display a specific Widget for a specific pageI’m not expert on PHP, but I think that is OK.
But to make it more readable, try an ‘or’
<?php if (is_page("stills")) or (is_page("anotherwidepage")) { echo "<div id=\"right-column-no\">"; } else { echo "<div id=\"right-column\">"; } ?>Untested.
PS. To be clear ‘right-column-no’ is a style in the style sheet that looks like this:
#right-column-no {visibility:hidden}
and there is another style called by a similar if else:
#left-column-single {width : 800px;float : left;padding-left:40px;}
I just took the 300px width of the right column and added it to the 500px width of the left-column format.This is not a general solution, that is, it will depend of the particular theme. This is for the ‘A Dream to Host’ theme.
And not an easy scheme to maintain if you add pages, either lots of work, or one forgets how they did it. I try to put notes about changes like this in a private or unpublished page. Hoping someone will have a better solution
Forum: Plugins
In reply to: Do not display a specific Widget for a specific pageThank you. Looks like a winner.
I see that I messed up my post a bit. I messed up the link for Conditional Tags
Forum: Fixing WordPress
In reply to: [Plugin: NextGEN Gallery] Slide – Show widget display bugThanks lesfreeman. I just put a new WordPress/NextGen install and thumbnails were fitted to fill the square thumbnail.
You may need to add a step after resizing images: resize thumbnails (Or maybe this is all I needed to do to get full image thumbnails).