Changeset 26068


Ignore:
Timestamp:
Dec 21, 2013, 5:36:13 PM (11 years ago)
Author:
mistic100
Message:

compatibility with contactform and guestbook

Location:
extensions/EasyCaptcha
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/EasyCaptcha/include/contactform.inc.php

    r26025 r26068  
    99{
    1010  global $template;
    11   $template->set_prefilter('index', 'prefilter_easycaptcha');
     11  $template->set_prefilter('contactform', 'prefilter_easycaptcha');
    1212}
    1313
  • extensions/EasyCaptcha/include/guestbook.inc.php

    r26025 r26068  
    44include(EASYCAPTCHA_PATH.'include/common.inc.php');
    55add_event_handler('loc_begin_index', 'add_easycaptcha');
    6 add_event_handler('user_comment_check_guestbook', 'check_easycaptcha', EVENT_HANDLER_PRIORITY_NEUTRAL, 2);
     6add_event_handler('user_comment_check', 'check_easycaptcha', EVENT_HANDLER_PRIORITY_NEUTRAL, 2);
    77
    88function add_easycaptcha()
    99{
    1010  global $template;
    11   $template->set_prefilter('index', 'prefilter_easycaptcha');
     11  $template->set_prefilter('guestbook', 'prefilter_easycaptcha');
    1212}
    1313
  • extensions/EasyCaptcha/template/admin.tpl

    r26025 r26068  
    3434$('.preview-tictac').on('change', function() {
    3535    var inputs = ['size','bg1','bg2','bd','obj','sel'],
    36         url = '{$EASYCAPTCHA_PATH}' + 'tictac/gen_admin.php?t='+ new Date().getTime();
     36        url = '{$EASYCAPTCHA_PATH}tictac/gen_admin.php?t='+ new Date().getTime();
    3737
    3838    for (var i=0; i<inputs.length; i++) {
Note: See TracChangeset for help on using the changeset viewer.