Mohan Chevuri
Forum Replies Created
-
Forum: Plugins
In reply to: [Widget Logic by Path] Do Not Display on Single Post ?p=131This plugin needs permalinks to be set to anything but the default.
You can verify this WP setting at Settings->Permalinks
If Permalinks are enabled, URLs will contain human friendly strings like “/about/” instead of “?p=xxx”. Then you can follow the instructions in the plugin description to show/hide widgets.
Forum: Plugins
In reply to: [Widget Logic by Path] Filter by TitleIt looks like your URLs are unique for each videocategory. So you can still use URL patterns to show/hide widgets.
If for example the URLs are:
http://www.myweb.com/videoscategory/funny/ http://www.myweb.com/videoscategory/drama/ http://www.myweb.com/videoscategory/tech/And you want search widget to show only on funny and drama, you can put the below lines in the widget logic box.
videoscategory/funny/ videoscategory/drama/Widget Logic by Path is meant to filter widgets by URLs, but it definitely is possible to write a small plugin to filter widgets by title.
The new plugin based on this filter is on the plugin repository.
FYI
Notice: Undefined index: widget_logic-options-filter in wp-content/plugins/widget-logic/widget_logic.php on line 171
Same notice on lines 176, 184
Thanks! Appreciate your help!
It works. Could you also add a filter or something for the “WL field text”, which says “Widget Logic”. Then I will be able to add a link/popup to display some help.
OR
You can add a tiny help link which by default points to “http://wordpress.org/extend/plugins/widget-logic/other_notes/”. Then if you provide a way to change the link, I will change it to point to this plugin help page.
Whichever you think will be more appropriate.
Thanks! I downloaded it from dev. I’m writing a small plugin to use the filter. I will let you know how it works.
Awesome! I will try it out when I get back home.
Thanks much!
You already seem to be in the party mode. Have fun!
That is the way we are using widget logic with our function, now in testing. But we decided not to use eval in production, as this WPMU installation will be used by about 500 people and might become a security issue.
Thanks for the reply. Yeah I can modify widget logic plugin code a tiny bit, but thought it will be better if I don’t modify the code and use some kind of hook (or action as you said) to call in my custom plugin. That way I can do future updates without going and updating widget logic code everytime.
Something like this…
if(!(function_exists("widget_logic_eval_override")?widget_logic_eval_override($wl_value):eval($wl_value)))