Paul Phillips
Forum Replies Created
-
Forum: Plugins
In reply to: [Redirection] Where is the redirection file?The redirect items should be in your database in the (wp_prefix)_redirection_items table
Change
border: 1px none;To
border: 1px solid #000;Having none will remove the border.
Can you set this as resolved then please?
Forum: Plugins
In reply to: [WP eCommerce] [Plugin: WP e-Commerce] jQuery problem?Seems to work fine for me Sophie!?
Forum: Fixing WordPress
In reply to: Count with get_term_by() ONLY the published postsThis helped me quite a bit too although I needed something to match against 2 different custom taxonomies and terms at the same time.
Here’s the query if anyone else wants it.
SELECT COUNT( ID ) FROM $wpdb->posts INNER JOIN $wpdb->term_relationships ON ( $wpdb->posts.ID = $wpdb->term_relationships.object_id ) INNER JOIN $wpdb->term_relationships AS tt1 ON ( $wpdb->posts.ID = tt1.object_id ) WHERE ( $wpdb->term_relationships.term_taxonomy_id IN ( SELECT term_taxonomy_id FROM $wpdb->term_taxonomy WHERE term_id = $term_id_1 AND taxonomy = $custom_tax_1 ) AND tt1.term_taxonomy_id IN ( SELECT term_taxonomy_id FROM $wpdb->term_taxonomy WHERE term_id = $term_id_2 AND taxonomy = $custom_tax_2 ) ) AND $wpdb->posts.post_type = 'post' AND ( $wpdb->posts.post_status = 'publish' )
I’d check what changes have been made in the bundled theme page (wp-e-commerce/wpsc-theme) compared to the version in your main WordPress theme folder.
It’s probably out of date.
Livequery is bundled with WP-eCommerce
wp-e-commerce/wpsc-admin/js/jquery.livequery.jsIt should be loaded by the WP e-Commerce Plugin if it’s working properly.
Forum: Plugins
In reply to: [DB Cache Reloaded Fix] DB Cache Reloaded Fix for Multisite> Ron Strilaef
“Cache Static Content” means images, javascript and css files. It’s most likely a problem in your .htaccess file.
Adding something like the following will enable browser side caching of static content
<IfModule mod_mime.c> AddType text/css .css AddType application/x-javascript .js AddType text/x-component .htc AddType text/html .html .htm AddType text/richtext .rtf .rtx AddType image/svg+xml .svg .svgz AddType text/plain .txt AddType text/xsd .xsd AddType text/xsl .xsl AddType text/xml .xml AddType video/asf .asf .asx .wax .wmv .wmx AddType video/avi .avi AddType image/bmp .bmp AddType application/java .class AddType video/divx .divx AddType application/msword .doc .docx AddType application/vnd.ms-fontobject .eot AddType application/x-msdownload .exe AddType image/gif .gif AddType application/x-gzip .gz .gzip AddType image/x-icon .ico AddType image/jpeg .jpg .jpeg .jpe AddType application/vnd.ms-access .mdb AddType audio/midi .mid .midi AddType video/quicktime .mov .qt AddType audio/mpeg .mp3 .m4a AddType video/mp4 .mp4 .m4v AddType video/mpeg .mpeg .mpg .mpe AddType application/vnd.ms-project .mpp AddType application/x-font-otf .otf AddType application/vnd.oasis.opendocument.database .odb AddType application/vnd.oasis.opendocument.chart .odc AddType application/vnd.oasis.opendocument.formula .odf AddType application/vnd.oasis.opendocument.graphics .odg AddType application/vnd.oasis.opendocument.presentation .odp AddType application/vnd.oasis.opendocument.spreadsheet .ods AddType application/vnd.oasis.opendocument.text .odt AddType audio/ogg .ogg AddType application/pdf .pdf AddType image/png .png AddType application/vnd.ms-powerpoint .pot .pps .ppt .pptx AddType audio/x-realaudio .ra .ram AddType application/x-shockwave-flash .swf AddType application/x-tar .tar AddType image/tiff .tif .tiff AddType application/x-font-ttf .ttf .ttc AddType audio/wav .wav AddType audio/wma .wma AddType application/vnd.ms-write .wri AddType application/vnd.ms-excel .xla .xls .xlsx .xlt .xlw AddType application/zip .zip </IfModule> <IfModule mod_expires.c> ExpiresActive On ExpiresByType text/css A31536000 ExpiresByType application/x-javascript A31536000 ExpiresByType text/x-component A31536000 ExpiresByType text/html A3600 ExpiresByType text/richtext A3600 ExpiresByType image/svg+xml A3600 ExpiresByType text/plain A3600 ExpiresByType text/xsd A3600 ExpiresByType text/xsl A3600 ExpiresByType text/xml A3600 ExpiresByType video/asf A31536000 ExpiresByType video/avi A31536000 ExpiresByType image/bmp A31536000 ExpiresByType application/java A31536000 ExpiresByType video/divx A31536000 ExpiresByType application/msword A31536000 ExpiresByType application/vnd.ms-fontobject A31536000 ExpiresByType application/x-msdownload A31536000 ExpiresByType image/gif A31536000 ExpiresByType application/x-gzip A31536000 ExpiresByType image/x-icon A31536000 ExpiresByType image/jpeg A31536000 ExpiresByType application/vnd.ms-access A31536000 ExpiresByType audio/midi A31536000 ExpiresByType video/quicktime A31536000 ExpiresByType audio/mpeg A31536000 ExpiresByType video/mp4 A31536000 ExpiresByType video/mpeg A31536000 ExpiresByType application/vnd.ms-project A31536000 ExpiresByType application/x-font-otf A31536000 ExpiresByType application/vnd.oasis.opendocument.database A31536000 ExpiresByType application/vnd.oasis.opendocument.chart A31536000 ExpiresByType application/vnd.oasis.opendocument.formula A31536000 ExpiresByType application/vnd.oasis.opendocument.graphics A31536000 ExpiresByType application/vnd.oasis.opendocument.presentation A31536000 ExpiresByType application/vnd.oasis.opendocument.spreadsheet A31536000 ExpiresByType application/vnd.oasis.opendocument.text A31536000 ExpiresByType audio/ogg A31536000 ExpiresByType application/pdf A31536000 ExpiresByType image/png A31536000 ExpiresByType application/vnd.ms-powerpoint A31536000 ExpiresByType audio/x-realaudio A31536000 ExpiresByType image/svg+xml A31536000 ExpiresByType application/x-shockwave-flash A31536000 ExpiresByType application/x-tar A31536000 ExpiresByType image/tiff A31536000 ExpiresByType application/x-font-ttf A31536000 ExpiresByType audio/wav A31536000 ExpiresByType audio/wma A31536000 ExpiresByType application/vnd.ms-write A31536000 ExpiresByType application/vnd.ms-excel A31536000 ExpiresByType application/zip A31536000 </IfModule>
Forum: Plugins
In reply to: [Hyper Cache] [Plugin: Hyper Cache] wp-content/advanced-cache.php ??Temporarily set the folder permissions of wp-content to 777 and then re-install the plugin.
It should be able to create the correct file and work as normal. Set the permissions back 755 after it’s installed though.
Forum: Plugins
In reply to: [Tabbed Widgets] Tabbed Widgets Plugin broken in WordPress 3.3This is broke with version 0.1.8 and WordPress 3.1.4
(the latest version available for PHP <5.2)I edited lines 83 and 88 and changed them to array(), basically removing the dependency calls.
Then had included the jQuery UI Progressbar 1.8.16 script at the top of the jquery.ui.plupload.js file to get it to work.
The main reason for the incompatibility is the lack of support for some of the new jQuery UI elements in WordPress 3.1.4.
Forum: Fixing WordPress
In reply to: Styling broke in wp-admin in all the sites on my hostFixed it, I added
define('CONCATENATE_SCRIPTS', false);
Before the require_once in wp-config.php.
Still seems very odd though and I’ve had to do this for every site on my host.
Forum: Fixing WordPress
In reply to: Styling broke in wp-admin in all the sites on my hostCheers for the pointers.
That is indeed the cause of the problem although I’m still a little baffled at why it’s suddenly changed.
I’ve just edited load-style.php and added the error reporting;
error_reporting( E_ALL | E_STRICT );
Hasn’t really given me anymore clues though.
All my sites look like this;
https://blog.ftwr.co.uk/archives/2009/09/29/missing-dashboard-css-and-the-perils-of-smart-quotes/In any web browser! Grrr!
Forum: Themes and Templates
In reply to: custom menu -> open link in a new window?That’s awesome thanks!
Just noticed you can add the CSS class too!
I’d be hardcoding the #menu-item-xxx into my style sheets for custom menu items. Can just use .menu-item-home etc. now! Loads better!
Forum: Plugins
In reply to: [Social Slider] [Plugin: Social Slider] alternatives to this plugin?I’ve actually paid for the pro version of this plug-in but the amount and frequency of updates gets on my nerves! There’s almost a new one every week!