 | PHP Builder free solutions for web developers
|
|
|
COMPUSORY UPGRADE!!! Request an upgrade NOW! 32+ Pre-installed Modifications! 3 Server Locations to choose from: USA, UK and JAPAN.
11th December 2012 - phpBB88: All servers are upgraded to run using SSD drive. Click Here to report problems!
| View previous topic :: View next topic |
| Author |
Message |
fcallez Expert


Joined: 07 Mar 2007 Posts: 174 : Location: Pucallpa - Perú
Items
|
Posted: Mon Jun 23, 2008 11:17 pm Post subject: v4.2.6 - functions: getFieldValueByType |
|
|
Hello:
Changes needed :
functions: getFieldValueByType
------------------------------
before:
| Code: | if ($this->mode === "edit"){
// save entered values from fields in add/edit modes
$req_field_value = $this->getVariable($field_req_type.$field_name, false, "post");
if($req_field_value != "") $field_value = $req_field_value;
switch($field_type){ |
*******************
now :
| Code: | if ($this->mode === "edit"){
// save entered values from fields in add/edit modes
$req_field_value = $this->getVariable($field_req_type.$field_name, false, "post");
if($req_field_value != "") $field_value = $req_field_value;
// Modify 31/01/08 - Init
if($this->debug) {
echo "*** req_mode: ".$req_mode." --- field_type: ".$field_type." ---- field_property_default:".$field_property_default." --- field_value: ".$field_value."<br>";
}
if ($req_mode == "add" && ($field_property_default != "" || $field_property_default != 0)) {
if ($field_type != "image" ) {
$field_value = $field_property_default;
} else {
$field_value = "";
}
}
// Modify 31/01/08 - Fin
switch($field_type){
|
------------------------------
------------------------------
before :
| Code: |
if($this->getFieldProperty($field_name, "host") == "remote"){
// *** upload file from url (remote host)
......
}else{
$ret_file .= $this->nbsp.$str_prefix.substr($file_name_view, $str_start, 40).$this->nbsp;
}
if($field_type == "image") $ret_file .= "<br>";
else $ret_file .= " ";
if($readonly != ""){
|
**********************
now:
| Code: |
if($this->getFieldProperty($field_name, "host") == "remote"){
// *** upload file from url (remote host)
......
}else{
$ret_file .= $this->nbsp.$str_prefix.substr($file_name_view, $str_start, 40).$this->nbsp;
}
if($field_type == "image") $ret_file .= "<br>";
else $ret_file .= " ";
if($readonly == ""){ // Modify 20 06 08
|
--------------------------------
before :
| Code: | }else{
// *** upload file from local machine
.....
if($field_type == "image") $ret_file .= "<br>";
else $ret_file .= " ";
if($readonly != ""){
|
************************
now :
| Code: | }else{
// *** upload file from local machine
.....
if($field_type == "image") $ret_file .= "<br>";
else $ret_file .= " ";
if($readonly == ""){ // Modify 20 06 08
|
---------------------------------------
---------------------------------------
Bye  _________________ Franklin Calle Zapata
fcallez@gmail.com
skype : fcallez |
|
| Back to top |
|
 |
administrator Site Admin


Joined: 05 Oct 2006 Posts: 538 : Location: Israel
Items
|
Posted: Fri Jun 27, 2008 5:26 pm Post subject: |
|
|
Please, before you start to post changes, can you write a short description of what does it make? and why do wee need this changes? _________________ PHP forever, ASP must die! |
|
| Back to top |
|
 |
| |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|