Mark Hodder
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Enable Automatic Plugin Install / Upgrades?Any thoughts?
Forum: Themes and Templates
In reply to: Conditional Statements and DatesThanks that’s what was tripping me up!
For anyone else I was able to get it working with a few minor adjustments:
<?php $julytime = mktime(0, 0, 0, 7, 31, 2008); if (get_the_time('U') < $julytime) echo "July 2008"; else the_time('F d, Y', '', ''); ?>Took out the extra bracket in the mktime statement and modified the the date slightly.
Forum: Themes and Templates
In reply to: Conditional Statements and DatesAnyone?
Is this question better suited for a different area of the forum?
Forum: Everything else WordPress
In reply to: WP Inserting \ in front of ” or ‘The slash problem seems to be caused by the fact that recent versions of WordPress slash everything that gets posted. Unfortunately, Vanilla isn’t expecting this.
You can keep these slashes from appearing by adding, the following lines at the end of your Vanilla database.php file:
$_GET = stripslashes_deep($_GET );
$_POST = stripslashes_deep($_POST );
$_COOKIE = stripslashes_deep($_COOKIE);Author of above code: filosofo
Finally a workaround!
Forum: Everything else WordPress
In reply to: WP Inserting \ in front of ” or ‘hmmmm magic_quotes_gpc are already off, guess that wasn’t it 🙁
Forum: Everything else WordPress
In reply to: WP Inserting \ in front of ” or ‘Thank you! I will give that a try.
Forum: Everything else WordPress
In reply to: WP Inserting \ in front of ” or ‘So is there any global option in PHP to turn this off? When people are posting in my forum it also inserts \ in front of any quotes. It didn’t start to do this until I integrated WP functions into my forum.
Forum: Everything else WordPress
In reply to: WP Inserting \ in front of ” or ‘No ideas?