Forum Replies Created

Viewing 15 replies - 1 through 15 (of 22 total)
  • Captcha/recpatcha inconsistency problems were why I will not be using CF7 with future projects. it takes much more time but rolling your own ajaxy contact form is a far better, more versatile, solution.

    Thread Starter koniahin

    (@koniahin)

    Thank you, I looked at the api hooks page, then through aioseop_class.php. Unfortunately I don’t enough understanding of wordpress framework and classes to handle this.

    add_action( ‘aioseop_title’, ‘change_wordpress_seo_title’ );
    function change_wordpress_seo_title( $title ){
    $title = ‘modified title’;
    return $title;
    }

    Where would I add these and what do the other lines in the class file mean? I looked through the file. Line 886 has something with generate_descriptions and 1801: if ( ! empty( $aioseop_options[‘aiosp_cap_titles’] ).

    Version: 2.3.9.1

    Thread Starter koniahin

    (@koniahin)

    Not at this time; it’s under development and is restricted for that reason. I could send you the IP address but don’t want to publish that here.

    If you want I can send you a snapshot of the page source, the contact form region. However since I posted the original message I discovered a new twist.

    This site will have 2 forms, one for contact and one for testimonials. With both forms when I go into administration the captcha function does not display as an option. However, with the contact form when I copied in the captcha code like

    [captchac captcha-883] [captchar captcha-883]

    it displays and works on the frontend. So I created a third form using the form defaults adding only the captcha code. It also failed to display. Only the original form works.

    Thread Starter koniahin

    (@koniahin)

    It looks like when I entered the CF7 module text from the page view source, the forum editor stripped out part of the text including that which referenced the PNG image. Let’s try without the surrounding html:

    img class=”wpcf7-form-control wpcf7-captchac wpcf7-captcha-captcha-1″ width=”72″ height=”24″ alt=”captcha” src=”https://www.mysite.com/wp-content/uploads/wpcf7_captcha/3463072360.png” /

    Thread Starter koniahin

    (@koniahin)

    Is anyone out there who supports this product? With PHP 7 now out more and more hosting services will be upgrading.

    Thread Starter koniahin

    (@koniahin)

    Well if that don’t beat all…

    My regular browser is Firefox. I opened it up in Chrome and the tabs are performing like tabs as opposed to in page links. It works in chrome. In Firefox clicking on any of the tabs does nothing more than to scroll down the page.

    In Chrome it is revealing the content/functions associated with the various tabs. I’ve never seen anything quite like this. All my other plugins that employ tabs work correctly. Disabling all other plugins made no difference, just to note.

    Thread Starter koniahin

    (@koniahin)

    https://www.dottedi.biz/images/faq/my-bootstrap-menu-1.1.0.jpg

    WordPress 4.5.3 and Version 1.1.0 of the menu. The stars don’t seem to be aligned as I am not seeing the same choices. Also to note, less important, the About tab takes you to the bottom of the page, but provides no About info.

    Thread Starter koniahin

    (@koniahin)

    N’ere mind, wasn’t paying attention. There was a header div which was forcing display of the problem children. I set it to display:none just to see and it worked.

    The nav code I am using is:

    <nav>
    <div class=”container”>
    <?php
    wp_nav_menu( array(
    ‘theme_location’ => ‘primary’,
    ‘depth’ => 2,
    ‘container’ => ‘div’,
    ‘fallback_cb’ => ‘wp_bootstrap_navwalker::fallback’,
    ‘walker’ => new wp_bootstrap_navwalker())
    );
    ?>
    </div>
    </nav>

    Thread Starter koniahin

    (@koniahin)

    Well that makes a big difference – it works. I am using the following if clause:

    if (!is_singular(‘post’) && ! is_page (‘3321’) )

    This limits the captcha to display on a blog ‘post’ page and on my contact page, ID 3321.

    Nice.

    Thread Starter koniahin

    (@koniahin)

    Perfect. I tested and it works to perfection.

    $n = 0;
    $col1 = do_shortcode(‘[moduleposition id=”1″]’); if ( $col1 ) { $n = $n + 1; }
    $col2 = do_shortcode(‘[moduleposition id=”2″]’); if ( $col2 ) { $n = $n + 1; }
    $col3 = do_shortcode(‘[moduleposition id=”3″]’); if ( $col3 ) { $n = $n + 1; }
    $col4 = do_shortcode(‘[moduleposition id=”4″]’); if ( $col4 ) { $n = $n + 1; }
    $col5 = do_shortcode(‘[moduleposition id=”5″]’); if ( $col5 ) { $n = $n + 1; }
    $col6 = do_shortcode(‘[moduleposition id=”6″]’); if ( $col6 ) { $n = $n + 1; }
    $col7 = do_shortcode(‘[moduleposition id=”7″]’); if ( $col7 ) { $n = $n + 1; }

    echo “N: $n
    “;

    Thread Starter koniahin

    (@koniahin)

    The error with wp_debug enabled:

    Fatal error: Call to undefined function add_action() in /home/matthelm/public_html/wp-includes/functions.php on line 5175

    I placed the function at the end of ~/www/wp-includes/functions.php following the mysql_to_rfc3339 function like the following:

    function mysql_to_rfc3339( $date_string ) {
    $formatted = mysql2date( ‘c’, $date_string, false );

    // Strip timezone information
    return preg_replace( ‘/(?:Z|[+-]\d{2}(?::\d{2})?)$/’, ”, $formatted );
    }

    add_action(‘template_redirect’, ‘exclude_recaptcha_js’);
    function exclude_recaptcha_js()
    {
    global $bwp_capt;
    if (!is_singular()) {
    remove_action(‘wp_footer’, array($bwp_capt->get_captcha_provider(), ‘printRecaptchaJS’), 99999);
    }
    }

    I figured out a ‘hack’ way to resolve this by adding a clause within the _registerHooks() function in the ~/www/wp-content/plugins/bwp-recaptcha/includes/provider/v2.php file, but I would rather not use a hack if it can be avoided. This is not urgent.

    Thread Starter koniahin

    (@koniahin)

    Thanks to both of you for the pointers. Something always comes up, but I have the preprocessor script running and it looks good, does not require akismet or any other 3rd party program.

    Historically I’ve noticed that the spammers mostly use 2 domains in their email, gmail.com and sina.com. It appears that about 75-80% of spammers use @gmail.com and 10% or so, sina.com. I found an email validator, smtp_validateEmail.class.php, but haven’t figured out how to get it to work yet. If I can get this validator working then this will put a serious dent in the floodgates as well.

    Thread Starter koniahin

    (@koniahin)

    I ran a couple simple tests and this looks like it will do.

    Related question – one thing that spammers/spambots do is to try to post directly to a php script and bypass the public form, captcha, etc.

    Any advice on how to prevent/catch those if that is still possible with the latest wordpress?

    Thread Starter koniahin

    (@koniahin)

    Thx again but it still results in blank page(s). If I comment out the add_action line, pages are good but of course that does not solve the problem.

    Thread Starter koniahin

    (@koniahin)

    I figured out some of this:

    $ip = getenv(“REMOTE_ADDR”);
    $author = $_POST[‘author’];
    $email = $_POST[’email’];
    $comment = $_POST[‘comment’];
    $url = $_POST[‘url’];

    This should get me the basic information needed to filter a comment.

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