Hi,
This is the situation:
I’d like to allow users to add an youtube/vimeo/slideshare-embed to their profile. The problem is: profile fields don’t support embed-codes by default.
I already managed to change the following in the source code of the Solspace User Module i’m using.
I changed:
'text_format' => $this->mfields[$key]['format'],
'html_format' => 'safe'into:
'text_format' => $this->mfields[$key]['format'],
'html_format' => 'all'This works great, but only if I add a YouTube-embed-code to a profile using the build-in profile editor in the Admin-panel.
Now I would like to do the same for the profile edit fields which I created in the front-end.
I use this textarea to edit fields:
{exp:user:edit member_id="{member_id}" return = "{path=profielsucces}"}
<textarea name="youtube" rows="5" cols="40">{youtube}</textarea>
{/exp:user:edit}This results in the following (wrong formatted) text on the public profile page:
----> I can't show you guys, because this forum is displaying the source-code correct.. I see these kinds of characters which are not parsed correctly: & lt; & lt; (ASCII? Stands for " < ", needed to open <object tags and <embed tags. Hope this is clear to you.Now I’m looking for the right source template (or another solution) to change this front-end profile edit field to ‘html_format’ => ‘all’
Hopefully someone can trace the needed source-code. Thanks!