Forum Replies Created

Viewing 15 replies - 1 through 15 (of 20 total)
  • Thread Starter alpinevp

    (@alpinevp)

    Is Foyer compatibel met Elementor? Ik probeer dit uit op een nieuwe testsite en alles wat ik heb ge?nstalleerd is alleen Foyer en Elementor Pro en EPro is ingeschakeld om Foyer te herkennen. Wanneer ik met Elementor een nieuwe dia in Foyer probeer te maken, krijg ik deze foutmelding

    “Sorry, het inhoudsgebied is niet gevonden op uw pagina. U moet de functie inhoud in de huidige sjabloon aanroepen om Elementor op deze pagina te laten werken. ”

    Dus moet ik <? Php the_content (); ?> ergens in uw code of mis ik iets?

    Dank je

    Thread Starter alpinevp

    (@alpinevp)

    Who the fuck are you Julio Porter, are you part of SecuPress? If not, then piss off! Why don’t you name all of the fucking 2FA plugins. The point is that this piece of shit SecuPress is a total fail!

    Thread Starter alpinevp

    (@alpinevp)

    I just commented out that particular line in the php. I realize I will need to do that again after you update the plugin but maybe by then you will have solved the issue with it always showing up.

    Thread Starter alpinevp

    (@alpinevp)

    Nope, doesn’t work.

    Thread Starter alpinevp

    (@alpinevp)

    Thread Starter alpinevp

    (@alpinevp)

    FYI – Here is the exact way to do it, html and css included and it really is column based and responsive.

    https://www.wpsnippet.com/creating-responsive-two-column-form-using-contact-form-7/

    Thread Starter alpinevp

    (@alpinevp)

    Also, here’s the code example they share that is claimed to be 2 columns and responsive and what it looks like on my site, this example is supposed to be 3 columns.

    <fieldset>
        <legend>column</legend>
        <ol class="column">
            <ol>
                <li> <strong>Ready Class column</strong> </li>
                <li> Item1 [text item1a] </li>
                <li> Dropdown Menu [select cf7s-menu-01 multiple include_blank "Item1" "Item2" "Item3"] </li>
                <li> Item2 [text item2a] </li>
            </ol>
            <ol>
                <li> <strong>Ready Class column</strong> </li>
                <li> Item1 [text item1b] </li>
                <li> Item2 [text item2b] </li>
                <li> Item3 [text item3b] </li>
                <li> Dropdown Menu [select cf7s-menu-01 multiple include_blank "Item1" "Item2" "Item3"] </li>
            </ol>
        </ol>
        <ol class="column box">
            <ol>
                <li> <strong>Ready Class column</strong> </li>
                <li> Item1 [text item1c] </li>
                <li> Item2 [text item2c] </li>
                <li> Item3 [text item3c] </li>
                <li> Dropdown Menu [select cf7s-menu-01 multiple include_blank "Item1" "Item2" "Item3"] </li>
            </ol>
            <ol>
                <li> <strong>Ready Class column</strong> </li>
                <li> Item1 [text item1d] </li>
                <li> Dropdown Menu [select cf7s-menu-01 multiple include_blank "Item1" "Item2" "Item3"] </li>
                <li> Item2 [text item2d] </li>
            </ol>
            <ol>
                <li> <strong>Ready Class column</strong> </li>
                <li> Item1 [text item1e] </li>
                <li> Item2 [text item2e] </li>
                <li> Item3 [text item3e] </li>
                <li> Dropdown Menu [select cf7s-menu-01 multiple include_blank "Item1" "Item2" "Item3"] </li>
            </ol>
        </ol>
    </fieldset>
    Thread Starter alpinevp

    (@alpinevp)

    I’ve tried the code examples from other similar posts that uses ordered lists in a column and while that works fine for a desktop, it is ugly as all get out for mobile as CF7 appears to only be responsive if it is in a single line one column display.

    I fail to understand why developers today still ignore basic responsive mobile development for their products for REAL WORLD USE.

    Thanks Dave

    Thread Starter alpinevp

    (@alpinevp)

    Thread Starter alpinevp

    (@alpinevp)

    I guess my question would be; is there a way to toggle on or off the related posts altogether? Frankly, I’d just as soon not have them show on job board pages at all, it doesn’t make any sense as none of the news posts have anything to do with the job board posts.

    Thread Starter alpinevp

    (@alpinevp)

    Thread Starter alpinevp

    (@alpinevp)

    Thanks dwinden!

    Thread Starter alpinevp

    (@alpinevp)

    Here’s the code

    <?php
    /**
    * @package WordPress
    * @subpackage U-Design
    */
    /**
    * Template Name: Contact page
    */
    if ( !defined( ‘ABSPATH’ ) ) exit; // Exit if accessed directly

    if ( $udesign_options[‘recaptcha_enabled’] == ‘yes’ ) {

    if ( !function_exists(‘_recaptcha_qsencode’) ) {
    require_once(‘scripts/recaptcha/recaptchalib.php’);
    }

    $publickey = $udesign_options[‘recaptcha_publickey’]; // you got this from the signup page
    $privatekey = $udesign_options[‘recaptcha_privatekey’]; // you got this from the signup page
    $resp = null;
    $error = null;
    if( isset($_POST[‘submit’]) ) {
    $resp = recaptcha_check_answer ($privatekey,
    $_SERVER[“REMOTE_ADDR”],
    $_POST[“recaptcha_challenge_field”],
    $_POST[“recaptcha_response_field”]
    );
    if ( !$resp->is_valid ) {
    $rCaptcha_error = $resp->error;
    }
    }
    }

    get_header();

    $content_position = ( $udesign_options[‘contact_sidebar’] == ‘left’ ) ? ‘grid_16 push_8’ : ‘grid_16’;
    if ( $udesign_options[‘remove_contact_sidebar’] == ‘yes’ ) $content_position = ‘grid_24’;
    $NA_phone_format = $udesign_options[‘NA_phone_format’] ? ‘_NA_format’ : ”;

    //If the form is submitted
    if( isset($_POST[‘submit’]) ) {
    // Get form vars
    $contact_name = strip_tags(trim(stripslashes($_POST[‘contact_name’])));
    $contact_email = trim($_POST[‘contact_email’]);
    $contact_phone = trim($_POST[“contact_phone{$NA_phone_format}”]);
    $contact_ext = trim($_POST[“contact_ext{$NA_phone_format}”]);
    $contact_message = strip_tags(trim(stripslashes($_POST[‘contact_message’])));

    // Error checking if JS is turned off
    if( $contact_name == ” ) { //Check to make sure that the name field is not empty
    $nameError = __(‘Please enter a name’, ‘udesign’);
    } else if( strlen($contact_name) < 2 ) {
    $nameError = __(‘Your name must consist of at least 2 characters’, ‘udesign’);
    }

    if( $contact_email == ” ) {
    $emailError = __(‘Please enter a valid email address’, ‘udesign’);
    } else if( !is_email( $contact_email ) ) {
    $emailError = __(‘Please enter a valid email address’, ‘udesign’);
    }

    if( $NA_phone_format ) {
    if( !isPhoneNumberValid( $contact_phone ) || ( $contact_phone == ” && $contact_ext != ” ) ) {
    $phoneError = __(‘phone number’, ‘udesign’);
    }
    if( !eregi(“^[0-9]{0,5}$”, $contact_ext) ) { // check if the extension consists of 1 to 5 digits, or empty
    $extError = __(‘extension’, ‘udesign’);
    }
    }
    if( isset($phoneError) && isset($extError) ) {
    $phone_extError = sprintf(__(‘Please enter a valid %1$s and %2$s’, ‘udesign’), $phoneError, $extError );
    } else if( isset($phoneError) ) {
    $phone_extError = sprintf(__(‘Please enter a valid %s’, ‘udesign’), $phoneError );
    } else if( isset($extError) ) {
    $phone_extError = sprintf(__(‘Please enter a valid %s’, ‘udesign’), $extError );
    }

    if( $contact_message == ” ) {
    $messageError = __(‘Please enter your message’, ‘udesign’);
    }

    if( !isset($nameError) && !isset($emailError) && !isset($messageError) && !isset($rCaptcha_error) ) {
    $ext = ( $contact_ext != ” ) ? __(‘ext.’, ‘udesign’).$contact_ext : ”;
    $phone = ( $contact_phone != ” ) ? __(‘Phone: ‘, ‘udesign’).$contact_phone.’ ‘.$ext.”\r\n” : ”;
    // Send email
    $email_address_to = $udesign_options[’email_receipients’];
    $subject = sprintf(__(‘Contact Form submission from %s’, ‘udesign’), wp_specialchars_decode( get_option(‘blogname’) ) );
    $message_contents = __(“Sender’s name: “, ‘udesign’) . $contact_name . “\r\n” .
    __(‘E-mail: ‘, ‘udesign’) . $contact_email . “\r\n” .
    $phone .”\r\n” .
    __(‘Message: ‘, ‘udesign’) . $contact_message . ” \r\n”;

    $header = “From: $contact_name <“.$contact_email.”>\r\n”;
    $header .= “Reply-To: $contact_email\r\n”;
    $header .= “Return-Path: $contact_email\r\n”;
    $emailSent = ( @wp_mail( $email_address_to, $subject, $message_contents, $header ) ) ? true : false;

    $contact_name_thx = $contact_name;

    // Clear the form
    $contact_name = $contact_email = $contact_phone = $contact_ext = $contact_message = ”;
    }
    }

    //Contact Information Fields from the Admin Options
    $contact_field_array = array(
    array(
    ‘desc’ => $udesign_options[‘contact_field_name1’],
    ‘value’ => $udesign_options[‘contact_field_value1’] ),
    array(
    ‘desc’ => $udesign_options[‘contact_field_name2’],
    ‘value’ => $udesign_options[‘contact_field_value2’] ),
    array(
    ‘desc’ => $udesign_options[‘contact_field_name3’],
    ‘value’ => $udesign_options[‘contact_field_value3’] ),
    array(
    ‘desc’ => $udesign_options[‘contact_field_name4’],
    ‘value’ => $udesign_options[‘contact_field_value4’] ),
    array(
    ‘desc’ => $udesign_options[‘contact_field_name5’],
    ‘value’ => $udesign_options[‘contact_field_value5’] ),
    array(
    ‘desc’ => $udesign_options[‘contact_field_name6’],
    ‘value’ => $udesign_options[‘contact_field_value6’] ),
    array(
    ‘desc’ => $udesign_options[‘contact_field_name7’],
    ‘value’ => $udesign_options[‘contact_field_value7’]
    )
    );

    ?>

    <div id=”content-container” class=”container_24″>
    <div id=”main-content” class=”<?php echo $content_position; ?>”>
    <div class=”main-content-padding”>
    <?php udesign_main_content_top( is_front_page() ); ?>
    <?php if (have_posts()) : while (have_posts()) : the_post();
    if($post->post_content != “”) : ?>
    <div <?php post_class(); ?> id=”post-<?php the_ID(); ?>”>
    <?php udesign_entry_before(); ?>
    <div class=”entry”>
    <?php udesign_entry_top(); ?>
    <?php the_content(__(‘<p class=”serif”>Read the rest of this page »</p>’, ‘udesign’)); ?>
    <?php udesign_entry_bottom(); ?>
    </div>
    <?php udesign_entry_after(); ?>
    </div>
    <?php endif;
    endwhile; endif; ?>

    <div class=”clear”></div>

    <?php // Contact Fields…
    if ( $udesign_options[‘show_contact_fields’] ) : ?>
    <div id=”contactInfo”>
    <?php foreach( $contact_field_array as $field_array ) :
    if( $field_array[‘value’] != ” ) : ?>
    <div class=”grid_4 contactFieldDesc”><?php echo $field_array[‘desc’]; ?></div>
    <div class=”grid_11 contactFieldValue”><?php echo $field_array[‘value’]; ?></div>
    <div class=”clear”></div>
    <?php endif;
    endforeach; ?>
    </div>
    <div class=”clear”></div>
    <?php endif; ?>

    <div id=”contact-wrapper”>
    <?php // Message Area. It shows a message upon successful email submission
    if( isset( $emailSent ) && $emailSent == true ) : ?>
    <div class=”success”>
    <div class=”msg-box-icon”>
    <?php esc_html_e(‘Email Successfully Sent!’, ‘udesign’); ?>
    <?php printf(__(‘Thank you %s for using our contact form! Your email was successfully sent and we will be in touch with you shortly.’, ‘udesign’), $contact_name_thx) ?>
    </div>
    </div>
    <?php elseif ( isset( $emailSent ) && $emailSent == false ) : ?>
    <div class=”erroneous”>
    <div class=”msg-box-icon”>
    <?php esc_html_e(‘Failed to connect to mailserver!’, ‘udesign’); ?>
    </div>
    </div>
    <?php endif; ?>

    <form id=”contactForm” class=”cmxform” method=”post” action=”<?php echo the_permalink(); ?>#contact-wrapper”>
    <?php esc_html_e(‘Please use the form below to send us an email:’, ‘udesign’); ?>
    <div id=”contact-name-fld-1″>
    <label for=”contact_name”><?php esc_html_e(‘Name’, ‘udesign’); ?> </label><?php esc_html_e(‘(required, at least 2 characters)’, ‘udesign’); ?>
    <input id=”contact_name” name=”contact_name” size=”30″ class=”required<?php if(isset($nameError)) echo ‘ error’; ?>” minlength=”2″ value=”<?php echo esc_attr($contact_name); ?>” />
    <input type=”hidden” id=”rules_contact_message” value=”<?php esc_html_e( ‘required’, ‘udesign’ ); ?>” />
    <input type=”hidden” id=”contact_name_required” value=”<?php esc_html_e( ‘Please enter a name’, ‘udesign’ ); ?>” />
    <input type=”hidden” id=”contact_name_min_length” value=”<?php esc_html_e( ‘Your name must consist of at least 2 characters’, ‘udesign’ ); ?>” />
    <?php if(isset($nameError)) echo ‘<label class=”error” for=”contact_name” generated=”true”>’.$nameError.'</label>’; ?>
    </div>
    <div id=”contact-email-address-fld-1″>
    <label for=”contact_email”><?php esc_html_e(‘E-Mail’, ‘udesign’); ?> </label><?php esc_html_e(‘(required)’, ‘udesign’); ?>
    <input id=”contact_email” name=”contact_email” size=”30″ class=”required email<?php if(isset($emailError)) echo ‘ error’; ?>” value=”<?php echo esc_attr($contact_email); ?>” />
    <input type=”hidden” id=”messages_contact_email” value=”<?php esc_html_e( ‘Please enter a valid email address’, ‘udesign’ ); ?>” />
    <?php if(isset($emailError)) echo ‘<label class=”error” for=”contact_email” generated=”true”>’.$emailError.'</label>’; ?>
    </div>
    <div id=”contact-phone-ext-fld-1″>
    <label for=”contact_phone”><?php esc_html_e(‘Phone’, ‘udesign’); ?> </label><?php esc_html_e(‘(optional)’, ‘udesign’); ?>
    <input id=”contact_phone<?php echo $NA_phone_format; ?>” name=”contact_phone<?php echo $NA_phone_format; ?>” size=”14″ class=”phone<?php if(isset($phoneError)) echo ‘ error’; ?>” value=”<?php echo esc_attr($contact_phone); ?>” maxlength=”14″ />
    <label for=”contact_ext”><?php esc_html_e(‘ext.’, ‘udesign’); ?> </label>
    <input id=”contact_ext<?php echo $NA_phone_format; ?>” name=”contact_ext<?php echo $NA_phone_format; ?>” size=”5″ class=”ext<?php if(isset($extError)) echo ‘ error’; ?>” value=”<?php echo esc_attr($contact_ext); ?>” maxlength=”5″ />
    <?php if(isset($phone_extError)) echo ‘<label class=”error” for=”contact_phone” generated=”true”>’.$phone_extError.'</label>’; ?>
    </div>
    <div id=”contact-message-box-fld-1″>
    <label for=”contact_message”><?php esc_html_e(‘Your comment’, ‘udesign’); ?> </label><?php esc_html_e(‘(required)’, ‘udesign’); ?>
    <textarea id=”contact_message” name=”contact_message” cols=”70″ rows=”7″ class=”required<?php if(isset($messageError)) echo ‘ error’; ?>”><?php echo esc_attr($contact_message); ?></textarea>
    <input type=”hidden” id=”messages_contact_message” value=”<?php esc_html_e( ‘
    Please enter your message’, ‘udesign’ ); ?>” />
    <?php if(isset($messageError)) echo ‘
    <label class=”error” for=”contact_message” generated=”true”>’.$messageError.'</label>’; ?>
    </div>

    <?php if ( $udesign_options[‘recaptcha_enabled’] == ‘yes’ ) : ?>
    <script type=”text/javascript”>var RecaptchaOptions = {theme : ‘<?php echo $udesign_options[‘recaptcha_theme’]; ?>’, lang : ‘<?php echo $udesign_options[‘recaptcha_lang’]; ?>’};</script>
    <div class=”reCAPTCHA-wrapper”>
    <?php if ( $rCaptcha_error ) {
    printf( __(‘%1$sThe reCAPTCHA was not entered correctly. Please try it again%2$s’, ‘udesign’), ‘<div class=”error”>’, ‘</div>’ );
    } ?>
    <?php echo recaptcha_get_html( $publickey, $rCaptcha_error ); ?>
    </div>
    <?php endif; ?>

    <div>
    <input name=”submit” class=”submit” type=”submit” value=”<?php esc_attr_e(‘Submit’, ‘udesign’); ?>”/>
    </div>
    </form>

    </div><!– end contact-wrapper –>
    <?php udesign_main_content_bottom(); ?>
    </div><!– end main-content-padding –>
    </div><!– end main-content –>

    <?php if( ( !$udesign_options[‘remove_contact_sidebar’] == ‘yes’ ) && sidebar_exist(‘ContactSidebar’) ) { get_sidebar(‘ContactSidebar’); } ?>

    </div><!– end content-container –>

    <div class=”clear”></div>

    <?php get_footer(); ?>

    Thread Starter alpinevp

    (@alpinevp)

    page-Contact.php

    Thread Starter alpinevp

    (@alpinevp)

    I’m somewhat hesitant about loading another theme as this site is now live and I really don’t want to muck up everything if changing themes messes up where everything is placed.

Viewing 15 replies - 1 through 15 (of 20 total)