Title: mleuffer's Replies | WordPress.org

---

# mleuffer

  [  ](https://wordpress.org/support/users/mleuffer/)

 *   [Profile](https://wordpress.org/support/users/mleuffer/)
 *   [Topics Started](https://wordpress.org/support/users/mleuffer/topics/)
 *   [Replies Created](https://wordpress.org/support/users/mleuffer/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/mleuffer/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/mleuffer/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/mleuffer/engagements/)
 *   [Favorites](https://wordpress.org/support/users/mleuffer/favorites/)

 Search replies:

## Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Auto Menu From Pages] Plugin could not be activated because it triggered a fatal error.](https://wordpress.org/support/topic/plugin-could-not-be-activated-because-it-triggered-a-fatal-error-251/)
 *  [mleuffer](https://wordpress.org/support/users/mleuffer/)
 * (@mleuffer)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/plugin-could-not-be-activated-because-it-triggered-a-fatal-error-251/#post-6235813)
 * Same error for me but no other similar plugin activated.
 * I have polylang (I filter my menu by lang manually because I use Timber).
    I 
   tried several ones though a few weeks ago, yours included if I remind it well.
 * I can start the plugin if I comment out the call in includes/class-auto-menu-
   from-pages-activator.php (line 38). I tried to deactivate the plugin after, uncomment
   and reactivate it hoping it would have cleaned something, but it still gives 
   the same error. Maybe there’s a clean up to do in the database?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Show quantity button when only 1 piece left](https://wordpress.org/support/topic/show-quantity-button-when-only-1-piece-left/)
 *  [mleuffer](https://wordpress.org/support/users/mleuffer/)
 * (@mleuffer)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/show-quantity-button-when-only-1-piece-left/#post-3660909)
 * You’re welcome!
    You can add [resolved] to the subject 😉
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Show quantity button when only 1 piece left](https://wordpress.org/support/topic/show-quantity-button-when-only-1-piece-left/)
 *  [mleuffer](https://wordpress.org/support/users/mleuffer/)
 * (@mleuffer)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/show-quantity-button-when-only-1-piece-left/#post-3660684)
 * You need to use some css.
    If you don’t want your button to move with the flow
   you can position the container (grey div) with `position:relative;` (the button
   will have its position for “starting point”) and the button with `position:absolute;
   top:50px; right:60px;` for example… you can use ems instead of px if you prefer.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Email Marketing Plugin - WP Email Capture] Error message not displayed on email-form](https://wordpress.org/support/topic/error-message-not-displayed-on-email-form/)
 *  [mleuffer](https://wordpress.org/support/users/mleuffer/)
 * (@mleuffer)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/error-message-not-displayed-on-email-form/#post-3156888)
 * I made a solution.
    Tell me if you think it’s clean.
 * I add a hidden input with the id in the form
    `<input type="hidden" name="wp_page_id"
   value="<?php the_ID(); ?>" />` (display.php line 27)
 * And use the permalink in place of $_SERVER[‘HTTP_REFERER’];
    (process.php line
   52)
 *     ```
       if(isset($_REQUEST['wp_page_id'])) {
       	$starturl = get_permalink( $_REQUEST['wp_page_id'] );
       }
       ```
   
 * It’s working fine on pages. It didn’t on my articles pages but it was because
   of a loop context in my template file not scoped on page so you just have to 
   save the $post context before the loop showing articles and restore it then.
 *     ```
       <?php $tmp_post = $post; // save page context
       // your loop on articles
       $post = $tmp_post; // restore page context ?>
       // your sidebar call
       ```
   
 * Hope it can help some over people in the same case.
    Cheers, Mik
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Email Marketing Plugin - WP Email Capture] Error message not displayed on email-form](https://wordpress.org/support/topic/error-message-not-displayed-on-email-form/)
 *  [mleuffer](https://wordpress.org/support/users/mleuffer/)
 * (@mleuffer)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/error-message-not-displayed-on-email-form/#post-3156887)
 * Ok it seems the HTTP_REFERER don’t show at all in my firefox 19.0 (OSX 10.6.8).
   It works fine in Chrome. It had nothing to do with the /folder/subfolder/ thing
   in the url, nor MAMP as I thought… (I tried on a server too).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Email Marketing Plugin - WP Email Capture] Error message not displayed on email-form](https://wordpress.org/support/topic/error-message-not-displayed-on-email-form/)
 *  [mleuffer](https://wordpress.org/support/users/mleuffer/)
 * (@mleuffer)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/error-message-not-displayed-on-email-form/#post-3156886)
 * Hi Rhys,
    I have the same issue on a local Mamp install with this result: [http://localhost/folder/subfolder/?wp_email_capture_error=Please%20Provide%20A%20Name](http://localhost/folder/subfolder/?wp_email_capture_error=Please%20Provide%20A%20Name)
   The two folders are real, not url rewrited. The form is placed on the page news(
   first level page) which has a url like this: [http://localhost/folder/subfolder/news/](http://localhost/folder/subfolder/news/)
   so it should be like this: [http://localhost/folder/subfolder/news/?wp_email_capture_error=Please%20Provide%20A%20Name](http://localhost/folder/subfolder/news/?wp_email_capture_error=Please%20Provide%20A%20Name)
 * Thanks for the work on this plugin though, it’s nice and clean 🙂
    Cheers, Mik
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [TinyMCE Format Options, remove h1, h2, pre](https://wordpress.org/support/topic/tinymce-formatting-options-remove-h1-h1-pre/)
 *  [mleuffer](https://wordpress.org/support/users/mleuffer/)
 * (@mleuffer)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/tinymce-formatting-options-remove-h1-h1-pre/#post-1125088)
 * Hi,
    I found the solution. I was looking for the same clean-client-ready solution
   so I arrived here with my question and had to search a little more by myself…
   I managed to have just the p, h3 and h4 in my menu. so. kind of explaining the
   way I found it: tinyMCE usually store settings in theme/advanced/editor_template.
   js inside its folder (wp-includes/js/tinymce/) but after editing the correct 
   line, nothing changed… so I looked in its root folder (same as above) and found
   the wp-tinymce.php with this code :
 *     ```
       if ( isset($_GET['c']) && 1 == $_GET['c'] && false !== strpos( strtolower($_SERVER['HTTP_ACCEPT_ENCODING']), 'gzip') && ( $file = get_file($basepath . '/wp-tinymce.js.gz') ) ) {
       	header('Content-Encoding: gzip');
       	echo $file;
       } else {
       	echo get_file($basepath . '/wp-tinymce.js');
       }
       exit;
       ```
   
 * It means it will look inside the .gz file if your server support unzipping or
   in the /wp-tinymce.js file if not.
    So you can replace the code above by this:
 *     ```
       echo get_file($basepath . '/wp-tinymce.js');
       exit;
       ```
   
 * and edit the wp-tinymce.js like this :
    – search for “theme_advanced_blockformats”
   in the file. – the first occurrence will be : `... theme_advanced_blockformats:"
   p,address,pre,h1,h2,h3,h4,h5,h6", ...` – remove the unwanted tags : `... theme_advanced_blockformats:"
   p,h3,h4", ...` IT WORKS ! Now you could also let the .php file unmodified and
   after saving the wp-tinymce.js, use a gzip utility to gzip it and you’d replace
   the wp-tinymce.js.gz this way. That’s what I did. Enjoy WordPress 😉 Mik*

Viewing 7 replies - 1 through 7 (of 7 total)