daveseah
Forum Replies Created
-
Hey Emre,
I just tested it, and it appears to work for me leaving comments as an admin. Thanks for taking the time to add the feature!
This is a related issue from the plugin author, where someone else posted their solution.
After reading it, I modified my version of WP Fastest Cache to check for approved comments on the hook “comment_post” through an additional function.
(1)
wpFastestCache.php::detectNewPost()added this line at end of function:add_action('comment_post',array($this,'approvedDeleteCache'),10,2);(2)
Then I added this function right below it:public function approvedDeleteCache ($comment_id, $status) { if ($status==1) $this->singleDeleteCache($comment_id); }The comment_post hook is run everytime a comment is written to the database, but the status check hopefully keeps the number of cache deletes to a minimum without blowing up from processing spam comments, which was the plugin author’s concern.
I guess I will find out if that’s the case or not! Fingers crossed for luck!
I am also seeing the issue with the cache NOT being deleted when a comment does not need to be approved. This happens for my own comments, and for comments that for known people who already have an approved comment.
Forum: Everything else WordPress
In reply to: Broken ww.wp.xz.cn Search (database error)Thanks HandySolo. I didn’t realize that the search button was broken by design π
Forum: Plugins
In reply to: Great In-line photo hackI just installed it for a quick peek, but didn’t get around to modifying my wordpress source files to activate it. It sounds cool, though.
Forum: Plugins
In reply to: Great In-line photo hackI just have released an infrastructure update to LZIL to resolve following issues:
* wp-content path detection no longer depends on database settings “fileupload_realpath” and so forth (they seem to be gone in WP 2.x, unless you have upgraded from 1.5x)
* admin panel added, tells you what your upload path is, with some simple syntax help
* most importantly: the admin panel now provides a way of delete cached image files from within the plugin. This should be pretty stable, but I would back up your website first before trying it.
* the admin panel also will tell you if there’s a newer version available.
There are a number of newer features I’m planning on adding as I consider my next site design, so feel free to leave requests at the page:
Forum: Everything else WordPress
In reply to: Broken ww.wp.xz.cn Search (database error)Oops, that was the error I saw when I listed source, I actually see (in red letters on a pink background) when I tried “LZIL” as a keyword search:
XML Parsing Error: xml declaration not at start of external entity
Location: http://search.ww.wp.xz.cn/lzil
Line Number 63, Column 31:Forum: Plugins
In reply to: Inline Images in Markdown HackUploaded dev version 0.2 at the same location. It is still a hack of the PHP-Markdown 1.0 plugin.
* New thumbnail syntax is more like Markdown, and uses reference ids
* No need to include styles in wp-layout.css anymore
* Built-in Image Popup code
* Default left-aligned, 120 pixel wide thumbnail if you don’t specify third ( … ) field.
Example syntax:
!@[images/hello.jpg](popimg: “Hello There”)(R240)
will create a right-aligned, 240 pixel wide image inline with the current paragraph from the JPEG file located in your wp_content directory (or whever your upload folder starts at). Clicking on the image will pop it up in a new window. You can replace popimg: with a URL of your choice.Forum: Plugins
In reply to: Inline Images in Markdown HackI’ve uploaded a zip file of the current hack at http://davidseah.com/index.php?p=38 for those who are interested. Thanks!
Forum: Plugins
In reply to: Inline Images in Markdown HackHiya!
I’ve been playing with WordPress and really enjoy using Markdown. I haven’t been able to find an image system that shares its philosophy of writing, so I took a stab at implementing something like it. And I hate processing and uploading multiple thumbnails for images, so I adapted some code from PictPress to automatically generate them on the fly. The Markdown addition I made allows you to specify image alignment and width, and it uses some additional CSS tags to do the formatting.
I’ve put up a post about what I’ve done so far at http://davidseah.com/index.php?p=36, in case anyone is interested. I haven’t tested it extensively, and I’m pretty new to this whole blog/open source thing, so any comments are appreciated!
Dave