0
Welcome Guest! Login
0 items Join Now

Making recaptcha show on k2 comments

    • SandJ's Avatar
    • SandJ
    • Jr. Rocketeer
    • Posts: 35
    • Thanks: 0

    Making recaptcha show on k2 comments

    Posted 15 years 4 months ago
    • I've read a lot of threads about problems getting the Recaptcha to appear on the comments portion with k2, but none give enough details for me to figure out the solution.

      I've checked the php and under k2.js in components on my server, found some code that seems applicable:
      // Comments
        if ($('comment-form')) {
           $('comment-form').addEvent('submit', function(e){
             new Event(e).stop();
             var log2 = $('formLog').empty().addClass('formLogLoading');
             this.send({
                update: log2,
                onComplete: function(res){
                  log2.removeClass('formLogLoading');
                          if(typeof(Recaptcha) != "undefined"){ 
                                    Recaptcha.reload();
                          }
                  if (res.substr(13, 7) == 'success') {
                       window.location.reload();
                  }
                }
             });
           });
        }
      And have tried following instructions from here: recaptcha.net/plugins/php/

      But I can't figure out where to extract anything and add anything in. I did get an api.

      Right now, the comments box says enter the two words you see below, the recaptcha item is not there. Another thread said the person fixed this by enabling mootools in the template configuration, but I can't find that option with my MediaMogul essentials template.

      Hope I provided enough.

      Thanks
    • Kat05's Avatar
    • Kat05
    • Preeminent Rocketeer
    • Posts: 25898
    • Thanks: 334

    Re: Making recaptcha show on k2 comments

    Posted 15 years 4 months ago
    • hi there,

      probably best if you could check the k2 documentation or ask in the k2 forum.
      k2community.joomlaworks.gr/

      good luck! :)
    • Kat05 / QA Lead & Support / Germany

Time to create page: 0.062 seconds