thomask
Forum Replies Created
-
and one more – if a post do not have any category, this erro notice appears
Notice: Undefined offset: 0 in /var/www/vhosts/money.cz/httpdocs/wp-content/plugins/wordpress-seo/frontend/class-breadcrumbs.php on line 175Notice: Trying to get property of non-object in /var/www/vhosts/money.cz/httpdocs/wp-content/plugins/wordpress-seo/frontend/class-breadcrumbs.php on line 175
I have solved it by adding get_post_type() condition to line:
if ( function_exists('is_post_type_archive') && is_post_type_archive() && get_post_type()) {but only when there is no matching post. Sorry for multiple posts
and btw get_post_type(); (line 221) on such pages returns FALSE, so the whole part after it does not work
ups, it works (i do not know why it does not before, probably the same problem), forgot my last sentence – you add TB_iframe to the URL and it works, i didn’t know about this param (it is not described on thickbox page). briliant 😉
Yes, changing priority to 11 did work. Strange. I guess that there is some filter, which is turned on content with shortcodes.
about the iframe question – this i know, i just wondered, if there is way, how i could open iframe in thickbox, when clicking the iframe. But it was a silly question. Proper sollution would be to add e.g. image from youtube with thickbox a href to youtube. I will look into youtube oembed, this could be quite easily done.
The bigger problem are other external pages – thickbox got problem opening external URLs in Chrome, as chrome do not allow it, because of its default Access-Control-Allow-Origin. It is shame and make the function almost entirely useless, i wonder, that it would be much better to standard DOM create iframe with src=path in lightbox window, then trying to load the content using javascript, what may be insecure, so chrome block it. But this is standard jQuery thickbox behaviour, so i guess you cannot do anything with that.
Forum: Plugins
In reply to: [WPGPlus] [Plugin: WPGPlus] error noticesre: If by the “wp way of writing to plugins folder” you mean http://codex.wordpress.org/Filesystem_API, I’d rather not have to ask the user for ftp credentials to their hosting provider just to set a cookie.
and you are asked for creentials when your are installing or updating plugin (i’m not)? It depends on the settings of the web probably, but maybe if you would create the file and then just update it, it would not need the credentials. Or maybe (I’m not sure) it could be possible to create this file during instalation with some writable attributes.
anyway thank you for working on the improvements
btw i have been looking into anchor-utils.php and see, that the same filter is passed to the_content, the_excerpt, widget_text, comment_text
but the bug appears only with the_content.
So it maybe a conflict with your filter and some of my filters/plugins, but it still does not make sense why using this filter in other shortcode somewhere else on the page will result in destroying other plugin somewhere else filtering other content
Forum: Plugins
In reply to: [WPGPlus] [Plugin: WPGPlus] error noticesI just want to point to this problem, because it makes your plugin unusable by anyone, who takes care of security. E.g. about the problem with permissions – first imo it should be possible to use wp way of writing to plugins folder, which works normaly when installing plugins. Or maybe even better – you should use wp-content.
about the curl – again wp contains it’s own HTTP API (http://codex.wordpress.org/HTTP_API) which should be used
…
Your plugin idea is great, so please do not take my comments any bad, i just want to help it improveForum: Plugins
In reply to: [WP Super Cache] [Plugin: WP Super Cache] error noticesNOTICE: wp-content/plugins/wp-super-cache/wp-cache.php:401 – Undefined index: wp_supercache_cache_list
NOTICE: wp-content/plugins/wp-super-cache/wp-cache.php:1038 – Undefined index: HTTPSForum: Plugins
In reply to: Relevanssi – any way to include pages rather than exclude them?look at my solution here http://wordpress.org/support/topic/plugin-relevanssi-a-better-search-solved-feature-easier-selection-of-what-to-not-search?replies=1
if you know a bit of programming, you can easily modify it to do what you want (e.g. you can call it “search_include” and then walk all post which do NOT have this marked via ‘meta_compare’ => ‘!=’ atribute
You can look on my solution here http://wordpress.org/support/topic/plugin-relevanssi-a-better-search-solved-feature-easier-selection-of-what-to-not-search?replies=1
if you want to keep your simply exclude, you just probably need to modify the meta key they use for excluding
Forum: Plugins
In reply to: [WP Gallery Custom Links] [Plugin: WP Gallery Custom Links] error noticesactually i do not know exactly where, but it definitely is 😉 e.g. when you use relevanssi search or probably when you are using [gallery] in widget etc.
i will test it for you if you will make this change (i have allready done – i hardcode it to your plugin)
I know it is wrong even in core wordpress, i have allready reported this bug http://core.trac.wordpress.org/ticket/20870
I got even quickfix for wordpress:
add_filter( 'post_gallery', 'mc_post_gallery_fix', 1000, 2 ); function mc_post_gallery_fix () { global $post; if (!$post) return ' '; }Forum: Plugins
In reply to: [WP Gallery Custom Links] [Plugin: WP Gallery Custom Links] error noticesgreat, you got five stars from me 😉
there is also one more error notice in some special casesNotice: Trying to get property of non-object in /var/www/vhosts/money.cz/httpdocs/wp-content/plugins/wp-gallery-custom-links/wp-gallery-custom-links.php on line 104
(sometimes $post is not populated, so you should do something like
75: if (!$post) return;Forum: Plugins
In reply to: [Cleaner Gallery] Custom URL in [gallery] with Cleaner Gallery installedthis may help (not tested) http://wordpress.org/extend/plugins/wp-gallery-custom-links/screenshots/