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 use custom templates on a by category or award basis? - ougcNetwork

By default only two templates are included for formatting the award image. These are ougcawards_award_image_class and ougcawards_award_image, for CSS and image awards respectively.

But it is possible to use custom templates on a per category or award basis. To use custom templates instead of the default global templates follow the next steps:

  1. []Go to Home » Manage Awards and add or edit an award.
    [
    ]Under Template Type select the Custom Template (Advanced) option.
  2. Save

Now create a custom template for such award as follows:

  1. []Go to Home » Template Sets » [YOUR THEME] » Add Template and add a new template using the following name schemes:
    • []ougcawards_award_imageX, where X is the award id.
      []ougcawards_award_image_catX, where X is the category id of that
    []Within the templates content you can use any variables available in both the ougcawards_award_image_class and ougcawards_award_image templates. Some examples of such variables are {$mybb->settings['bburl']}, {$award['aid']}, {$award['name']}, and {$award['image']}.