Warning [2] Undefined array key "display_in_posts" - Line: 268 - File: inc/plugins/myshowcase/forum_hooks.php PHP 8.4.21 (Linux)
  1. errorHandler->error

    /inc/class_error.php:163

  2. errorHandler->error_callback

    /var/www/vendor/sentry/sentry/src/ErrorHandler.php:354

  3. Sentry\ErrorHandler->handleError

    /inc/plugins/myshowcase/forum_hooks.php:268

  4. MyShowcase\Hooks\Forum\showthread_start

    /inc/class_plugins.php:197

  5. pluginSystem->run_hooks

    /showthread.php:473

Display only category name instead of "Required Fields" or "Optional Fields" label. - ougcNetwork

By default the plugin adds a label for profile fields categories in visible in both the User and Moderator control panels.

   

To remove this you will need to edit two templates.

Open the ougcprofiecats_usercp_profile_requiredfields template, find:

Code:
{$lang->profile_required}

Replace with:

Code:
{$category['name']}

The following is more complex, and will only work if you use the Template Conditionals plugin.

Open the usercp_profile_profilefields template, find:

Code:
{$lang->additional_information}

Replace with:

Code:
<if !empty($category['name']) then>{$category['name']}<else>{$lang->additional_information}</if>