Jump to content

Problema con modulo SlideCaptcha 1.6 rsi -Solucionado


Recommended Posts

Subo el modulo y al configurarlo me pide que pege un codigo:

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

 

Lo he pegado en varios sitios de contact-form.tpl de mi plantilla , pero no me funciona , me podriais decir en que lugar exactamente de contac-form.tpl (o quizas esta version del captcha no funcione)

 

{*

* 2007-2011 PrestaShop

*

* NOTICE OF LICENSE

*

* This source file is subject to the Academic Free License (AFL 3.0)

* that is bundled with this package in the file LICENSE.txt.

* It is also available through the world-wide-web at this URL:

* http://opensource.or...ses/afl-3.0.php

* If you did not receive a copy of the license and are unable to

* obtain it through the world-wide-web, please send an email

* to [email protected] so we can send you a copy immediately.

*

* DISCLAIMER

*

* Do not edit or add to this file if you wish to upgrade PrestaShop to newer

* versions in the future. If you wish to customize PrestaShop for your

* needs please refer to http://www.prestashop.com for more information.

*

* @author PrestaShop SA <[email protected]>

* @copyright 2007-2011 PrestaShop SA

* @version Release: $Revision: 6594 $

* @license http://opensource.or...ses/afl-3.0.php Academic Free License (AFL 3.0)

* International Registered Trademark & Property of PrestaShop SA

*}

 

{capture name=path}{l s='Contact'}{/capture}

{include file="$tpl_dir./breadcrumb.tpl"}

 

<h1>{l s='Customer Service'} - {if isset($customerThread) && $customerThread}{l s='Your reply'}{else}{l s='Contact us'}{/if}</h1>

 

{if isset($confirmation)}

<p>{l s='Your message has been successfully sent to our team.'}</p>

<ul class="footer_links">

<li><a href="{$base_dir}"><img class="icon" alt="" src="{$img_dir}icon/home.gif"/></a><a href="{$base_dir}">{l s='Home'}</a></li>

</ul>

{elseif isset($alreadySent)}

<p>{l s='Your message has already been sent.'}</p>

<ul class="footer_links">

<li><a href="{$base_dir}"><img class="icon" alt="" src="{$img_dir}icon/home.gif"/></a><a href="{$base_dir}">{l s='Home'}</a></li>

</ul>

{else}

<p class="bold">{l s='For questions about an order or for more information about our products'}.</p>

{include file="$tpl_dir./errors.tpl"}

<form action="{$request_uri|escape:'htmlall':'UTF-8'}" method="post" class="std" enctype="multipart/form-data">

<fieldset>

<h3>{l s='Send a message'}</h3>

<p class="select">

<label for="id_contact">{l s='Subject Heading'}</label>

{if isset($customerThread.id_contact)}

{foreach from=$contacts item=contact}

{if $contact.id_contact == $customerThread.id_contact}

<input type="text" id="contact_name" name="contact_name" value="{$contact.name|escape:'htmlall':'UTF-8'}" readonly="readonly" />

<input type="hidden" name="id_contact" value="{$contact.id_contact}" />

{/if}

{/foreach}

</p>

{else}

<select id="id_contact" name="id_contact" onchange="showElemFromSelect('id_contact', 'desc_contact')">

<option value="0">{l s='-- Choose --'}</option>

{foreach from=$contacts item=contact}

<option value="{$contact.id_contact|intval}" {if isset($smarty.post.id_contact) && $smarty.post.id_contact == $contact.id_contact}selected="selected"{/if}>{$contact.name|escape:'htmlall':'UTF-8'}</option>

{/foreach}

</select>

</p>

<p id="desc_contact0" class="desc_contact"> </p>

{foreach from=$contacts item=contact}

<p id="desc_contact{$contact.id_contact|intval}" class="desc_contact" style="display:none;">

<label> </label>{$contact.description|escape:'htmlall':'UTF-8'}

</p>

{/foreach}

{/if}

<p class="text">

<label for="email">{l s='E-mail address'}</label>

{if isset($customerThread.email)}

<input type="text" id="email" name="from" value="{$customerThread.email}" readonly="readonly" />

{else}

<input type="text" id="email" name="from" value="{$email}" />

{/if}

</p>

{if !$PS_CATALOG_MODE}

{if (!isset($customerThread.id_order) || $customerThread.id_order > 0)}

<p class="text">

<label for="id_order">{l s='Order ID'}</label>

{if !isset($customerThread.id_order) && isset($isLogged) && $isLogged == 1}

