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

How can I change the box display in profiles to in-line display? - ougcNetwork

By default awards are displayed in a box format inside profile pages. To change this display to display awards in-line rather that a box, you only need to edit the templates provided with the plugin. A example modification with a default installation is as follows:

  • []Replace the ougcawards_profile template with the following:
    Code:
    {$awardlist}{$multipage}
    [
    ]Replace the ougcawards_profile_multipage template with the following:
    Code:
    {$multipage}
    []Replace the ougcawards_profile_row template with the following:
    Code:
    {$award['fimage']}
    [
    ]Leave the ougcawards_profile_row_category template empty.
  • Replace the ougcawards_profile_row_empty template with the following:
    Code:
    {$lang->ougc_awards_profile_empty}

After finishing the template modifications, you will need to move the variable {$memprofile['ougc_awards']} within the member_profile template around to display the awards wherever you want. The following preview is just an example of how the end result after editing the templates could be.