Forums

[resolved] [Plugin: MyCaptcha] wordpress mu - initialize (8 posts)

  1. mbr-rolotec
    Member
    Posted 1 year ago #

    in single.php, instead of
    initialize();
    i had to use somthing like

    if (class_exists('MyCaptcha')) {
    	global $MyCaptcha;
    	$MyCaptcha->initialize();
    }

    Otherwise it works great!

    http://wordpress.org/extend/plugins/mycaptcha/

  2. nathan12343
    Member
    Posted 1 year ago #

    Hi

    Would you do me a big favour and copy and paste exactly what you have at the top of your single.php. I just can't seem to get it to work at all.

    Thanks

    Nathan

  3. sgperry
    Member
    Posted 1 year ago #

    hi Nathan,

    instead of initialize I put this code at the very top of my single.php page

    <?php if (class_exists('MyCaptcha')) {
    	global $MyCaptcha;
    	$MyCaptcha->initialize();
    } ?>

    hope that works for you,

    cheers Sg

  4. remy215
    Member
    Posted 1 year ago #

    @ mbr-rolotec, you're the man!

  5. eddiekimeera
    Member
    Posted 1 year ago #

    Thanks for this - really helpful.

    I've got it appearing on the blog correctly, but you can still send the comment without filling in the Captcha (Firefox 3). Also no error page appears (IE 6).

    I have a 404.php page but it doesn't kick in.

    Does anyone have an idea on what I've done wrong?

  6. Anonymous
    Unregistered
    Posted 1 year ago #

    @eddiekimeera

    make sure your not logged in before you test captcha, if your login in it will by pass it

  7. Anonymous
    Unregistered
    Posted 1 year ago #

    I was playing around with the mycaptcha plugin, and had quite the frustrating experience. Basically, the instructions given are incorrect/incomplete.

    On my single.php page, I needed to have the beginning look like this:
    <?php session_start() ?>
    <! - MyCaptcha ->
    <?php if (class_exists(’MyCaptcha’)) {
    $MyCaptcha;
    $MyCaptcha->initialize();
    } ?>
    <! - MyCaptcha ->

    <?php get_header(); ?>

    Otherwise, I was getting various errors including:

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home

    or

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /htdocs/blog/wp-content/themes/sexyround/single.php:3) in /htdocs/blog/wp-content/plugins/mycaptcha/MyCaptcha.php on line 51

    Hope this helps someone… let me know if it does!

  8. virtualex
    Member
    Posted 1 year ago #

    I have only one choice in Options>MyCaptcha that is "random". and no picture for it as it refers to

    wp-content/plugins/mycaptcha/php/crypt/cfg//example.png

    is there a necessity to manually edit any plug-in files? why there's no catalogue name between these slashes

    /cfg//example.png ?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags