alanft
Forum Replies Created
-
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] Server error 500 when updating to 0.53apologies – see other threads – I accidentally made 0.53 the stable version. That was an error. I’ve tried to fix that, the repository should point back to 0.52 soon
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] New update broke my siteapologies – I accidentally made 0.53 the stable version. That was an error. I’ve tried to fix that, the repository should point back to 0.52 soon
sorry for unwittingly getting you to ‘beta’ the recent changes π
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] Problem after upgrading to 0.53apologies – I accidentally made 0.53 the stable version. That was an error. I’ve tried to fix that, the repository should point back to 0.52 soon
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] Problem after upgrading to 0.52BTW, someone pointed out to me that i use a function introduced in 3.1. so I’ve rolled that back in my local test code as it was very minor, and easily replaced with unchanging HTML.
If you are interested I will commit it as DEV in the repository for you to trial – see if that fixes all your issues?
“Parse errorβ¦ eval()’d code” is symptomatic of a PHP syntax error somewhere in your WL (unbalanced brackets in this case).
The best way to troubleshoot that is to blank your WL one at a time to see when the error goes away. You can save all your WL code out first, then when you find the (final) widget that was causing the problem, restore it all, and check the syntax of that widget’s code.
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] How to check for specific post type?http://codex.wordpress.org/Conditional_Tags#A_Post_Type
suggests you could try something like
‘book’ == get_post_type()
(though I’ve not tried it myself – never had use for post types, as yet)
There’s an example on
http://wordpress.org/extend/plugins/widget-logic/other_notes/
that will do most of the work for you:
global $post; return (in_array(77,get_post_ancestors($post))); — WP page that is a child of page 77
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] No Widgets on 404 pageThe conditional tag you are looking for:
is_404()
http://codex.wordpress.org/Conditional_Tags#A_404_Not_Found_Page
π
You set “Load Logic” option to the “when all PHP loaded” option and your site becomes entirely blank? (i.e. you don’t just mean all your widgets or something)
Other than !is_user_logged_in() what other WL code are you using on widgets?
Also, if you don’t use any WL based on the is_user_logged_in() function, is everything otherwise OK – regardless of the “Load Logic” option?
ah yes – the default sidebar stuff in themes. This is alluded to in the FAQ under “What’s this stuff in my sidebar when there are no widgets?”
I could make that clearer, if you have any suggestions on how I should word it, let me know.
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] error codes and cannot log ini have WL running on WP 3.4.1 with no problem at all. If you have any insight or troubleshooting info on what happened here, I’m happy to help.
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] Syntax errorThe screenshot of course only shows the first few chars, but the error implies there is a missing ‘)’ from the end.
Is the text up there ^^ a copy and paste of the WL code, as that looks pretty good.
sounds like your theme might be doing some bespoke database queries. what happens if you switch to a default theme?
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] Problem after upgrading to 0.52Thanks – that’s upsetting tho, as I thought I’d written it with only pot 2.8 filters and code in mind.
I’ll try setting up a 3.0 install and see what’s going on.
WL could fake this functionality for you if you maintain 3 custom menus: with no child pages showing / with children of parent 1 showing / with children of parent 2 showing
Then you add them as 3 custom menu widgets and use WL to show the correct one. Very messy – if you want to add a parent item you have to add it to each custom menuβ¦
Yuck. You might be better off looking around for a plugin that will do what you want. How about this one http://wordpress.org/extend/plugins/jquery-vertical-accordion-menu/ ?