<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#ffffff" text="#000000">
Dear Vtiger Community,<br>
<br>
There is a genius component and module for Joomla 1.5.x, <b>vtigerforms</b>,
written by vtiger team.<br>
<br>
I have found an issue with vtigerforms running under other then
English language.<br>
<br>
In the file:<br>
/...Joomla_base.../components/com_vtigerforms/vtigerforms.php<br>
<blockquote><big><font face="Courier New, Courier, monospace">//
Send the response code.</font></big><br>
<big><font face="Courier New, Courier, monospace">$response_code =
'com_vtigerforms_RESP:SUCCESS';</font></big><br>
<big><font face="Courier New, Courier, monospace">if($vt_result) {</font></big><br>
<big><font face="Courier New, Courier, monospace">
if(preg_match("/Error Code:/",$vt_result)) {</font></big><br>
<big><font face="Courier New, Courier, monospace">
$response_code = 'com_vtigerforms_RESP:ERROR';</font></big><br>
<big><font face="Courier New, Courier, monospace"> }</font></big><br>
<big><font face="Courier New, Courier, monospace">}</font></big><br>
<big><font face="Courier New, Courier, monospace">echo
$response_code;</font></big><br>
</blockquote>
will fail every case if the vtiger default language is NOT English.<br>
<br>
For example the <big><font face="Courier New, Courier, monospace">$vt_result</font></big>
content in the Hungarian version in the case of error is:<br>
<br>
<title>Vtiger Leads Webforms</title>
<link rel="SHORTCUT ICON" href="themes/images/vtigercrm_icon.ico">
<style type="text/css">
                
table { font: inherit; }
.small {
        color:#000000;
        font-family:Arial,Helvetica,sans-serif;
        font-size:12px;
}
.big {
        font-family: Arial, Helvetica, sans-serif;
        font-size:14px;
}
.dvtCellLabel, .cellLabel {
        background-color:#FFe7e7;
        border:1px solid #DEDEDE;
        color: black;
        padding-left:10px;
        padding-right:10px;
        white-space:nowrap;
        text-align: right;
}
.bold{
        font-weight: bold;
}
                </style>
<div id="vtigerWebforms">
<table border="0" cellpadding="0" cellspacing="1" width="100%">
<tbody>
<tr>
<td colspan="2" style="text-align: right;"> <img
src="cid:part1.06010409.09080007@gmail.com" alt="vtiger
logo"> </td>
</tr>
<tr>
<td class="dvtCellLabel big bold" style="text-align:
center;" bgcolor="#ffcccc"> <img
src="cid:part2.07080408.05000401@gmail.com"
style="float: left; left: 0px; width: 36px;"> az
adatokat nem sikerült hozzáadni a VTiger CRM rendszerhez.<br>
<div style="text-align: center;"> <span>Hibakód: </span><span>WEBFORMS_INVALID_DATA</span><br>
<span>Hibaüzenet: </span><span>data provided is invalid</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
in the case of success is:<br>
<br>
<title>Vtiger Leads Webforms</title>
<link rel="SHORTCUT ICON" href="themes/images/vtigercrm_icon.ico">
<style type="text/css">
                
table { font: inherit; }
.small {
        color:#000000;
        font-family:Arial,Helvetica,sans-serif;
        font-size:12px;
}
.big {
        font-family: Arial, Helvetica, sans-serif;
        font-size:14px;
}
.dvtCellLabel2, .cellLabel2 {
        background-color:#c7FFc7;
        border:1px solid #DEDEDE;
        color:#545454;
        padding-left:10px;
        padding-right:10px;
        white-space:nowrap;
        text-align: right;
}
.bold{
        font-weight: bold;
}
                </style>
<div id="vtigerWebforms">
<table border="0" cellpadding="0" cellspacing="1" width="100%">
<tbody>
<tr>
<td colspan="2" style="text-align: right;"> <img
src="cid:part1.06010409.09080007@gmail.com" alt="vtiger
logo"> </td>
</tr>
<tr>
<td colspan="2" class="dvtCellLabel2 big bold"
style="text-align: center;"> <img
src="cid:part4.05030000.01020602@gmail.com"
style="float: left; width: 36px;"> Leads Az adatokat
sikeresen hozzáadtuk a VTiger CRM rendszerhez. </td>
</tr>
</tbody>
</table>
</div>
<br>
Both of message success and error does not contain the checked
strings - the program will indicate success in every case.<br>
<br>
Other side, if the vtiger server URL is not setted up correctly then
the <big><font face="Courier New, Courier, monospace">$vt_result</font></big>
will empty and the program will also indicate success.<br>
So it should be corrected for the future.<br>
<br>
Cheers<br>
<br>
<div class="moz-signature">-- <br>
<br>
Holbok István<br>
telefon: +3670-342-0900<br>
e-mail: <a href="mailto:holbok@gmail.com">holbok@gmail.com</a><br>
<b></b><br>
<br>
</div>
</body>
</html>