zappoman
Forum Replies Created
-
Forum: Plugins
In reply to: Notes on writing plugins for wp-super-cacheThanks, that is certainly a helpful reply for how to invalidate the cache for a particular post.
My other question was more related to writing supercache plugins in general. I am looking for something that describes the intended usage model, etc… I didn’t see anything specific on Donncha’s site, but maybe I missed it. I see the references in the readme.txt that mentions the hooks and suggests looking at plugins/searchengine.php as an example… but I’m curious if there is a deeper explanation? Has anyone else written plugins for supercache.
If the answer is “Nope, that’s all the documentation” then that’s fine, I’ll figure it out. But if there’s someplace with more examples it would be helpful.
Thanks in advance.
Forum: Fixing WordPress
In reply to: Major problems!Ahhh… I figured out what MY problem was. I had a plugin that was adding a new line in EVERY php resource request… this was breaking the tiny_mce_gzip.php code and resulting in no JS being returned when the browser loaded the page.
Tough little bugger to track down!
Forum: Fixing WordPress
In reply to: Major problems!I also see this problem but only intermittently. I also get a java scipt error that “tinyMCE is not defined”. Any help on what causes this to break?
Forum: Fixing WordPress
In reply to: Multiple WP installs, same login for each?I’ve played around with this a little and I kinda have it working, but not quite the way I’d like.
I am trying to integrate the following…
1) WordPressMU
2) Instance of WordPress 2.1.2 running with a “wp_” prefix. This happens to be a “sitewide tags” blog (see the mu forums to know more about this).
3) A second instance of WordPress 2.1.2 with a “events_wp_” table prefix, used as a special site news and events blog (different from the main MU blog).
4) bbPressI’ve got everything using the same cookies, so single login works across them all. And the user tables are working pretty well.
EXCEPT… using Dan’s ‘default_role’ suggestion exactly as above, I couldn’t access the admin backend to my 2nd WordPress instance (with the “events_wp_” table prefix).
I looked at the code and realized it was because even though admin was a user it was only given ‘default_role’ rights.
I got around this problem by extended Dan’s hack a little more. Namely, I added the following code…
if ( ! is_array($this->caps) ) {
$this->caps = array();
$this->roles = array();
$this->set_role(get_settings('default_role'));
}if ($this->user_login == 'admin')
{
$this->add_role('administrator');
}This works ok, but not great. For example, I’m not really able to use any other roles for users.
In looking at the code I wonder if the right fix is to adjust the $wpdb->prefix variable to match the prefix of the user table and user meta data. But my first attempt at modifying the “cap_key” and “role_key” didn’t seem to work. Is there a good source of documentation on how roles and capabilities are handled in the code base?
Forum: Plugins
In reply to: Sharing user data between WordPress sites.I’d be curious to see your solution.
Have you dealt with sharing roles for the users? Namely it seems like your users will need to have an appropriate capabilities and roles setting in WP to be able to do much at all. Do you have that working properly?
Forum: Fixing WordPress
In reply to: Emailing in posts using gmailCouple suggestions… First of all, if you want to use the “Post via E-mail” feature built in to WordPress, then you have to use a POP3 server that is not running over SSL.
Gmail only supports access to POP via SSL.
So the first thing you need to do is to go find a wordpress plugin that support POPvSSL. A great choice appears to be “postie” which also supports a ton of other great features.
Look for it here… http://postie.economysizegeek.com/
Second, if you are having problems with this on a Win32 server machine, your problem may be related to these PHP bugs…
http://bugs.php.net/bug.php?id=29036
http://bugs.php.net/bug.php?id=36496Apparently php_imap.dll doesn’t work with php_openssl.dll on Win32.
The bug appears to have been fixed in PHP builds after Feb. 19, 2007.
Good Luck.
Forum: Fixing WordPress
In reply to: Post via e-mail is not working why. I use gmailJon,
Couple suggestions… First of all, if you want to use the “Post via E-mail” feature built in to WordPress, then you have to use a POP3 server that is not running over SSL. Gmail only supports access to POP via SSL.
So the first thing you need to do is to go use a wordpress plugin that support POPvSSL. A great choice appears to be “postie” which also supports a ton of other great features.
Look for it here… http://postie.economysizegeek.com/
Second, if you are having problems with this on a Win32 server machine, your problem may be related to these PHP bugs…
http://bugs.php.net/bug.php?id=29036
http://bugs.php.net/bug.php?id=36496Apparently php_imap.dll doesn’t work with php_openssl.dll on Win32.
The bug appears to have been fixed in PHP builds after Feb. 19, 2007.
Good Luck.