alanft
Forum Replies Created
-
Forum: Plugins
In reply to: [Widget Logic] Working with 3.6Thanks yes I have it working on 3.6.1 with no issues I can see yet. I’ll give it a couple of days and update the readme with the official ‘compatible up to’ info
Forum: Plugins
In reply to: [Widget Logic] Show widget dependant upon previous page viewed.the only simple or ‘to hand’ way of driving this from the server end of things I can think of is to use the URL you get from
$_SERVER[‘HTTP_REFERER’]
and parse the URL somehow.
Forum: Plugins
In reply to: [Widget Logic] Internal Server erroryou have some invalid code in the WL field of one of your widgets. try blanking/restoring them one at a time to see if you can locate it. (of course it might be MORE than one, so you could save out your config and blank them one at a time)
Forum: Plugins
In reply to: [Widget Logic] Get 500 errori don’t believe there is a limit – but could be wrong. i’ve not had call for resetting the widget_logic options. Are you able to use the export and import options? If so, you could edit the exported options file down to
[START=WIDGET LOGIC OPTIONS] [STOP=WIDGET LOGIC OPTIONS]and reload that
Forum: Plugins
In reply to: [Widget Logic] Working with 3.6sorry dude – been on holiday. I have a backlog of promises re coding patches too. (I think). But it should be a quick check and update of the main read me so will get to it ‘soon’. cheers
Forum: Plugins
In reply to: [Widget Logic] Operators not workingfirst off see the FAQ for a ‘gotcha’ around using is_page…
http://wordpress.org/plugins/widget-logic/faq/
Then it sounds like your 2nd attempt *should* work. Try putting in the post IDs instead of names/slugs if you still can’t get it right. If that doesn’t work try a more basic ‘all pages, but this one’ logic like…
is_page() && !is_page('portfolio')Forum: Plugins
In reply to: [Widget Logic] Need Help With An Error Pleaseone of your widgets has logic in it that uses the in_category() function but doesn’t supply the required parameter specifying which category
Forum: Plugins
In reply to: [Widget Logic] Widget Logic Not Workingcould you give me a specific example of a multiple condition you are using
Forum: Plugins
In reply to: [Widget Logic] Problem with is_home() – not workingI’d be interested to know if you get the same result if you remove that
wp_reset_query();and tick the ‘Use wp_reset_query fix’ option at the foot of the widget admin pageForum: Plugins
In reply to: [Widget Logic] Proper condition code for single-speakers.phpsingle-speakers.php could specify a named sidebar (if it’s been declared in your theme already) and you could just configure that sidebar.
alternatively
is_singular( 'single-speakers' )is the form of conditional tag used to match custom post types, according to…http://codex.wordpress.org/Conditional_Tags#A_Single_Page.2C_Single_Post_or_Attachment
though I’ve not had the opportunity to try it out.
Forum: Plugins
In reply to: [Widget Logic] Only show widget to contributor roleyep, that should work. But levels are on their way out. officially ‘deprecated’ meaning support will be dropped in a future WP release. I think the recommended way would be to use capabilities like
current_user_can('edit_posts')which normally is true for contributors, authors, editors, admins etc. If you want to be specific you could tie it down to just contributors with
current_user_can('edit_posts') && !current_user_can('edit_published_posts')Alternatively you could use this non-standard function appthemes_check_user_role() to check by named role
http://docs.appthemes.com/tutorials/wordpress-check-user-role-function/Hope that helps
http://codex.wordpress.org/Roles_and_Capabilities#Contributor
Forum: Plugins
In reply to: [Widget Logic] Feature request patch: capabilities-based securityYeah, I’ll take a pass at putting that into the dev version soon. If 3.6 turns out to need an update I’ll release it really soon.
Forum: Plugins
In reply to: [Widget Logic] Widget Logic for Mobileno need to combine them – they should work together ‘as is’. you should be able to use the codes listed on that plugin’s FAQ
http://wordpress.org/plugins/wp-mobile-detect/faq/
eg wpmd_is_ios()
it might require you to set the “Load Logic” to a later point to ensure those functions are available. let me know what you find.
Forum: Plugins
In reply to: [Widget Logic] Restricting WidgetsThere’s an example here http://wordpress.org/plugins/widget-logic/other_notes/
• !is_page(‘about’) — everywhere EXCEPT this specific WP ‘page’
But there’s also a warning re using is_page in the FAQ too http://wordpress.org/plugins/widget-logic/faq/
Forum: Plugins
In reply to: [Widget Logic] how to show widget on blog pagecheck out the main page conditionals like is_home() …