Please or Register to create posts and topics.

Add signature to the forum

One of the options.

  1. Install the plugin Advanced Custom Fields
  2. Creating a field in a profile "signature"
  3. Allow users to fill in

Add this code to your themes functions.php file:

add_action('asgarosforum_after_post_message', 'my_function_signature', 10, 1);
function my_function_signature($author_id) {
    echo '<div class="signature">'.get_user_meta($author_id, 'signature', true).'</div>';
}

Thomas,  No insert code 🙂

 

Hello Yworld,

can you check if the code-editing is working now?

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Ок, working 🙂

Sorry for off-topic

How to enable code-editing in post comments? I have no such button

And how to enable html in posts and comments?

Hello @childledj

For code-editing you can use the following WordPress extensions:

Enlighter – Customizable Syntax Highlighter

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!