(gelöst) User Profile anpassen und outprinten der Daten aus dem LocationsModul
am 22.06.2011 - 12:49 Uhr in
Hallo zusammen,
ich habe mit
<?php print_r($account)?>
[locations] => Array
(
[0] => Array
(
[lid] => 5
[name] =>
[street] =>
[additional] =>
[city] =>
[province] =>
[postal_code] => 50374
[country] => de
[latitude] => 0.000000
[longitude] => 0.000000
[source] => 0
[is_primary] => 0
[province_name] =>
[country_name] => Germany
)
)
[location] => Array
(
[lid] => 5
[name] =>
[street] =>
[additional] =>
[city] =>
[province] =>
[postal_code] => 50374
[country] => de
[latitude] => 0.000000
[longitude] => 0.000000
[source] => 0
[is_primary] => 0
[province_name] =>
[country_name] => Germany
)Die Daten ausgelesen und will mir gerade ein hübesches Profil zusammensetzen.. Ich bekomme die Ortsangaben nicht dargestellt. Es erscheint einfach NICHTS!
Folgenden Code habe ich in die
<?php
profile_load_profile($account);
// now you can call the profile field like profile_firstname
echo $account->postal_code;
?>Was mache ich falsch???
DANKE!
- Anmelden oder Registrieren um Kommentare zu schreiben

Das muß wohl
am 22.06.2011 - 13:26 Uhr
Das muß wohl lauten
<?phpprofile_load_profile($account);
// now you can call the profile field like profile_firstname
echo $account->location['postal_code'];
?>
Beste Grüße
Werner
Yes, hat geklappt! Super,
am 22.06.2011 - 14:05 Uhr
Yes,
hat geklappt! Super, danke!