microkid
Forum Replies Created
-
Forum: Plugins
In reply to: Custom Post Types and PluginsHi whipd09,
I’m trying to find the time to do some updates on my plugin soon. Can you elaborate on what you would like to see in a new version regarding the new Custom Post Types feature?
Thanks
Forum: Plugins
In reply to: [Plugin: WP Super Cache] how-to keep shopping cart dynamic?Thanks, I’ll dive into it this week and let you know what comes out.
Forum: Plugins
In reply to: [Plugin: WP Super Cache] how-to keep shopping cart dynamic?Donncha, another question about the DONOTCACHEPAGE constant;
Is this meant as a flag for a specific page not to be cached, or for a request? I’m trying to figure out a way to not cache pages for users that are not logged in, but I’m using a custom user system, not the one that comes with WordPress. So I’m trying to tell the plugin not to cache requests for or serve cached pages to users with a certain $_SESSION flag.
I wrote a small plugin, but it doesn’t seem to work:
function wp_super_cache_dont_cache_for_members() { if( $_SESSION['logged_in'] ) { define( "DONOTCACHEPAGE", true ); } } add_action("init", "wp_super_cache_dont_cache_for_members");
TIA
Forum: Plugins
In reply to: [Plugin: Microkid’s Related Posts] Change “Related Post” headingHi,
You can select a HTML heading element from the plugin’s admin interface (h1, h2, etc.). It’s in Settings > Related Posts
To customize the heading through CSS, you can use something like
#related-posts h2 { font-size: 11px; }
Note that for h2 you’ll have to fill in whatever header type you’ve selected in the admin.
Forum: Plugins
In reply to: Sorting authors by last nameThanks for your suggestions.
@tugbucket
The function you refer to organises the users by role but doesn’t sort them by last name.@michaelh
This is indeed a solution but I’m trying to avoid the get_userdata function because it means another database query for each individual member. This would make the page very slow. The plugin you refer to has the same problem; I implemented it and it needed over 1300 queries.That’s why I’m trying to bring everything together into 1 or 2 queries.
Forum: Plugins
In reply to: Adding rewrite rules and $wp_rewrite->flush_rules()That’s amazing, I’ve been struggling with this for over a year!
Please let me know if you need me for testing, I’ve been using custom rewrites a lot.
Thanks guys.
Forum: Plugins
In reply to: Adding rewrite rules and $wp_rewrite->flush_rules()Actually, I did come up with a solution.
There’s a filter called when the rewrite rules are created: rewrite_rules_array
Using this seems to work and does NOT time out:
function my_rewrite_rules( $rewrite_rules ) { $new_rules = array( 'foobar/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?foobar=$matches[1]&paged=$matches[2]' ); $rewrite_rules = $new_rules + $rewrite_rules; return $rewrite_rules; } add_filter('rewrite_rules_array', 'my_rewrite_rules');
Note that you will need to flush the rewrite rules once. This can easily be done by going to the options/permalinks page in your wp-admin.
Sorry for not letting you know earlier. Please let me know if this will work for you as well.
Forum: Plugins
In reply to: Adding rewrite rules and $wp_rewrite->flush_rules()*bump*
Forum: Plugins
In reply to: [Plugin: TinyMCEComments] IE6 FixThanks for sharing, saved me a lot of time ??
Forum: Plugins
In reply to: [Plugin: Microkid’s Related Posts] Feature RequestsHi onsetonair,
I’m working on a new version where the plugin returns a full posts object instead of just the ID and the title of the related posts. With this, you should be able to create any custom display options for the list of posts, like thumbnails etc.
I really like your suggestion of being able to display related posts using a [..] shortcode. I’ll look into that.
Thanks for your suggestions!
Forum: Fixing WordPress
In reply to: Prevent wp_options table from crashingAnyone?
Forum: Plugins
In reply to: [Plugin: Microkid’s Related Posts] Using variable from other functionHi Tim,
Can you explain a little more what it is exactly that you are trying to establish?
regards,
M.Forum: Plugins
In reply to: [Plugin: Google XML Sitemaps] Rebuilding sitemap via cron not workingTry adding the -G option to the curl command to force a GET request instead of the default POST method.
Forum: Plugins
In reply to: [Plugin: Permalinks Moved Permanently] How Long is this needed?Since there will be links out there pointing to your old permalinks forever, you should just leave it .. forever.
Forum: Fixing WordPress
In reply to: Conditional tag for page 1,2,3,4…..