<select name="id_order" ><option value="0">{l s='-- Choose --'}</option>{$orderList}</select>

{elseif !isset($customerThread.id_order) && !isset($isLogged)}

<input type="text" name="id_order" id="id_order" value="{if isset($customerThread.id_order) && $customerThread.id_order > 0}{$customerThread.id_order|intval}{else}{if isset($smarty.post.id_order)}{$smarty.post.id_order|intval}{/if}{/if}" />

{elseif $customerThread.id_order > 0}

<input type="text" name="id_order" id="id_order" value="{$customerThread.id_order|intval}" readonly="readonly" />

{/if}

</p>

{/if}

{if isset($isLogged) && $isLogged}

<p class="text">

<label for="id_product">{l s='Product'}</label>

{if !isset($customerThread.id_product)}

<select name="id_product" style="width:300px;"><option value="0">{l s='-- Choose --'}</option>{$orderedProductList}</select>

{elseif $customerThread.id_product > 0}

<input type="text" name="id_product" id="id_product" value="{$customerThread.id_product|intval}" readonly="readonly" />

{/if}

</p>

{/if}

{/if}

{if $fileupload == 1}

<p class="text">

<label for="fileUpload">{l s='Attach File'}</label>

<input type="hidden" name="MAX_FILE_SIZE" value="2000000" />

<input type="file" name="fileUpload" id="fileUpload" />

</p>

{/if}

<p class="textarea">

<label for="message">{l s='Message'}</label>

<textarea id="message" name="message" rows="15" cols="20" style="width:307px;height:166px">{if isset($message)}{$message|escape:'htmlall':'UTF-8'|stripslashes}{/if}</textarea>

</p>

<p class="submit">

<input type="submit" name="submitMessage" id="submitMessage" value="{l s='Send'}" class="button_large" onclick="$(this).hide();" />

</p>

</fieldset>

</form>

{/if}

 

Gracias por la atención :)

slidecaptcha.zip

Edited by plusgourmet (see edit history)
Link to comment
Share on other sites

Usted debe colocar tal código encima del botón enviar, es decir como en el siguiente código:

{*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author PrestaShop SA <[email protected]>
*  @copyright  2007-2011 PrestaShop SA
*  @version  Release: $Revision: 6594 $
*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*}
{capture name=path}{l s='Contact'}{/capture}
{include file="$tpl_dir./breadcrumb.tpl"}
<h1>{l s='Customer Service'} - {if isset($customerThread) && $customerThread}{l s='Your reply'}{else}{l s='Contact us'}{/if}</h1>
{if isset($confirmation)}
<p>{l s='Your message has been successfully sent to our team.'}</p>
<ul class="footer_links">
 <li><a href="{$base_dir}"><img class="icon" alt="" src="{$img_dir}icon/home.gif"/></a><a href="{$base_dir}">{l s='Home'}</a></li>
</ul>
{elseif isset($alreadySent)}
<p>{l s='Your message has already been sent.'}</p>
<ul class="footer_links">
 <li><a href="{$base_dir}"><img class="icon" alt="" src="{$img_dir}icon/home.gif"/></a><a href="{$base_dir}">{l s='Home'}</a></li>
