dwj
Forum Replies Created
-
Thanx!
Newsletter are in “sent” status. What’s odd is that opened statistics are kept.
Since my client has admin rights on newsletters, could it be that triggering the newsletter engine resets the counter even if no emails are sent?Forum: Requests and Feedback
In reply to: Search widget does not validate (XHTML/W3C)Hi,
maybe i’m a bit late in reply, but i’ve target the validation issue in a cleaner way than editing the core file by simply adding a filter to my function.php file.
Here are details.Hope this can be usefull.
bye!Forum: Themes and Templates
In reply to: P2 Theme – Real Time Updating Not Working@hesadanza Yep thanx for feedback, the
'html' => ''
thing is a typo. for future reference here is the correct code:in
p2/inc/ajax.php
from line 198 change:nocache_headers(); echo json_encode( array( 'numberofnewposts' => $number_of_new_posts, 'html' => $posts_html, 'lastposttime' => gmdate('Y-m-d H:i:s') ) );
to:
require (ABSPATH . WPINC . '/class-json.php'); $json = new Services_JSON(); nocache_headers(); echo $json->encode( array( 'numberofnewposts' => $number_of_new_posts, 'html' => $posts_html, 'lastposttime' => gmdate('Y-m-d H:i:s') ) );
and comment line 7 in
p2/functions.php
Forum: Themes and Templates
In reply to: P2 Theme – Real Time Updating Not Workinguh… and in reply to myself:
i also had to comment line 7 inp2/functions.php
to prevent the inclusion of P2 JSON file.Forum: Themes and Templates
In reply to: P2 Theme – Real Time Updating Not WorkingHi,
i’ve investigated the problem and i’ve come to a solution (at least for me) by editing the file inp2/inc/ajax.php
.1st of all I’m running a PHP version lower than 5.2 which lacks native support for JSON.
For what i can see, wordpress 2.9x has introduced a compatibility file to providejson_encode
ejson_decode
for PHP < 5.2 inwp-include/compat.php
which requireswp-include/class-json.php
, theJSON_service
class.Now, also P2 provides this class since for updates it relies on json encoded AJAX responses (see line 199 in
p2/inc/ajax.php
), but in a different version, which i think causes some conflicts:WordPress 2.9x : v 1.3 2009/05/22 23:51:00 P2: v 1.31 2006/06/28 05:54:17
My solution has been to call directly the WP class (
p2/inc/ajax.php
from line 198):nocache_headers(); echo json_encode( array( 'numberofnewposts' => $number_of_new_posts, 'html' => $posts_html, 'lastposttime' => gmdate('Y-m-d H:i:s') ) );
changed to:
require (ABSPATH . WPINC . '/class-json.php'); $json = new Services_JSON(); nocache_headers(); echo $json->encode( array( 'numberofnewposts' => $number_of_new_posts, 'html' => $posts_html, 'html' => '', 'lastposttime' => gmdate('Y-m-d H:i:s') ) );
Forum: Fixing WordPress
In reply to: “Missing a temporary folder” error with image uploadHi,
sorry for the late reply ??
The solution on my post is only possible if you have access to the php.ini file. The directive you have to change is system related and there’s no way to chenge even with an .htaccess file.
The only way through is to ask your hosting provider ??Forum: Fixing WordPress
In reply to: “Missing a temporary folder” error with image uploadHi, the problem is also discussed here and on my website i’ve posted a quick solution
bye!
Forum: Fixing WordPress
In reply to: Getting ‘Missing a temporary folder.’ message uploading imagethanx MichaelH, that was the problem i had on some local installations on both Linux and Mac (didn’t test on Windows) using XAMPP.
For future reference i’ve made a quick how-to on my website:
PS: this WP2.7 is really awesome good job! ??