Forum Support

Shape 5
May 09, 2021, 01:17:50 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: no captch and language change  (Read 382 times)
joomally
Jr. Member
**
Offline Offline

Posts: 1



« on: December 05, 2014, 05:50:28 PM »

Hi there,
I have installed Joomla! 3.3.6 Stable and S5 Tell a Friend version 2.0.0. From the module manager joomla administrator back end I have the option 'Captcha'. However even when I set it to 'Yes' no capture appears through my website.
The following html is produced by the module:

Code:
<head>
<title>Tell a Friend by Shape5.com</title>

<style type="text/css">
.font {
font-size: 10pt;
font-family: Arial, Helvetica, sans-serif;
}

.font2 {
font-size: 10pt;
font-weight: bold;
font-family: Arial, Helvetica, sans-serif;
}
</style>

<script language="javascript">

var click;

function message() {

if (click >= 1) {

}

else {
click = 1;
document.tellafriend.ymessage.value='';
}

}

</script>

<script language="javascript">
<!--

function reset() {
//document.tellafriend.name.value="";
//document.tellafriend.email.value="";
document.tellafriend.fmail1.value="";
document.tellafriend.fmail2.value="";
document.tellafriend.fmail3.value="";
}

function validate() {

if (document.tellafriend.detect.value.length!=0) {

alert("Oops! Please enter a friend's email address");
return false;
}

else if (document.tellafriend.fmail1_holder.value.length==0) {
alert("Oops! Please enter a friend's email address");
return false;
}

else if (document.tellafriend.email.value.length==0) {
alert("Oops! Please enter your email address");
return false;
}

else if (document.tellafriend.name.value.length==0) {
alert("Oops! Please enter your name");
return false;
}

else {
document.tellafriend.fmail1.value = document.tellafriend.fmail1_holder.value;
document.tellafriend.fmail2.value = document.tellafriend.fmail2_holder.value;
document.tellafriend.fmail3.value = document.tellafriend.fmail3_holder.value;
document.tellafriend.fmail1_holder.value="";
document.tellafriend.fmail2_holder.value="";
document.tellafriend.fmail3_holder.value="";
document.tellafriend.submit()
return true;
}

}

//-->

</script>

</head>



<body onload="reset()" topmargin="0" leftmargin="0">
<br>
<div align="center">
 <div style="width:400px;text-align:left;">
 <div class="font2">Complete the details below to send a link to the current page:</div>
 <form name="tellafriend" action="tellafriend.php" method="post" onsubmit="return checkfields()">&nbsp;
   <br>
    <input size="30" name="detect" maxlength="50" type="hidden">
   <div class="font">*Your name: &nbsp;
     <input size="30" name="name" maxlength="45" value="">
   </div>
   <br>
   <div class="font">*Your email: &nbsp;
     <input size="30" name="email" maxlength="45" value="">
   </div>
   <br> 
   <div class="font2">Enter your message:</div>
   <br>   
   <div class="font">
     <textarea onfocus="message();" name="ymessage" cols="33" rows="4">"I found this site today...</textarea>
   </div>
   <br>
   <div class="font2">
        Enter your friend's email addresses:
   </div>
   <br>
   <div class="font">*Email 1: &nbsp;
     <input size="30" name="fmail1_holder" maxlength="80" value="">
   </div>
   <br>
   <div class="font">Email 2: &nbsp;&nbsp;
     <input size="30" name="fmail2_holder" maxlength="80" value="">
   </div>
   <br>
   <div class="font">Email 3: &nbsp;&nbsp;
     <input size="30" name="fmail3_holder" maxlength="80" value="">
   </div>
   <br>
   <div class="font2">
    This email submission will contain your name and email address.</div>
   <br>
<!-- Captcha Starts here -->   
    <input name="" id="captchaval" value="1" type="hidden">
<!-- ENds here -->   
<input value="" name="fmail1" size="30" maxlength="80" type="hidden">
<input value="" name="fmail2" size="30" maxlength="80" type="hidden">
<input value="" name="fmail3" size="30" maxlength="80" type="hidden">

   <input onclick="validate();" style="button" value="Send Email" type="button">
   <script language="javascript">document.write("<input type=hidden name=refurl value=" + window.opener.s5_taf_parent + ">")</script><input name="refurl" value="http://holosnet.com/" type="hidden">
 </form>

 </div>
<a style="text-decoration:none;font-family:Arial, Helvetica, sans-serif;font-size:10px;color:#333333;" target="_blank" href="http://www.shape5.com">Tell a Friend by Shape5.com</a>
</div>
</body>

Another question, is it possible to translate the text - 'Tell A Friend' to another language ?

Thanks
Logged
jonahh
Administrator
*****
Offline Offline

Posts: 23789



WWW
« Reply #1 on: December 15, 2014, 01:46:51 PM »

Hello,

Do you have the GD image library enabled on your server?  If you aren't sure you can ask your host regarding this.

As for the translation you would have to manually do it in the files by opening them up and changing the text.  For example in these files:

modules\mod_s5_tellafriend\tmpl\

Logged

Jonah Hall
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.