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 1 member 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\', \'1222819210\', \'Zahlenformat Wohn-/Nutzfläche\',\'\',\'\',\'view\',\'/index.php?option=com_fireboard&Itemid=42&func=view&id=5220&catid=9\', \'38.103.63.59\', \'0\')
ME Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Zahlenformat Wohn-/Nutzfläche (0 viewing) 
Go to bottom Post Reply Favoured: 0
TOPIC: Zahlenformat Wohn-/Nutzfläche
#5220
pappenberg (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Zahlenformat Wohn-/Nutzfläche 8 Months, 4 Weeks ago Karma: 1  
Das in der Globalkonfiguration definierte Zahlenformat (z.B. 19.999,00) wird in der Exposéansicht für die Wohn-/Nutzfläche nicht übernommen. Ich habe das Forum nach einer existierenden Lösung hierzu durchsucht und nichts gefunden. Falls es doch schon eine Lösung gibt, teilt mir diese bitte mit und löscht meinen Eintrag.

Hier ein möglicher Lösungsvorschlag:

Änderungen in ../components/com_estateagent/estateagent.html.php:
Zeile 465:
Code:

$tmpl->prepareAttributesHTML('attributes',$obj->filterAttributes());
ersetzen durch:
Code:

/* Stefan Pappenberg 05.01.2008: Zahlenformat wurde nicht mit übergeben. korrigiert. $tmpl->prepareAttributesHTML('attributes',$obj->filterAttributes());*/ $tmpl->prepareAttributesHTML('attributes',$obj->filterAttributes($params['sep1'],$params['sep2']));
Änderungen in ../administrator/components/com_estateagent/class.estateagent.php: Zeilen 89 bis 91:
Code:

function filterAttributes() { $this->prepareAttributes();
ersetzen durch:
Code:

/* Stefan Pappenberg 05.01.2008: Zahlenformate wurden nicht mit übergeben. korrigiert. function filterAttributes() { $this->prepareAttributes();*/ function filterAttributes($sep1,$sep2) { $this->prepareAttributes($sep1,$sep2);
und Zeilen 140 bis 146:
Code:

function prepareAttributes() { global $ea_measure; if($this->space!=0.00) $this->space .= " ".$ea_measure; if($this->homes_size!=0.00) $this->homes_size .= " ".$ea_measure; if($this->pp_size!=0.00) $this->pp_size .= " ".$ea_measure; if($this->trade_size!=0.00) $this->trade_size .= " ".$ea_measure;
ersetzen durch:
Code:

function prepareAttributes($sep1,$sep2) { global $ea_measure; /* Stefan Pappenberg 05.01.2008 Zahlenformat korrigiert von if($this->space!=0.00) $this->space .= " ".$ea_measure; if($this->homes_size!=0.00) $this->homes_size .= " ".$ea_measure; if($this->pp_size!=0.00) $this->pp_size .= " ".$ea_measure; if($this->trade_size!=0.00) $this->trade_size .= " ".$ea_measure; auf:...*/ if($this->space!=0.00) $this->space=number_format($this->space,2,$sep2,$sep1)." ".$ea_measure; if($this->homes_size!=0.00) $this->homes_size=number_format($this->homes_size,2,$sep2,$sep1)." ".$ea_measure; if($this->pp_size!=0.00) $this->pp_size=number_format($this->pp_size,2,$sep2,$sep1)." ".$ea_measure; if($this->trade_size!=0.00) $this->trade_size=number_format($this->trade_size,2,$sep2,$sep1)." ".$ea_measure;
Bin leider kein Programmierer. Also falls jemandem was besseres einfällt, immer her damit. Grüße Stefan Pappenberg http://www.wohnungen-immobilien-makler-berlin.de
 
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