</ul>
{else}
<p class="bold">{l s='For questions about an order or for more information about our products'}.</p>
{include file="$tpl_dir./errors.tpl"}
<form action="{$request_uri|escape:'htmlall':'UTF-8'}" method="post" class="std" enctype="multipart/form-data">
 <fieldset>
  <h3>{l s='Send a message'}</h3>
  <p class="select">
   <label for="id_contact">{l s='Subject Heading'}</label>
  {if isset($customerThread.id_contact)}
   {foreach from=$contacts item=contact}
 {if $contact.id_contact == $customerThread.id_contact}
  <input type="text" id="contact_name" name="contact_name" value="{$contact.name|escape:'htmlall':'UTF-8'}" readonly="readonly" />
  <input type="hidden" name="id_contact" value="{$contact.id_contact}" />
 {/if}
   {/foreach}
  </p>
  {else}
   <select id="id_contact" name="id_contact" onchange="showElemFromSelect('id_contact', 'desc_contact')">
 <option value="0">{l s='-- Choose --'}</option>
   {foreach from=$contacts item=contact}
 <option value="{$contact.id_contact|intval}" {if isset($smarty.post.id_contact) && $smarty.post.id_contact == $contact.id_contact}selected="selected"{/if}>{$contact.name|escape:'htmlall':'UTF-8'}</option>
   {/foreach}
   </select>
  </p>
  <p id="desc_contact0" class="desc_contact"> </p>
   {foreach from=$contacts item=contact}
 <p id="desc_contact{$contact.id_contact|intval}" class="desc_contact" style="display:none;">
  <label> </label>{$contact.description|escape:'htmlall':'UTF-8'}
 </p>
   {/foreach}
  {/if}
  <p class="text">
   <label for="email">{l s='E-mail address'}</label>
   {if isset($customerThread.email)}
 <input type="text" id="email" name="from" value="{$customerThread.email}" readonly="readonly" />
   {else}
 <input type="text" id="email" name="from" value="{$email}" />
   {/if}
  </p>
 {if !$PS_CATALOG_MODE}
  {if (!isset($customerThread.id_order) || $customerThread.id_order > 0)}
  <p class="text">
   <label for="id_order">{l s='Order ID'}</label>
   {if !isset($customerThread.id_order) && isset($isLogged) && $isLogged == 1}
 <select name="id_order" ><option value="0">{l s='-- Choose --'}</option>{$orderList}</select>
   {elseif !isset($customerThread.id_order) && !isset($isLogged)}
 <input type="text" name="id_order" id="id_order" value="{if isset($customerThread.id_order) && $customerThread.id_order > 0}{$customerThread.id_order|intval}{else}{if isset($smarty.post.id_order)}{$smarty.post.id_order|intval}{/if}{/if}" />
   {elseif $customerThread.id_order > 0}
 <input type="text" name="id_order" id="id_order" value="{$customerThread.id_order|intval}" readonly="readonly" />
   {/if}
  </p>
  {/if}
  {if isset($isLogged) && $isLogged}
  <p class="text">
  <label for="id_product">{l s='Product'}</label>
   {if !isset($customerThread.id_product)}
 <select name="id_product" style="width:300px;"><option value="0">{l s='-- Choose --'}</option>{$orderedProductList}</select>
   {elseif $customerThread.id_product > 0}
 <input type="text" name="id_product" id="id_product" value="{$customerThread.id_product|intval}" readonly="readonly" />
   {/if}
  </p>
  {/if}
 {/if}
 {if $fileupload == 1}
  <p class="text">
  <label for="fileUpload">{l s='Attach File'}</label>
   <input type="hidden" name="MAX_FILE_SIZE" value="2000000" />
   <input type="file" name="fileUpload" id="fileUpload" />
  </p>
 {/if}
 <p class="textarea">
  <label for="message">{l s='Message'}</label>
   <textarea id="message" name="message" rows="15" cols="20" style="width:340px;height:220px">{if isset($message)}{$message|escape:'htmlall':'UTF-8'|stripslashes}{/if}</textarea>
 </p>

 <p class="submit">
{include file="$tpl_dir./../../modules/slidecaptcha/slidecaptcha.tpl"}
 <input type="submit" name="submitMessage" id="submitMessage" value="{l s='Send'}" class="button_large" onclick="$(this).hide();" />
  </p>
</fieldset>
</form>
{/if}

  • Like 1
Link to comment
Share on other sites

Gracias , este slidecaptcha no me funciona ,ya subi el archivo modificado tal y como me lo has dejado pero el no quiere fucionar , algun captcha gratis que me podais recomendar y que funcione?

Gracias de nuevo , saludos ¡ ¡ ¡ :)

Pero no te funciona en que sentido?

No se ve el captcha, no aparece?

Supongo que despues de modificar el tpl, has ido a la pestaña Preferencias/Rendimiento y has señalado en forzar compilación, "SI" ?

Link to comment
Share on other sites

Perdón por mi torpeza, efectivamente le he dado a forzar complicacion y aparece algo pero no deja enviar mensajes ni se ve claramente un captcha 256004779.png

Si desplazas la flecha, el formulario se envía automáticamente. (No te hace nada, al desplazar la flecha?)

  • Like 1
Link to comment
Share on other sites

Gracias tio , eres un crack , asi si que funciona pero vaya captcha mas raro no? no entiendo su funcionamiento xd

Un placer ayudarte y servirte

 

Pues si ese captcha funciona así... :P (Un poco raro, pero bueno funcionar, funciona)

 

Por cierto, si das el tema como solucionado, edita el titulo del tema y añade la palabra solucionado al titulo, esto ayudara a mantener una mayor organización en el foro.

 

Por ultimo, recuerda que estaremos en el foro para guiarte por este mundo oscuro y tenebroso!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...