Jump to content

[MODULE] Slide captcha 4.1- PS 1.4/1.7 - Add a captcha to your forms - support iphone/ipad


Recommended Posts

  • Replies 457
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

This module shows a slide (like in iphone) that you need to scroll to unlock the form and send it. Usefull to avoid unwanted bots in your forms. The module can can hide the send button and send

i cant see the code in your footer. check taht the module is installed in the footer in modules, positions

How should I deal when one has disabled js? Then it allows to send forms without some kind of verification... so then is this captcha useless

Posted Images

Ver 2 - 1.5.4.1

 

The slide shows fine but when you slide to right it automatically sends the message and the actual send button never appears.

 

Is this the correct function for Ver 2.

Share this post


Link to post
Share on other sites

site is not online

 

I put the code like this:

 

{$HOOK_CREATE_ACCOUNT_FORM}
<fieldset class="account_creation">
<div class="exclusive">{include file="$tpl_dir./../../modules/slidecaptcha/slidecaptcha.tpl"}</div>
</fieldset>
<p class="cart_navigation required submit">
 <input type="hidden" name="email_create" value="1" />
 <input type="hidden" name="is_new_customer" value="1" />
 {if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'htmlall':'UTF-8'}" />{/if}
 <input type="submit" name="submitAccount" id="submitAccount" value="{l s='Register'}" class="exclusive" />
 <span><sup>*</sup>{l s='Required field'}</span>
</p>

 

After loading the registration form, field is displayed, but slidecaptcha not.

I make a mistake in registration (for example, entering a blank password),

I press "Register" (reload site)

and slidecaptcha shows up and works.

Slidecaptcha is not work only the first time.

 

I mean, I have not error in Javascript.

 

I have the same issue. SlideCaptcha appears and works only at the second attempt. But if there's no error on the first time, the normal submit button isn't disabled and slidecaptcha doesn't appear.

Very strange...

Don't you have any solution since your post ?

Share this post


Link to post
Share on other sites

Ver 2 - 1.5.4.1

 

The slide shows fine but when you slide to right it automatically sends the message and the actual send button never appears.

 

Is this the correct function for Ver 2.

 

Hi,

 

good idea is modify your slidecaptcha-footer.tpl

 

comment line 5 and line 8

Share this post


Link to post
Share on other sites
  • 1 month later...

Having a issue with SlideCaptcha :

 

When I insert 

{include file="$tpl_dir./../../modules/slidecaptcha/slidecaptcha.tpl"}

in contact-form.tpl file, my contact form blow out to full page. See image attached "effect of slidecaptcha.png"

 

Edit: If I put that line in the top of the contact-form.tpl : The whole page goes blank

 

Thnx in Advance

post-679968-0-27862900-1380347118_thumb.png

post-679968-0-88491500-1380347119_thumb.png

post-679968-0-80551500-1380347120_thumb.png

Edited by hqamar (see edit history)

Share this post


Link to post
Share on other sites

My problem is solved.

I deleted the module, downloaded it from Shacker website.

Deactivated the cache & empty smarty cache.

Installed the module again & its working. See  the images attached


How to make the slider in center ?

post-679968-0-33548800-1380436729_thumb.png

post-679968-0-65263900-1380436730_thumb.png

Share this post


Link to post
Share on other sites
  • 1 month later...

Hi Shaker, thanks for your work.

I ve download the mod from your site, uploaded  (PrestaShop™ 1.5.4.1), and follow the instructions.
 

 

The slide shows fine but when you slide to right it automatically sends the message and the actual send button never appears.

 

i need to keep the send button, any idea?

Edited by simsydney (see edit history)

Share this post


Link to post
Share on other sites
  • 1 month later...

