PeterChen
Member
Hi. I want to modify text area in Profile Post to Rich text Editor
I Edit file \library\XenForo\ViewPublic\Member\view.php
and edit template member_view
But it do not display anything
I do the same thing with personal detail , it display the rich text editor. I cannot explain why the profile post is not display
Help me
I Edit file \library\XenForo\ViewPublic\Member\view.php
Code:
<?php
class XenForo_ViewPublic_Member_View extends XenForo_ViewPublic_Base
{
public function renderHtml()
{
$this->_params['advappheaderTemplate'] = XenForo_ViewPublic_Helper_Editor::getEditorTemplate(
$this, 'message', '',
array('templateName' => 'advapp_wysiwyg')
);
}
}
and edit template member_view
HTML:
<div class="messageInfo">
<!-- OLD CODE -->
<!--<xen:if is="{$visitor.user_id} == {$user.user_id}">
<textarea name="message" class="textCtrl StatusEditor UserTagger Elastic" placeholder="{xen:phrase update_your_status}..." rows="3" cols="50" data-statusEditorCounter="#statusEditorCounter"></textarea>
<xen:else />
<textarea name="message" class="textCtrl UserTagger Elastic" placeholder="{xen:phrase write_something}..." rows="3" cols="50"></textarea>
</xen:if>-->
<!-- MY CODE -->
{xen:raw $advappheaderTemplate}
<div class="submitUnit">
<span id="statusEditorCounter" title="{xen:phrase characters_remaining}"></span>
<input type="submit" class="button primary" value="{xen:phrase post_verb}" accesskey="s" />
<input type="hidden" name="_xfToken" value="{$visitor.csrf_token_page}" />
</div>
</div>
But it do not display anything
I do the same thing with personal detail , it display the rich text editor. I cannot explain why the profile post is not display
Help me
Last edited: