alanft
Forum Replies Created
-
i don’t suppose you’d help with some extra troubleshooting codeβ¦
If you add
echo "<pre>WIDGET LIST=";print_r($widget_list); echo "</pre>";just before line 164, then before each error you should also see text saying “WIDGET LIST=⦔ and it would be useful to see what that is.
If you’d rather e-mail the results to me let me know and i’ll post my gmail.
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] Larger input area requesti’ve just committed v0.50 as ‘stable’ – it’s a big change in the core functionality so I’ve not changed a lot else so I can concentrate on any problems this causes.
however if you want textarea now I’ll ‘soon’ be updating the ‘development’ version you can get at:
http://wordpress.org/extend/plugins/widget-logic/download/
or you can try changing line 99:
echo "<p><label for='".$id_disp."-widget_logic'>Widget logic <input type='text' name='".$id_disp."-widget_logic' id='".$id_disp."-widget_logic' value='".$value."' /></label></p>";to
echo "<p><label for='".$id_disp."-widget_logic'>Widget logic <textarea class='widefat' type='text' name='".$id_disp."-widget_logic' id='".$id_disp."-widget_logic' >".$value."</textarea></label></p>";Forum: Plugins
In reply to: [Relocate Upload] [Plugin: Relocate Upload] Relocate Plugin Issueit’s gonna be the plugin – i’ve not been keeping it up to date since pre wp3 i think π (i stopped having a use for it.)
I’ll check it out though.
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] Larger input area requestha – you’ve caught me at an uncharacteristic moment. i’ve been *amazingly* lazy and complacent about my plugins. for literally years in WL case.
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] Larger input area requesti’ve put in something like that experimentally, and now I’m wondering how to do a ‘full load’ of the same file so you can load up and save out all your site’s WL options in one go.
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] Use $widget_ID ?i’ve added a tiny bit extra text in the documentation (not yet updated on wordpress.org) that should give people the nudge needed.
Forum: Plugins
In reply to: Widget Logic with child pagesI had a quick look at the ‘pages posts’ plugin and without looking closely I can see that it does things like
$GLOBALS[‘wp_query’]->is_home
which mean that the usual conditional tags wouldn’t evaluate as you might expect. If you haven’t yet tried it, the ‘use wp_reset_query’ option might reset things when the sidebar is called.
Forum: Plugins
In reply to: Widget Logic / Widget Context replacing callbackFWIW if anyone is still looking at this, i’ve updated the development version to 0.50 if anyone wants to check it out
I’ll try to test it a bit more myself before commiting it as the stable current version
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] Larger input area requestGood timing – i’ve been asked this before but as I’m just in the middle of updating the development version I’ll give it a go.
Forum: Plugins
In reply to: Widget Logic with child pagesassuming it’s a page and not a post, have you tried the page related conditionals?
http://codex.wordpress.org/Conditional_Tags#A_PAGE_Page
e.g. is_page( ‘birding’ )
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] Security hole?what i said last time:
http://wordpress.org/support/topic/widget-logic-security
also i’ll be doing a new release soon and I’m going to add the warning back in and make it *specifically* check for current_user_can(‘edit_theme_options’)
Forum: Plugins
In reply to: Widget Logic / Widget Context replacing callbacki’ve actually overhauled the code a fair bit now so the callback data is changed only very quickly and also things like is_active_sidebar should work properly to show empty sidebars as i’ve moved to using the ‘sidebars_widgets’ filter instead. which i should have moved to doing years ago.
need to test it on 3.3 now really though. so give me some time…
Forum: Plugins
In reply to: Widget Logic / Widget Context replacing callbacklooking good. got rid of the reliance on wp_head, and the code only changes the callback property for the duration of the dynamic_sidebar call. when i’ve done a bit more testing, updated the docs and remembered the SVN stuff I’ll try an update of the repository.
thanks all
Forum: Plugins
In reply to: Widget Logic / Widget Context replacing callbackhmm, maybe I’m getting ahead of myself. It looks like there are old and new style coded widgets, and that the old-style that don’t use the WP_Widget class won’t touch that filter.
however I think I can switch to using dynamic_sidebar_params instead of wp_head to sub in the intercepted callback, and then replace it shortly after, which should minimise WL’s interference.
Forum: Plugins
In reply to: Widget Logic / Widget Context replacing callbackwow. widget_display_callback ! when did that turn up?!
holy, I am learning a lot here thanks – i’ve certainly been letting the grass grow under my feet on this.
“which is an array which doesn’t only store the callback function!”
really, i thought it could only be a function or an array of (object, method name).
anyway, actual work is all but over, and a new simpler widget logic using the widget_display_callback filter is in the offing!