Anyone sucessfully using this module together with the productcomments-tab? Has inserted the code for the slider above the send-button and everything works fine - except that I still get a massive amount of spam (feels like it's even more now with this module than before). I have also renamed the ID of the send-button's div-tag, which means that it now is exactly the same as for the contact-form (so the actual send-button disappears).

 

I guess the bots bypass the slider (without javascript) which means that this module is useless. A shame since it seemed really promising and I liked the layout of the captcha-function.

Share this post


Link to post
Share on other sites
  • 2 weeks later...
Hello! I have a problem with slidecaptcha.
 
I have this error message
 
Can you help me?

 

 

Notice: Undefined variable: submitsc in /var/www/modules/slidecaptcha/slidecaptcha.php on line 161

 

$smarty->assign(array( 'submitsc' => $submitsc));

Share this post


Link to post
Share on other sites
  • 4 weeks later...
  • 2 weeks later...

Hi I've same error:

Undefined variable: submitsc in /web/htdocs/www.xxxx.net/home/modules/slidecaptcha/slidecaptcha.php on line 161

 

ho to resolve??

 

thanks

issue solved

 

Hello! I have a problem with slidecaptcha.
 
I have this error message
 
Can you help me?

 

 

Notice: Undefined variable: submitsc in /var/www/modules/slidecaptcha/slidecaptcha.php on line 161

 

$smarty->assign(array( 'submitsc' => $submitsc));

 

solved, sorry fr the delay

Share this post


Link to post
Share on other sites
Hello! 

 

Now I see the slider in the new module 2.2! 

 

However, it does not send email when I pull the slider 

 

Could you be so kind and check this out?

 

 

Regards

 

 

MacRoy

Share this post


Link to post
Share on other sites

hi. the send button is hidden, you need to disable these option in the module configuration if you want. if you update the module, need to clear the cache

Share this post


Link to post
Share on other sites

Hi!

 

I can send the information whether it is locked or not when I decided to turn on Automatic handover to OF. If I selected Automatic handover to ON it sent nothing at all! Can you look at this? 
 
I use Prestaskop 1.6.0.4 RC1
 
Regards
 
MacRoy
Edited by MacRoy (see edit history)

Share this post


Link to post
Share on other sites
  • 3 weeks later...

 

Hi!

 

I can send the information whether it is locked or not when I decided to turn on Automatic handover to OF. If I selected Automatic handover to ON it sent nothing at all! Can you look at this? 
 
I use Prestaskop 1.6.0.4 RC1
 
Regards
 
MacRoy

 

Same Problem here!!!

 

Any news?

Share this post


Link to post
Share on other sites
  • 4 weeks later...
  • 3 weeks later...

same probleme in PS 1.6.0.5

auto submit ON : no submit button in contact-form (slide to the right or left position)

auto submit OFF : no action with the slide (slide to the right or left position i can press the submit button)

a solution, cause the idea of this captcha is very good and simple to use

thanks

Share this post


Link to post
Share on other sites

Are you going to let us know if there will be a fix for prestashop 1.6, i really like your module, but i can't use it, and i need one, at least let us know if you are working on it, so we don't look elsewhere. 

Share this post


Link to post
Share on other sites
  • 4 weeks later...

Are you going to let us know if there will be a fix for prestashop 1.6, i really like your module, but i can't use it, and i need one, at least let us know if you are working on it, so we don't look elsewhere. 

its updated. redownload from our site

same probleme in PS 1.6.0.5

auto submit ON : no submit button in contact-form (slide to the right or left position)

auto submit OFF : no action with the slide (slide to the right or left position i can press the submit button)

a solution, cause the idea of this captcha is very good and simple to use

thanks

updated. please redownload

I managed to make it show, but with automatic send to no, when i hit send it will send the mail also if locked, if automatic send to yes, it will do nothing. 

 

any fixes?

redownload, works now

V2.4 - Compatible PS 1.6

Share this post


Link to post
Share on other sites

i'm sorry to have to say that it still has problems, i put it on my test site and still has problems, this is with ps 1.6.0.6

Have a look http://is.gd/pzsjjo

 

Is this the place?

 

<textarea class="form-control" id="message" name="message">{if isset($message)}{$message|escape:'html':'UTF-8'|stripslashes}{/if}</textarea>
                </div>
            </div>
        </div>
        {include file="$tpl_dir./../../modules/slidecaptcha/slidecaptcha.tpl"}
        <div class="submit">
            <button type="submit" name="submitMessage" id="submitMessage" class="button btn btn-default button-medium"><span>{l s='Send'}<i class="icon-chevron-right right"></i></span></button>
</div>
Edited by benedettopresta (see edit history)

Share this post


Link to post
Share on other sites

i m in 1.6.0.5 and it s good

i tried :

auto submit ON : no submit button in contact-form => slide to the right it s send

auto submit OFF : submit button is disabled and slide to the right to enable the button

Edited by xav91 (see edit history)

Share this post


Link to post
Share on other sites

would you share the code where did you put the string? because on mine 1.6.0.6 i can't get it to work, this is where i put it.

 

<textarea class="form-control" id="message" name="message">{if isset($message)}{$message|escape:'html':'UTF-8'|stripslashes}{/if}</textarea>
                </div>
            </div>
        </div>
        {include file="$tpl_dir./../../modules/slidecaptcha/slidecaptcha.tpl"}
        <div class="submit">
            <button type="submit" name="submitMessage" id="submitMessage" class="button btn btn-default button-medium"><span>{l s='Send'}<i class="icon-chevron-right right"></i></span></button>
</div>
Edited by benedettopresta (see edit history)

Share this post


Link to post
Share on other sites
 </div>
        {include file="$tpl_dir./../../modules/slidecaptcha/slidecaptcha.tpl"}
        <div class="submit">
            <button type="submit" name="submitMessage" id="submitMessage" class="button btn btn-default button-medium"><span>{l s='Send'}<i class="icon-chevron-right right"></i></span></button>
        </div>
    </fieldset>
</form>

i think it s like you

Share this post


Link to post
Share on other sites

I am usin this on PS 1.5.6.2 and the first issue is that the send buttons seems to be hidden, but then do not reappear when the slider is unclocked.

 

Secondly, if I remove the hiding of the buttons, all seems to be working fine on my product comments form, but althought the slider shows on my send to a friend form, it is not working - the form is sent even with the slider locked

Share this post


Link to post
Share on other sites
  • 2 weeks later...

Verry great module !

it's working well !

 

Excepted when my contact form appears in a pop-up and it doesn't work.

No slider, just the previous button "send".

 

You can try it if you use the url employed to build the pop-up :

"http://www.your-website.com/contact-us?content_only=1"

 

Is there an easy solution ?

 

Also, I just notice when slidcaptcha is activated, blocklayered doesn't work anymore (loading forever)...

Edited by Profette (see edit history)

Share this post


Link to post
Share on other sites
  • 3 weeks later...

I'm sorry to have to report you a problem with your slide captcha, when activated if you go to http://shop.alloff.it/3-swimwear and try to change page    pages.jpg   it will not do it. now i disable your module so it will work, have a look into it and let know know if there is a fix, I've been told by prestashop forge ( where i had created an issue ) that it might be:

 

You probably have an issue with slidecaptcha 

<script type="text/javascript" src="/modules/slidecaptcha/jquery/jquery-ui.js"></script>
<script type="text/javascript" src="/modules/slidecaptcha/jquery/jquery.ui.touch.js"></script>
<script type="text/javascript" src="/modules/slidecaptcha/jquery/QapTcha.jquery.js"></script>

 

this is the link to the full issue: http://forge.prestashop.com/browse/PSCSX-2714

it also talks about the homesliderpro, but before disabling your module i had disabled that one and the problem was still there, so it must be yours. i repeat as soon as i disabled it everything worked fine.

Share this post


Link to post
Share on other sites
  • 2 weeks later...

works on ps 1.6.0.8 too.

 

shop.alloff.it/contact-us

 

Cannot make it work  -- Both slider and submit button are missing on my 1.6.0.8

 <div class="submit">
			{include file="$tpl_dir./../../modules/slidecaptcha/slidecaptcha.tpl"}
            <button type="submit" name="submitMessage" id="submitMessage" class="button btn btn-default button-medium"><span>{l s='Send'}<i class="icon-chevron-right right"></i></span></button>
		</div>

Share this post


Link to post
Share on other sites
Once the module is enabled slidecaptcha .... 

The send button becomes invisible ... 

 

335354slidecaptcha.png

 

 

I try to do in CSS réeapparaitre but nothing to do ... 

 

I'm Prestashop 1.6.0.8 

 

I love this module is too great ... I wish the dévellopeur we find the solution

Share this post


Link to post
Share on other sites
Me it is the opposite .. This is the send button has disappeared ... 

And slide captcha is visible ... 

Did you clear your cache? And install the latest version SlideCaptcha v2.4 - by RSI?

Share this post


Link to post
Share on other sites
  • 4 weeks later...

in local i cant help with this installation. check if the code is putted on the footer and header , the module load javascript in both. check the tlp

How to install it for 1.6.0.9?

Share this post


Link to post
Share on other sites

Hello, in presta 1.3.6 is working, if do you know?

And other questions, if the contact page is modified it will work ?

 

Thank you for answers.

work if have the form and send button, and i try some time ago and didnt work, maybe an old ps 1.3 version

Share this post


Link to post
Share on other sites

I am usin this on PS 1.5.6.2 and the first issue is that the send buttons seems to be hidden, but then do not reappear when the slider is unclocked.

 

Secondly, if I remove the hiding of the buttons, all seems to be working fine on my product comments form, but althought the slider shows on my send to a friend form, it is not working - the form is sent even with the slider locked

sent t oa friend is not working becouse uses other method

Hi.

 

I updated. from ps.1.6.0.6 to ps. 1.6.0.8 and slide captcha has disappeared.

http://jardininfinito.com/contacto

 

Regards.

if update, maybe need to put the code again in the contact form

 

Once the module is enabled slidecaptcha .... 
The send button becomes invisible ... 
 
335354slidecaptcha.png
 
 
I try to do in CSS réeapparaitre but nothing to do ... 
 
I'm Prestashop 1.6.0.8 
 
I love this module is too great ... I wish the dévellopeur we find the solution

 

disable the auto send in slide captcha

Share this post


Link to post
Share on other sites

sent t oa friend is not working becouse uses other method

if update, maybe need to put the code again in the contact form

disable the auto send in slide captcha

Installed the module but here is the code

 

</p>
                        {include file="$tpl_dir./../../modules/slidecaptcha/slidecaptcha.tpl"}
<p class="submit">
<input type="submit" name="submitMessage" id="submitMessage" value="{l s='Send'}" class="button" />
</p>

 

But not appeaing on front end? am I doing anyting wrong?

Thanks

Share this post


Link to post
Share on other sites
  • 3 weeks later...
During an identification, your site is not accessible ... Watch ... 


Your connection is not private 

 

It is possible that hackers are trying to steal your information on the site 

catalogo-onlinersi.net (eg, passwords, messages or information about your payment card).

 

 


330154catalogo.png

 

 

There he got you to update the module so that it is functional on Prestashop 1.6.0.8 ??

Share this post


Link to post
Share on other sites

same problem here, cannot download the 2.5 ( security issue )

 

managed to download with IE, and i can confirm you that the last fix works, now i can change pages. Thanks

 

 

 

hint. Next update, change the translation of the italian form,

 

from: Forma Locked, faccia scorrere per sbloccare   -to-   Modulo bloccato, faccia scorrere per sbloccare  

and

from: Forma sbloccato   -to-   Modulo sbloccato

Edited by benedettopresta (see edit history)

Share this post


Link to post
Share on other sites
hello, 
 
I download the latest version of the module. I install it .... I put the line below in contact.form.tpl
{include file="$tpl_dir./../../modules/slidecaptcha/slidecaptcha.tpl"}

Once the module is installed in the contact side the send button disappears ... The slide button captcha takes it up ... Can not bring up the send button

 

before

186772Contacteznous02.png

 

 

After

515381Contacteznous01.png

 

Someone has managed to set it in PrestaShop 1.6.0.8 ??

Share this post


Link to post
Share on other sites

same problem here, cannot download the 2.5 ( security issue )

 

managed to download with IE, and i can confirm you that the last fix works, now i can change pages. Thanks

 

 

 

hint. Next update, change the translation of the italian form,

 

from: Forma Locked, faccia scorrere per sbloccare   -to-   Modulo bloccato, faccia scorrere per sbloccare  

and

from: Forma sbloccato   -to-   Modulo sbloccato

hi. is an issue from the https, we solve soon, but you can keep downloading

Share this post


Link to post
Share on other sites

Hi

 

i have the problem, It covered the  key send email  with the key Slide captcha.

 

I have template mela.

what do you mean?

 

the problem is that I have downloaded the module and the module does not appear to liosta 
version of prestashop 1.6.0.8

 

you downloaded from our site?

Share this post


Link to post
Share on other sites

Goodmorning,

I download and add slidecaptcha 2.5 on my prestashop 1.6.0.9 contact_form.tpl

This is great module.

I want to add it on login form and register form but don't now how. Help please.

How need to upgrade slidecaptcha code to work on this forms, because insert {include file="$tpl_dir./../../modules/slidecaptcha/slidecaptcha.tpl"} not work. :(

Please help!

Edited by gintarisnet (see edit history)

Share this post


Link to post
Share on other sites
  • 3 weeks later...

Having issues with the slide module, can not get the 2.5 version to work with 1.4 version of Prestashop (yes I still have one).

I was using the 1.4 version for a long time until I realized that it was causing the Full site not to scroll in mobile version.

For now I have gone back to my own captcha (scrambled letters), has anyone else noticed these issues.

 

Message:

Fatal error: Call to undefined method Page::getPageTypeByName() in /hermes/bosnaweb03b/b1447/ipg.teamshepherdusa/modules/slidecaptcha/slidecaptcha.php on line 94

 

2.5 version works fine in 1.5 ???

Share this post


Link to post
Share on other sites

Hello:
 
Thanks for the module.It work's fine in contact form, but we have a form in product tab... and there not work.
 
To make it work, I add pagetype ($ptypee4) for product in modules/slidecaptcha/slidecaptcha.php like this:

		$ptypee1=Page::getPageTypeByName("contact");
		$ptypee2=Page::getPageTypeByName("contact-form");
		$ptypee3=Page::getPageTypeByName("contact-form.php");
		$submitsc = Configuration::get('SLIDECAPTCHA_SUBMITSC');		
		

	if(_PS_VERSION_ < "1.5.0.0")
	{	
		
		Tools::addCSS(($this->_path).'jquery/QapTcha.jquery.css', 'all');
		Tools::addJS(($this->_path).'jquery/jquery-ui.js');
		Tools::addJS(($this->_path).'jquery/jquery.ui.touch.js');
		Tools::addJS(($this->_path).'jquery/QapTcha.jquery.js');
		
		$smarty->assign(array('submitsc' => $submitsc));
	}
	else
	{
		if (_PS_VERSION_ < "1.6.0.0")
		{
			$this->context->controller->addCSS(($this->_path).'jquery/QapTcha.jquery15.css', 'all');
		}
		else
		{
			$this->context->controller->addCSS(($this->_path).'jquery/QapTcha.jquery16.css', 'all');
		}
	if($pettyp == $ptypee1 OR $pettyp == $ptypee2 OR $pettyp == $ptypee3){
		$this->context->controller->addJS(($this->_path).'jquery/jquery-ui.js');
		$this->context->controller->addJS(($this->_path).'jquery/jquery.ui.touch.js');
		$this->context->controller->addJS(($this->_path).'jquery/QapTcha.jquery.js');
	}
		$this->context->smarty->assign(array('submitsc' => $submitsc));
	}
	$smarty->assign(array('psversion' => _PS_VERSION_));
		return $this->display(__FILE__, 'slidecaptcha-header.tpl');
	}
		function hookFooter($params)
	{
		global $smarty, $psversion,$submitsc;
		
		
	$ptypee=Page::getCurrentId();
$pety = $this->getPages($ptypee);
foreach ($pety as $pet)
{
$petid = $pet['id_page'];
$petnam = $pet['name'];
$pettyp= $pet['id_page_type'];
}
		$ptypee1=Page::getPageTypeByName("contact");
		$ptypee2=Page::getPageTypeByName("contact-form");
		$ptypee3=Page::getPageTypeByName("contact-form.php");
		$submitsc = Configuration::get('SLIDECAPTCHA_SUBMITSC');		
		
	if(_PS_VERSION_ < "1.5.0.0")
	{	
		

		$smarty->assign(array('submitsc' => $submitsc));
	}
	else
	{
	
		$this->context->smarty->assign(array('pettyp' => $pettyp));
		$this->context->smarty->assign(array('ptypee1' => $ptypee1));
		$this->context->smarty->assign(array('ptypee2' => $ptypee2));
		$this->context->smarty->assign(array('ptypee3' => $ptypee3));$this->context->smarty->assign(array('ptypee' => $ptypee));
			$this->context->smarty->assign(array('submitsc' => $submitsc));
		
	}
	$smarty->assign(array('psversion' => _PS_VERSION_));

			if($pettyp == $ptypee1 || $pettyp == $ptypee2 || $pettyp == $ptypee3)

to this

		$ptypee1=Page::getPageTypeByName("contact");
		$ptypee2=Page::getPageTypeByName("contact-form");
		$ptypee3=Page::getPageTypeByName("contact-form.php");
		$ptypee4=Page::getPageTypeByName("product");
 
		$submitsc = Configuration::get('SLIDECAPTCHA_SUBMITSC');		
		

	if(_PS_VERSION_ < "1.5.0.0")
	{	
		Tools::addCSS(($this->_path).'jquery/QapTcha.jquery.css', 'all');
		Tools::addJS(($this->_path).'jquery/jquery-ui.js');
		Tools::addJS(($this->_path).'jquery/jquery.ui.touch.js');
		Tools::addJS(($this->_path).'jquery/QapTcha.jquery.js');
		
		$smarty->assign(array('submitsc' => $submitsc));
	}
	else
	{
		if (_PS_VERSION_ < "1.6.0.0")
		{
			$this->context->controller->addCSS(($this->_path).'jquery/QapTcha.jquery15.css', 'all');
		}
		else
		{
			$this->context->controller->addCSS(($this->_path).'jquery/QapTcha.jquery16.css', 'all');
		}
	if($pettyp == $ptypee1 OR $pettyp == $ptypee2 OR $pettyp == $ptypee3 OR $pettyp == $ptypee4){
		$this->context->controller->addJS(($this->_path).'jquery/jquery-ui.js');
		$this->context->controller->addJS(($this->_path).'jquery/jquery.ui.touch.js');
		$this->context->controller->addJS(($this->_path).'jquery/QapTcha.jquery.js');
	}
		$this->context->smarty->assign(array('submitsc' => $submitsc));
	}
	//echo "El this=<pre>";print_r($this);echo "</pre>";exit;
	$smarty->assign(array('psversion' => _PS_VERSION_));
		return $this->display(__FILE__, 'slidecaptcha-header.tpl');
	}
		function hookFooter($params)
	{
		global $smarty, $psversion,$submitsc;
		
		
	$ptypee=Page::getCurrentId();
$pety = $this->getPages($ptypee);
foreach ($pety as $pet)
{
$petid = $pet['id_page'];
$petnam = $pet['name'];
$pettyp= $pet['id_page_type'];
}
		$ptypee1=Page::getPageTypeByName("contact");
		$ptypee2=Page::getPageTypeByName("contact-form");
		$ptypee3=Page::getPageTypeByName("contact-form.php");
		$ptypee4=Page::getPageTypeByName("product");
		$submitsc = Configuration::get('SLIDECAPTCHA_SUBMITSC');		
		
	if(_PS_VERSION_ < "1.5.0.0")
	{	
		

		$smarty->assign(array('submitsc' => $submitsc));
	}
	else
	{
	
		$this->context->smarty->assign(array('pettyp' => $pettyp));
		$this->context->smarty->assign(array('ptypee1' => $ptypee1));
		$this->context->smarty->assign(array('ptypee2' => $ptypee2));
		$this->context->smarty->assign(array('ptypee3' => $ptypee3));
		$this->context->smarty->assign(array('ptypee4' => $ptypee4));
		$this->context->smarty->assign(array('ptypee' => $ptypee));
			$this->context->smarty->assign(array('submitsc' => $submitsc));
		
	}
	$smarty->assign(array('psversion' => _PS_VERSION_));

			if($pettyp == $ptypee1 || $pettyp == $ptypee2 || $pettyp == $ptypee3 || $pettyp == $ptypee4)

It's ok? or may be in an error?

 

Thank you again!  ;)

Share this post


Link to post
Share on other sites
  • 3 weeks later...

I found out something strange, when your module is active, and i go to contact page, i see some numbers in the footer area and that number is different on every web site i use this on for example http://shop.alloff.it i see 14:7-23-24 on another i see 5:2-3-4, another 7:2-3-4 and so on, if i disable your module those numbers disappear, and they only appear on the footer of the contact us page. Do you know about this? do you have a solution?

Share this post


Link to post
Share on other sites

I have that too, its annoying. it's under the social icon module like in your shop.

(http://www.lovelyplanets.com/en/contact-us)

it comes from the last line in slidecaptcha-footer.tpl:

{$ptypee}:{$ptypee1}-{$ptypee2}-{$ptypee3}

 

the module is working as expected.
I simply hid it with a "display:none" tag - no error until now.

 

is that piece of code needed?
btw. thanks for the slidecaptcha module.

Share this post


Link to post
Share on other sites

could you share the whole line of code, how did you hide it?

 

I had a look at your site, i have to tell you that it's very slow, if you want you can test it yourself at http://tools.pingdom.com/fpt/ it took from 30 to 40 seconds to load, one of mine http://shop.alloff.it  takes less then 4 sec, and that is because it's full of graphics. If it's your host that it's slow, i've tryed many and now I'm using https://www.a2hosting.com and i'm totally happy with it. 

Edited by benedettopresta (see edit history)

Share this post


Link to post
Share on other sites

hi,

please note that the site is not live and the caching is disabled.

 

replace line 22 of  /modules/slidecaptcha/slidecaptcha-footer.tpl

<span style="display:none;">{$ptypee}:{$ptypee1}-{$ptypee2}-{$ptypee3}</span>

cheers, dusk

Share this post


Link to post
Share on other sites

Thanks, for the tip, mine actually was on line 21, and I just disabled it, and it still seams to work fine. Thanks But still no idea of what is it for? what's the purpose of those numbers. 

 

<!--{$ptypee}:{$ptypee1}-{$ptypee2}-{$ptypee3}-->

Share this post


Link to post
Share on other sites

Hello:

 

Thanks for the module.It work's fine in contact form, but we have a form in product tab... and there not work.

 

To make it work, I add pagetype ($ptypee4) for product in modules/slidecaptcha/slidecaptcha.php like this:

		$ptypee1=Page::getPageTypeByName("contact");
		$ptypee2=Page::getPageTypeByName("contact-form");
		$ptypee3=Page::getPageTypeByName("contact-form.php");
		$submitsc = Configuration::get('SLIDECAPTCHA_SUBMITSC');		
		

	if(_PS_VERSION_ < "1.5.0.0")
	{	
		
		Tools::addCSS(($this->_path).'jquery/QapTcha.jquery.css', 'all');
		Tools::addJS(($this->_path).'jquery/jquery-ui.js');
		Tools::addJS(($this->_path).'jquery/jquery.ui.touch.js');
		Tools::addJS(($this->_path).'jquery/QapTcha.jquery.js');
		
		$smarty->assign(array('submitsc' => $submitsc));
	}
	else
	{
		if (_PS_VERSION_ < "1.6.0.0")
		{
			$this->context->controller->addCSS(($this->_path).'jquery/QapTcha.jquery15.css', 'all');
		}
		else
		{
			$this->context->controller->addCSS(($this->_path).'jquery/QapTcha.jquery16.css', 'all');
		}
	if($pettyp == $ptypee1 OR $pettyp == $ptypee2 OR $pettyp == $ptypee3){
		$this->context->controller->addJS(($this->_path).'jquery/jquery-ui.js');
		$this->context->controller->addJS(($this->_path).'jquery/jquery.ui.touch.js');
		$this->context->controller->addJS(($this->_path).'jquery/QapTcha.jquery.js');
	}
		$this->context->smarty->assign(array('submitsc' => $submitsc));
	}
	$smarty->assign(array('psversion' => _PS_VERSION_));
		return $this->display(__FILE__, 'slidecaptcha-header.tpl');
	}
		function hookFooter($params)
	{
		global $smarty, $psversion,$submitsc;
		
		
	$ptypee=Page::getCurrentId();
$pety = $this->getPages($ptypee);
foreach ($pety as $pet)
{
$petid = $pet['id_page'];
$petnam = $pet['name'];
$pettyp= $pet['id_page_type'];
}
		$ptypee1=Page::getPageTypeByName("contact");
		$ptypee2=Page::getPageTypeByName("contact-form");
		$ptypee3=Page::getPageTypeByName("contact-form.php");
		$submitsc = Configuration::get('SLIDECAPTCHA_SUBMITSC');		
		
	if(_PS_VERSION_ < "1.5.0.0")
	{	
		

		$smarty->assign(array('submitsc' => $submitsc));
	}
	else
	{
	
		$this->context->smarty->assign(array('pettyp' => $pettyp));
		$this->context->smarty->assign(array('ptypee1' => $ptypee1));
		$this->context->smarty->assign(array('ptypee2' => $ptypee2));
		$this->context->smarty->assign(array('ptypee3' => $ptypee3));$this->context->smarty->assign(array('ptypee' => $ptypee));
			$this->context->smarty->assign(array('submitsc' => $submitsc));
		
	}
	$smarty->assign(array('psversion' => _PS_VERSION_));

			if($pettyp == $ptypee1 || $pettyp == $ptypee2 || $pettyp == $ptypee3)

to this

		$ptypee1=Page::getPageTypeByName("contact");
		$ptypee2=Page::getPageTypeByName("contact-form");
		$ptypee3=Page::getPageTypeByName("contact-form.php");
		$ptypee4=Page::getPageTypeByName("product");
 
		$submitsc = Configuration::get('SLIDECAPTCHA_SUBMITSC');		
		

	if(_PS_VERSION_ < "1.5.0.0")
	{	
		Tools::addCSS(($this->_path).'jquery/QapTcha.jquery.css', 'all');
		Tools::addJS(($this->_path).'jquery/jquery-ui.js');
		Tools::addJS(($this->_path).'jquery/jquery.ui.touch.js');
		Tools::addJS(($this->_path).'jquery/QapTcha.jquery.js');
		
		$smarty->assign(array('submitsc' => $submitsc));
	}
	else
	{
		if (_PS_VERSION_ < "1.6.0.0")
		{
			$this->context->controller->addCSS(($this->_path).'jquery/QapTcha.jquery15.css', 'all');
		}
		else
		{
			$this->context->controller->addCSS(($this->_path).'jquery/QapTcha.jquery16.css', 'all');
		}
	if($pettyp == $ptypee1 OR $pettyp == $ptypee2 OR $pettyp == $ptypee3 OR $pettyp == $ptypee4){
		$this->context->controller->addJS(($this->_path).'jquery/jquery-ui.js');
		$this->context->controller->addJS(($this->_path).'jquery/jquery.ui.touch.js');
		$this->context->controller->addJS(($this->_path).'jquery/QapTcha.jquery.js');
	}
		$this->context->smarty->assign(array('submitsc' => $submitsc));
	}
	//echo "El this=<pre>";print_r($this);echo "</pre>";exit;
	$smarty->assign(array('psversion' => _PS_VERSION_));
		return $this->display(__FILE__, 'slidecaptcha-header.tpl');
	}
		function hookFooter($params)
	{
		global $smarty, $psversion,$submitsc;
		
		
	$ptypee=Page::getCurrentId();
$pety = $this->getPages($ptypee);
foreach ($pety as $pet)
{
$petid = $pet['id_page'];
$petnam = $pet['name'];
$pettyp= $pet['id_page_type'];
}
		$ptypee1=Page::getPageTypeByName("contact");
		$ptypee2=Page::getPageTypeByName("contact-form");
		$ptypee3=Page::getPageTypeByName("contact-form.php");
		$ptypee4=Page::getPageTypeByName("product");
		$submitsc = Configuration::get('SLIDECAPTCHA_SUBMITSC');		
		
	if(_PS_VERSION_ < "1.5.0.0")
	{	
		

		$smarty->assign(array('submitsc' => $submitsc));
	}
	else
	{
	
		$this->context->smarty->assign(array('pettyp' => $pettyp));
		$this->context->smarty->assign(array('ptypee1' => $ptypee1));
		$this->context->smarty->assign(array('ptypee2' => $ptypee2));
		$this->context->smarty->assign(array('ptypee3' => $ptypee3));
		$this->context->smarty->assign(array('ptypee4' => $ptypee4));
		$this->context->smarty->assign(array('ptypee' => $ptypee));
			$this->context->smarty->assign(array('submitsc' => $submitsc));
		
	}
	$smarty->assign(array('psversion' => _PS_VERSION_));

			if($pettyp == $ptypee1 || $pettyp == $ptypee2 || $pettyp == $ptypee3 || $pettyp == $ptypee4)

It's ok? or may be in an error?

 

Thank you again!  ;)

add product and product.php, to make it works with any version

Thanks, for the tip, mine actually was on line 21, and I just disabled it, and it still seams to work fine. Thanks But still no idea of what is it for? what's the purpose of those numbers. 

 

<!--{$ptypee}:{$ptypee1}-{$ptypee2}-{$ptypee3}-->

delete these line, i make the update this week