Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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?

    You’re welcome!
    You can add [resolved] to the subject 😉

    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.

    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

    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).

    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
    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/
    so it should be like this:
    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

    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)