pilote
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Maker] Script conflict with Mailpoet newsletterThank’s dmitry
Forum: Plugins
In reply to: [Sidebar Widgets by CodeLights] is it possible to chain popup?Well I make some progress in this question..
not 100% perfect but now I can put a button inside a popup to open another popuphow it work (example for 2 popup):
1: create the 2 popup in the same page
– popup-1 as normal
– popup-2 inside a div with an unique id to trigger later
– in css this div is hidden ( #my-id{display:none} )2: the button for popup-2 inside popup-1
<button type="button" name="my-id" class="new-trigger">clickme</button>3: and the .js for my button
$('.new-trigger').on('click', function(e){ $btn_name = $(this).prop("name"); $el = $("#" + $btn_name + " .cl-popup-trigger"); if ($($el).length ) {$el.trigger( "click" );} return false; });now a click in .new-trigger open my second popup on top of the first one ; it’s cool but for a real “popup chain”, I would like to close popup-1 before opening popup-2 (and close 2 before opening 3 and so on) but couldn’t find how to do that.
Forum: Plugins
In reply to: [WP Favorite Posts] [Plugin: WP Favorite Posts] Sort favorite postnatcasesort() vs ksort() ?? need some test 🙂
Forum: Plugins
In reply to: [WP Favorite Posts] [Plugin: WP Favorite Posts] Sort favorite post// use $favorite_post_ids to populate new array(ID => title)
if ($favorite_post_ids):
foreach ($favorite_post_ids as $post_id) {
$p = get_post($post_id);
$favorite_post_by_title[$post_id] = $p->post_title; // new array
}
// sort by title and maintain index association [ natcasesort() ]
natcasesort($favorite_post_by_title);// and then loop as usual using index as $post_id
foreach ($favorite_post_by_title as $post_id => $title) {
$p = get_post($post_id);
// etc.
}
note: you have get_post() twice, not good for performance, but it workForum: Plugins
In reply to: [WP Favorite Posts] [Plugin: WP Favorite Posts] Sort favorite postfor a sort by date you can sort by IDs
sort()
original: plugins/wp-favorite-posts/wpfp-page-template.php
——————-
line16: if ($favorite_post_ids):
line17: foreach ($favorite_post_ids as $post_id) {
line:18: $p = get_post($post_id);
etc.
——————-
the same with “sort()”:
——————-
line16: if ($favorite_post_ids):
line17: sort($favorite_post_ids);
line18: foreach ($favorite_post_ids as $post_id) {
line:19: $p = get_post($post_id);
etc.
——————-Forum: Fixing WordPress
In reply to: WordPress editor not detecting HTML FormattingHere the way to solve this problem
found in josephscott.org
To be clear, the best way to fix this is to upgrade to PHP 5.2.9+ and libxml2 2.7.3+. But if you are stuck in a hosting situation where that’s not possible then the LibXML2 Fixed plugin will fix XML-RPC requests so that brackets don’t get stripped.
Forum: Fixing WordPress
In reply to: WordPress editor not detecting HTML Formattinghi nirmaltv
I do not know if you found a solution, but I have a similar problemI post from Posterous and the post in wp appear without “<” and “>”
like this:
———
Good Title
div class=’posterous_autopost’This is my post etc. /div
——–if someone has an idea to solve this problem…