Please or Register to create posts and topics.

How do I add coding to a thread?

How do I add coding to a thread?

I want to display some PHP coding in my forum thread. But I do not see a code button on my forum as I see here. Where can I get this at?

Uploaded files:
  • code.png

EDIT: sorry, I didn’t realize your screenshot was from Asgaros Forum, and thought you were just missing it.  Does your editing toolbar differ in any other way from that here?

****************

https://asgaros.com/wp-content/uploads/asgarosforum/38267/Screen-Shot-2022-01-16-at-7.47.39-AM.png

Inline code: asgaros-forum-subscription-topic

Block code:

/*
 * Subscribe all to all new topics (not replies to them)
 */
$users = get_users();
foreach ($users as $user) {
  update_user_meta($user->ID, 'asgarosforum_subscription_global_topics', 1);
}
delete_metadata( 'user', 0, 'asgarosforum_subscription_global_posts', '', true );

https://asgaros.com/wp-content/uploads/asgarosforum/38267/Screen-Shot-2022-01-16-at-7.48.47-AM.png

This button is added via the following plugin:

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!