mgiulio
Forum Replies Created
-
Hi @philipp,
Yes, the sidebars are selected like text selection on a page.
When I drag with the mouse the custom scrollbar, if the mouse pointer remains inside it there are no problems. But when the pointer goes outside the scrollbar, some page elements are selected. In more detail: if pointer goes left, the mouse cursor changes from the hand icon to the ‘I’-shaped text icon, and when it touches the border of the theme sidebar, elements on and above the vertical position of the pointer get selected. The scrollbar itself is selected too.
If pointer goes right, all elements are selected.Some additional notes:
- The problem persists on 2.0.9
- No Js errors in console
Hope this helped,
GiulioForum: Plugins
In reply to: [mg Quotes] how to display quote categories ?Hello,
I don’t have the time now to provide a widget of this type but you can use some ready-to-use plugins, for example:
1. https://www.ads-software.com/plugins/list-custom-taxonomy-widget/
2. https://www.ads-software.com/plugins/custom-taxonomies-menu-widget/If you use the first one, select the
'mg_qt_category'
item for displaying quote categories and'mg_qt_author'
for quote authors.Hope this helped,
GiulioForum: Plugins
In reply to: [mg Quotes] Quotes Permalinks show Page not found errorThis is fixed with 1.1.3, so I close this ticket.
Forum: Plugins
In reply to: [mg Quotes] Quotes Permalinks show Page not found errorHello, thanks for reporting this issue.
Yes, you’re right, it’s my fault. This will be fixed in next minor release.
Meanwhile, just go to Admin Menu > Settings > Permalinks and click the ‘Save Changes’ button.
Regards,
GiulioHi, yes it’s a great day;)
I’ve updated to 2.05 but this issue is still there. I’ve done some testing and found out when this behaviour comes out:
1. Load the widgets.php page
2. Create a custom sidebar(in my case I’ve already two custom sidebars, so this is a third one)
3. Click on a widget on the left column to add it to the sidebar…and menu slides down and up.Hope this helps.
Yes, just tested…thanks again!
Forum: Plugins
In reply to: [Custom Sidebars - Dynamic Sidebar Classic Widget Area Manager] PHP WarningsYes, they are gone…thanks for the quick fix:)
Yes, I run on Windows.
I updated to 2.0.3 and now it is all ok.
Many thanks!
No, it’s all ok. It was a false warning.
Forum: Hacks
In reply to: jQuery Lifestream PluginHello,
I am developing mg WP jQuery Lifestream for an easy inclusion and management of jQuery Lifestream on a WordPress installation.
The plugin is not yet on www.ads-software.com because it is in a beta stage.
Meanwhile the code is available for download from Github. All informations on the project page.Feel free to submit any feedback!
Hi All,
The problem is that the code to ‘install’ the visit counters custom fields is not called because the ‘publish_post’ and ‘publish_page’ hooks are not used anymore.
This is how I patched the plugin(wp-postratings.php file):
/* This is the original code add_action('publish_post', 'add_ratings_fields'); add_action('publish_page', 'add_ratings_fields'); function add_ratings_fields($post_ID) { global $wpdb; if(!wp_is_post_revision($post_ID)) { add_post_meta($post_ID, 'ratings_users', 0, true); add_post_meta($post_ID, 'ratings_score', 0, true); add_post_meta($post_ID, 'ratings_average', 0, true); } } */ // This is the patch add_action('new_to_publish', 'add_ratings_fields'); add_action('draft_to_publish', 'add_ratings_fields'); add_action('pending_to_publish', 'add_ratings_fields'); function add_ratings_fields($post) { $post_ID = $post->ID; add_post_meta($post_ID, 'ratings_users', 0, true); add_post_meta($post_ID, 'ratings_score', 0, true); add_post_meta($post_ID, 'ratings_average', 0, true); }
Note that I removed the wp_is_post_revision() test. I got no problems but I am not sure if it is correct. To be sure leave it.
Another minor issue in my testings were that when the post content was empty(but the title wasn’t) the post status transition hooks didn’t fire. I don’t know why, need investigation…Anyway, it should be an infrequent use case.
To install the counters in pre-existing posts it is possible to run something like this(use at your own risk and adapt to your case):
function install_ratings_counters() { $q = new WP_Query(array( //'post_type' => 'XXX', 'posts_per_page' => -1 )); while ($q->have_posts()) : $q->the_post(); $post_ID = get_the_ID(); add_post_meta($post_ID, 'ratings_users', 0, true); add_post_meta($post_ID, 'ratings_score', 0, true); add_post_meta($post_ID, 'ratings_average', 0, true); endwhile; } install_ratings_counters();
Forum: Plugins
In reply to: [qTranslate] [Plugin: qTranslate] Still Errors in debug modeYes, I agree. Please, fix those undefined index notices. They are really annoying when inspecting the log file. Thanks in advance.
Forum: Hacks
In reply to: Widgets creation and destruction hooksFirst of all, I am subclassing the WP_Widget class.
The widget must support multiple instances.
Each instance needs to store(for caching purposes) some data in a subdirectory like this: <plugindir>/cache/instance-<n>.
So, I need to create and remove this directories and I was thinking that the most natural event would be when the user drag a new widget instance on the sidebar and when he clicks the delete link.
I understand that i could create the subfolder in the overriden WP_Widget::update() method but it is not elegant (nor efficient).
And what about the directory removal? How to catch this event?I hope I’ve been clear, sorry for my english.
Forum: Themes and Templates
In reply to: Parse error: syntax error with latest version 1.2.3@atkima: Could you tell us what the cause of the problem was? Thanks in advance.
I tested the P2 activation on a WP 3.1/PHP 5.3.3: no problems.