MyBB.de Forum
HTML in Profilfeldern? - Druckversion

+- MyBB.de Forum (https://www.mybb.de/forum)
+-- Forum: Anpassungen (https://www.mybb.de/forum/forum-47.html)
+--- Forum: Plugin-Diskussionen (https://www.mybb.de/forum/forum-38.html)
+--- Thema: HTML in Profilfeldern? (/thread-1640.html)

Seiten: Seiten: 1 2 3 4 5 6


RE: HTML in Profilfeldern? - StefanT - 16.11.2010

Was für eine Art Profilfeld ist das? Textfeld?


RE: HTML in Profilfeldern? - snoop - 16.11.2010

Jap, hab aber das Profilfeld auch mal in eine Textarea umgewandelt zum testen, hat aber auch nicht hingehaut.


RE: HTML in Profilfeldern? - linwinman - 16.11.2010

Hallo snoop,

nimm die letzte Änderung zurück und ersetze die Zeile
PHP-Code:
        eval("\$customfields .= \"".$templates->get("member_profile_customfields_field")."\";"); 
durch
PHP-Code:
        if($customfield['type'] == "textarea" || $customfield['type'] == "text")
        {
            
$parser_options = array(
                
"allow_html" => 1,
                
"allow_mycode" => 1,
                
"allow_smilies" => 1,
                
"allow_imgcode" => 1
            
);
            
$customfieldval $parser->parse_message($userfields[$field], $parser_options);
        } 
        eval(
"\$customfields .= \"".$templates->get("member_profile_customfields_field")."\";"); 



RE: HTML in Profilfeldern? - snoop - 16.11.2010

Hallo, danke für die Hilfe!

Habe ich gemacht, php spuckt keinen Fehler, die html-Bilder erscheinen aber komischerweise immer noch nicht!


RE: HTML in Profilfeldern? - LieberKerl - 16.11.2010

Huhuu.. Smile

ich wollte mich nur bei Michael und StefanT recht herzlich bedanken...denn ich hatte, was dieses Thema betrifft, das gleiche Problem! Habe es jetzt geschafft, eine Hintergrundmusik einzubauen!

Ihr seid klasse!


RE: HTML in Profilfeldern? - Panicked - 04.06.2012

(16.11.2010, 13:27)linwinman schrieb: Hallo snoop,

nimm die letzte Änderung zurück und ersetze die Zeile
PHP-Code:
        eval("\$customfields .= \"".$templates->get("member_profile_customfields_field")."\";"); 
durch
PHP-Code:
        if($customfield['type'] == "textarea" || $customfield['type'] == "text")
        {
            
$parser_options = array(
                
"allow_html" => 1,
                
"allow_mycode" => 1,
                
"allow_smilies" => 1,
                
"allow_imgcode" => 1
            
);
            
$customfieldval $parser->parse_message($userfields[$field], $parser_options);
        } 
        eval(
"\$customfields .= \"".$templates->get("member_profile_customfields_field")."\";"); 

Ich kram den Fred mal wieder raus.. ^^

Die Änderung hab ich gemacht. Im Profil funktioniert das wunderbar. Aber da ich meine Profilfelder auch im postbit anzeigen lasse, müsste das auch dort funktionieren.
Was muss ich denn da noch ändern, damit das geht?

Grüße.