Home arrow Forum
Home
About
Demo
Forum
FAQ
Live Sites
Feedback

Login





Lost Password?
No account yet? Register
Stay Tuned!
 
Who's Online
We have 3 guests and 4 members online

powered_by Joomla
Duplicate entry \'0\' for key 1 SQL=INSERT INTO jos_fb_whoisonline (`userid` , `time`, `what`, `task`, `do`, `func`,`link`, `userip`, `user`) \n VALUES (\'0\', \'1223335135\', \'Re:Save new field in object data\',\'\',\'\',\'view\',\'/index.php?option=com_fireboard&Itemid=42&func=view&catid=8&id=5302\', \'38.103.63.59\', \'0\')
ME Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Save new field in object data (0 viewing) 
Go to bottom Post Reply Favoured: 1
TOPIC: Re:Save new field in object data
#5072
sharemind (User)
Fresh Boarder
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
Save new field in object data 10 Months, 2 Weeks ago Karma: 0  
Hello,

I am tring to add a new field in the object data.

I need something like the "Living Space", with the field where I can write the square meters.

I have work a lot, and I mahaged to add a new field in the database, to store the data. and the new field is showing in the back-end.

But when I am inserting some numbers in the fiel and I press Save...

... It does not save anything in the database.

I try to find where in the code is the query of UPDATE (so I can add my database field), but I could not find it.

Can anybody help ????

Sharemind
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#5214
sharemind (User)
Fresh Boarder
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
Re:Save new field in object data 9 Months ago Karma: 0  
Up
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#5218
sharemind (User)
Fresh Boarder
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
Re:Save new field in object data 9 Months ago Karma: 0  
Hello,

I have found it!

here is the solution:

crate a new field
in the database in the table 'jos_estateagent' with the name 'test' (type: DECIMAL ; Lenght: 10,2 ; Collaction: - ;NULL: Not Null)


in the language file add this lines:

Code:

DEFINE('_EA_OBJ_TEST','Test'); DEFINE('_EAB_OBJ_TEST','Test');
in the file admin.estateagent.html.php in the folder administrator/components/com_estateagent at line about 400 add a new field, something like this:
QUOTE:
<div class="tr2"> <div class="td1"><b><?php echo _EAB_OBJ_TEST; ?></b></div> <div class="td2"><input type="Text" name="test" size="7" class="inputbox" maxlength="10" value="<?php echo $obj->test; ?>" /> <?php echo $params['measure'];?></div> </div>
in the file class.estateagent.php in the folder administrator/components/com_estateagent at line about 30 add:
QUOTE:
var $test = 0;
at line about 116 add:
QUOTE:
_EA_OBJ_TEST => $this->test,
at line about 186 add:
QUOTE:
if($this->test!=0.00) $this-> test .= " ".$ea_measure;
Hope it can help Bye Bye Sharemind Post edited by: sharemind, at: 2008/01/04 15:54<br><br>Post edited by: sharemind, at: 2008/01/04 15:59
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/03/16 01:16 By sharemind.
  The administrator has disabled public write access.
#5291
j0s3 (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:Save new field in object data 8 Months, 2 Weeks ago Karma: 0  
THANK YOU for posting your workaround in such detail! you've no idea how much this was breaking my head!

much appreciated
jose
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#5302
abraxas (User)
Junior Boarder
Posts: 24
graphgraph
User Offline Click here to see the profile of this user
Re:Save new field in object data 8 Months, 2 Weeks ago Karma: 2  
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop