alanft
Forum Replies Created
-
Forum: Plugins
In reply to: [Widget Logic] SuggestionThis allows you to add CSS classes to widgets as you prefer
http://wordpress.org/extend/plugins/widget-css-classes/
(my preference is to work with the ones provided). Not sure about the widget ID thing – might add it as the ‘alt/title text’ so it pops up when you mouse over
Forum: Plugins
In reply to: [Widget Logic] Prob with showing in category and category postsas the roll back to 0.52 didn’t fix it, it sounds like there is some other contributory factor.
try going back to basics. can you make one forever vanish with ‘false’ and another always appear with ‘true’. Does ‘is_single()’ work? how about ‘is_category(‘travel’)’ by itself and so on.
Forum: Plugins
In reply to: [Widget Logic] Problems specifying pages for displayOne thing to try is the wp_reset_query option. From the FAQ…
http://wordpress.org/extend/plugins/widget-logic/faq/
Logic using is_page() doesn’t work
If your theme calls the sidebar after the loop you should find that the wp_reset_query option fixes things. This problem is explained on the is_page codex page.Forum: Plugins
In reply to: [Widget Logic] One suggestion to improve Widget Logic translationsha, i see you had a placeholder in the original ES.po file ready for this 🙂
will DEV all this and get on to the DE translator too. Thanks again.
Forum: Plugins
In reply to: [Widget Logic] One suggestion to improve Widget Logic translationspoint taken. I’ll try to add this to the dev and get it into the next minor release. I don’t intend that to be for a while though as I’ve had a run of releases trying to fix silly little bugs.
I’m still a bit hazy on running translations – if I add that extra bit on line 239, I’m fairly sure I need to update the .pot file. Do all the .mo and .po files HAVE to be updated, or can it work without those getting updated?
Forum: Plugins
In reply to: [Widget Logic] Erratic behaviour on plugin admin popupsI think this might be “widget logic visual” not widget logic
Forum: Plugins
In reply to: [Widget Logic] Prob with showing in category and category postslooks fine. did you change anything else at the same time?
Forum: Plugins
In reply to: [Widget Logic] Widgets won't expand in admin to display settingsFor anyone still checking this the correct change is from %i% to __i__, not XXX
if you use __i__ that is the new ‘template’ prefix for a widget that is replaced with the ‘instance’ number when it’s properly assigned
I’ve just updated this in the main WL code.
Forum: Plugins
In reply to: [Widget Logic] Have to save twice before logic takes effectok, spoke too cautiously, that is almost definitely it, now I’ve spent what 30 seconds looking at the code in WP3.5 o_O
so i’ve committed that to the dev version now if you want to try it out. I’ll try for a .551 release, which sort of sucks, but it’s better now than later as people are still updating to .55
Forum: Plugins
In reply to: [Widget Logic] Have to save twice before logic takes effecttry this fix. Line 234, change
if ($number==-1) {$number=”XXX”; $value=””;}
to
if ($number==-1) {$number=”__i__”; $value=””;}it *looks* like that’s the correct fix, but I’ve spotted something else that’s distracting me. see if that works, and if it does I’ll add it to dev, and then do a minor update for that soon. Must read up on this change that happened in 3.5 because of jquery (or something)
NB, that’s: underscore underscore ‘i’ underscore underscore
Forum: Plugins
In reply to: [Widget Logic] Have to save twice before logic takes effectwell I’ve tracked that down to the weird %i% changed to XXX thing that I had to do for reasons not entirely clear to me. now to fix…
Forum: Plugins
In reply to: [Widget Logic] Have to save twice before logic takes effecti see this too. thanks for the heads up, i will have to track that one down
you should be able to do something like
is_page(‘ZZZ’)
to match the page (or whatever that ZZZ represents), and
$_GET[‘lang’]==’ru’
for the bit after the ‘?’ in the URL, and combine them like
is_page(‘ZZZ’) && ($_GET[‘lang’]==’ru’)
to target the russian language version of the page
Forum: Plugins
In reply to: [Widget Logic] Determining Post Formattry it without the final ‘;’
Forum: Plugins
In reply to: [Widget Logic] Unwanted Widgetshttp://wordpress.org/extend/plugins/widget-logic/faq/
“What’s this stuff in my sidebar when there are no widgets?”
you need an empty widget that always appears so the default ones don’t appear. But if you don’t have any widgets appearing, there is either something up with the logic you are using, or the theme.
try adding a widget with no WL code – if it doesn’t appear, then there is definitely something up.