Notifications
Clear all

[Closed] [Tutorial] Editor for signature

1 Posts
1 Users
2 Reactions
1,097 Views
Posts: 108
Topic starter
(@hector)
Estimable Member
Joined: 6 years ago

Hello community.

This time I want to share as a tutorial the code that I implement so that forum users can edit the signature, the result is the following:

We go to the path wp-content/plugins/wpforo/wpf-themes/classic, there we open the profile-account.php file, and at the end of this file we place the following php code:

$content = '';
$editor_id = 'member_signature';
$args = array(
'tinymce' => array(
'toolbar1' => 'bold,italic,link,unlink,undo,redo',
'toolbar2' => '',
'toolbar3' => '',
),
);
wp_editor( $content, $editor_id, $args );
?>

Then we start the section as administrator of the forum, and go Forums/settings/Styles, and add the following code:

#qt_member_signature_toolbar {
display:none !important;
}

#wp-member_signature-wrap {
display:none;
}

#wpforo-wrap .wpforo-post .wpforo-post-signature p {
font-size: 19px;
line-height: 28px;
}

#wpforo-wrap .wpf-field .wpf-field-wrap i.mce-ico.mce-i-bold, #wpforo-wrap .wpf-field .wpf-field-wrap i.mce-ico.mce-i-italic, #wpforo-wrap .wpf-field .wpf-field-wrap i.mce-ico.mce-i-link, #wpforo-wrap .wpf-field .wpf-field-wrap i.mce-ico.mce-i-unlink, #wpforo-wrap .wpf-field .wpf-field-wrap i.mce-ico.mce-i-undo, #wpforo-wrap .wpf-field .wpf-field-wrap i.mce-ico.mce-i-redo, #wpforo-wrap .wpf-field .wpf-field-wrap i.mce-ico.mce-i-resize {
font-size: 20px;
}

Ok, It's right. This is all the coding to have an editor in the signature 😀 😀 👍 👍 .

Topic Tags