Hallo,
ich habe es soweit hinbekommen was ich wollte.
Meine PHP und SQL Kenntnisse reichen jedoch noch nicht aus, dass ich mir da einen String generiere, welcher aus der jos_comprofiler zBsp. eine ID ausliest, welche den Marker für google maps anzeigt.
Hier ist der Übeltäter:
PHP-Code:
<?php $badChars = array('&');
$goodChars = array('&');
($this->confData->xmlEncoding) ? $xmlEncoding = $this->confData->xmlEncoding : $xmlEncoding = 'ISO-8859-1';
$info = "<?xml version=\"1.0\" encoding=\"".$xmlEncoding."\"?>\n<xml>\n";
// if($this->confData->communityEnable) {
$info .= '<category id="-3"';
$info .= ' name="Users"';
$info .= ' gicon="'.$this->confData->communityIcon.'"';
$info .= " />\n";
// }
if(count($this->categoryData)) {
foreach($this->categoryData as $catName) {
$info .= '<category id="'.$catName->id.'"';
$info .= ' name="'.$catName->name.'"';
if(is_numeric($catName->description)) $info .= ' gicon="'.$catName->description .'"';
$info .= " />\n";
}?>
Dort wo jetzt der Wert des communityIcons ist, sollte der Wert aus einem communitybuilder field Bsp: cb_googlemapsicon drinnen stehen.
$info .= ' gicon="'.$this->confData->communityIcon.'"';
Wer kann mir da bitte einen Tip geben?
Das Ganze spielt sich in der google_maps.class.php ab
administrator>components>google_maps>google_maps.c lass.php
Vielen Dank im Voraus...
klangfeld
Lesezeichen