MyBB.de Forum
Eigene Profilfelder und Anzeige im CP - Druckversion

+- MyBB.de Forum (https://www.mybb.de/forum)
+-- Forum: Archiv (https://www.mybb.de/forum/forum-57.html)
+--- Forum: MyBB 1.6.x (https://www.mybb.de/forum/forum-58.html)
+---- Forum: Allgemeiner Support (https://www.mybb.de/forum/forum-59.html)
+---- Thema: Eigene Profilfelder und Anzeige im CP (/thread-17456.html)



Eigene Profilfelder und Anzeige im CP - R4M - 10.12.2010

Für folgendes Problem konnte ich noch keine Antwort finden, aber ich vermute das sich jemand darüber schon gestolpert ist. Es geht um die Funktion "Eigene Profilfelder".

Zum Problem:

Ich habe eine Auswahlbox mit mehreren Optionen erstellt und bei der Registrierung ist alles noch in Ordnung. Im Backend wird hier allerdings nichts angezeigt bzw. es wird hier nur "Array" angezigt. Das hat auch zufolge, dass man im Backend kein User-Profil updaten kann.

Wenn ich nur Auswahlbox einstelle sieht alles in Ordnung aus. Aber warum wird bei "Auswahlbox mit mehreren Optionen" im Backend dann nur "array" angezeigt?



RE: Eigene Profilfelder und Anzeige im CP - linwinman - 10.12.2010

Hallo R4M,

ersetze in der Datei ".../admin/modules/user/users.php" (ab ~ Zeile 3634)
PHP-Code:
                $select_options = array();
                
$options = array();
                if(
$search == true)
                {
                    
$select_options[''] = $lang->na;
                }
                
$select_options += explode("\n"$options); 
durch
PHP-Code:
                $select_options explode("\n"$options);
                
$options = array();
                if(
$search == true)
                {
                    
$select_options[''] = $lang->na;
                } 

s. auch > http://dev.mybb.com/projects/mybb/repository/revisions/5188/diff/branches/1.6-stable/admin/modules/user/users.php