vguna
Forum Replies Created
-
Forum: Plugins
In reply to: [WP fail2ban - Advanced Security] xmlrpc logging to LOG_AUTHSame here. Tried both, LOG_AUTH and LOG_AUTHPRIV. It’s always logged to /var/log/syslog. I’m using Ubuntu 14.04. Any idea what’s going wrong?
Forum: Plugins
In reply to: [Digg Digg] [Plugin: Digg Digg] SSL supportI’ll tried that, but it still uses http. Does it cache something somewhere? Looking at the changelog for 5.3.4 it looks like https support is now buildin?
Any pointers?
Forum: Plugins
In reply to: [Affiliate Super Assistent] Sidebar widget collection depending on articleGreat thanks! Will the item count also be supported then :-)?
Forum: Plugins
In reply to: [Affiliate Super Assistent] Sidebar widget collection depending on articleI managed it via a little bit coding.
I’ve created a text widget and entered the following code:
<?php global $post; asa_collection('post_'.$post->ID,'all','sidebar_item'); ?>
The widget will show a collection which name is post_<postid>. So for a post with the id 5 it will display the collection with the name post_5.
To test whether a collection exists for the post, and whether to display the widget at all, I’m using the plugin WidgetLogic.
For the condition I set:
is_single() && asa_existing_post_collection()
The configured condition calls a custom function that I added to my wordpress installation:
function asa_existing_post_collection() { global $post, $asa; $exist = $asa->getCollection('post_'.$post->ID,'all','sidebar_item'); return $exist!=''; }
This allows me to show collections depending on a current post in the sidebar.
The only caveat is: it has to render the collection twice. Once for the WidgetLogic and 2nd when displayed.
I couldn’t find a suitable public method to test for collections within amazon simple admin. Maybe one could be implemented in the future? Also it would be nice if one could specify the number of items to display when invoking asa via php directly.
Great news. Thanks for the quick reply!