Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • I can’t get this to work. I added the pagelink.php file to the Contact Form 7 modules directory, added the [pagelink name] to the contact form, and added [name] to the Message Body.

    After I submit the form and check my email, it displays the [name] in the email.

    Also, when I view the source for the hidden input field I get an empty value. Am I missing something?

    jabounet,
    You said to put [pagelink yourcode] in the form, and [yourcode] in the mail, but when looking at the pagelink.php file it says

    ** [pagelink name] -> permalink of that post/page is available via [name]

    Which is correct? Do I need to change something in pagelink.php?

    I found the answer. This works GREAT!

    https://www.mkbergman.com/?p=275

    You just need to reformat the text when you copy and paste it into a text editor. The quotations marks are not HTML formatted.

    Here is an example of the WYSIWYG that I use.

    <?php
    /*
    Plugin Name: Advanced WYSIWYG Editor
    Plugin URI: https://www.labnotes.org/
    Description: Adds more styling options to the WYSIWYG post editor, updated for multi-line buttons.
    Version: 0.3
    Author: Assaf Arkin
    Author URI: https://labnotes.org/
    License: Creative Commons Attribution-ShareAlike
    Tags: wordpress tinymce
    */
    
    if (isset($wp_version)) {
    add_filter("mce_buttons", "extended_editor_mce_buttons", 0);
    add_filter("mce_buttons_2", "extended_editor_mce_buttons_2", 0);
    }
    
    function extended_editor_mce_buttons($buttons) {
    return array(
    "undo", "redo", "separator",
    "bold", "italic", "underline", "strikethrough", "separator",
    "bullist", "separator",
    "charmap", "separator", "link", "unlink", "anchor", "separator",
    "code", "formatselect", "separator", "separator", "search", "replace", "separator", "wphelp");
    }
    
    function extended_editor_mce_buttons_2($buttons) {
    // the second toolbar line
    return array();
    }
    
    ?>

    I am interested in this too.

    Is there a function that will do this?

    I don’t want to have to edit the core tinyMCE files every time WordPress does an update.

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