xyclops
Forum Replies Created
-
Forum: Plugins
In reply to: [W3 Total Cache] [Plugin: W3 Total Cache] CDN Support for user avatarsThis apparently only works when the uploaded file is too large and needs to be resized.
Is there any way I can add a rule to auto-reject any file in the avatars folder that does not end in either bpfull. or bpthumb. ?
I don’t care if I have to edit the core plugin code – where are these rejections processed and how can I get at it? I’m guessing it isn’t possible to set up the rule via the CDN admin page, and the config file only lets me set up strings as part of cdn.reject.url – I don’t think that a negative lookaround in regex
e.g.
^((?!bpfull).)*$
but I figure if I can get to the part of the code where this happens I’d be able to implement it myself?
Forum: Plugins
In reply to: [W3 Total Cache] [Plugin: W3 Total Cache] CDN Support for user avatars^^^ was really useful once I thought things through.
I made a full post here:
but the gist is that if you set your custom file list to contain:
wp-content/uploads/avatars/*bpfull.* wp-content/uploads/avatars/*bpthumb.*
and you exclude:
/wp-content/uploads/avatars/signups/* /wp-content/uploads/avatars/*/*x*.*
then you can still use a CDN for your users’ avatars and allow them to use the buddypress cropping tool.
edit: of course you also need to set the autoupload to something sensible – that is just a tradeoff between the time your users will have to wait and the number of times a day you want to run the autoupload script.
edit2: Frederick when you say that w3tc supports regular expressions do you mean that it would be possible to match a filename that ends in dimensions, e.g.:
somefile200x300.jpg
another100x300.jpg– as you can see I am only matching the x and the . in the filename which isn’t really ideal.
If you use the sidebar ‘Performance’ menu, you should see an option called ‘Install’
Click that and you’ll be taken to a page that has your .htaccess settings. The direct link to the page is:
/wp-admin/admin.php?page=w3tc_install
and you’ll find the code under the heading ‘Rewrite rules’
Forum: Plugins
In reply to: [WP Super Cache] [Plugin: WP Super Cache] Enable caching on installExcellent, thanks!
Forum: Plugins
In reply to: How to get id or title of page set as static home pageAbsolutely fantastic. Thanks so much!
Forum: Plugins
In reply to: How to get id or title of page set as static home pageThanks for the reply.
I was looking for something that would let me determine the page set as the static home page without needing either the id or the title. I figure there must be some kind of method in WP that does this, but I have not been able to find it yet.
Forum: Plugins
In reply to: [Plugin: NextGen Gallery] Thumbnails aren’t created?What uploader are you using? I found I had problems with the flash-based uploader, but everything worked fine with flash disabled.