How can I use custom templates on a by category or award basis?

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.
  2. Under Template Type select the Custom Template (Advanced) option.
  3. 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
  2. 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']}.
Files

There are currently no posts to display. Be the first one to leave a reply.
Stream

« see more

New thread Omar G. 23 Apr, 2025, 4:03 am

Plugin Releases Plugin Online Users List

New reply Omar G. 22 Apr, 2025, 7:35 pm

Plugin Releases Paid Plugin Discord Connect

New thread Omar G. 22 Apr, 2025, 7:35 pm

Plugin Releases Paid Plugin Discord Connect

New reply Omar G. 21 Apr, 2025, 5:36 am

Plugin Releases Plugin Custom Rates

New reply Omar G. 21 Apr, 2025, 5:13 am

Plugin Releases Plugin Pages

New thread Omar G. 21 Apr, 2025, 5:12 am

Plugin Releases Plugin Pages

New reply Omar G. 21 Apr, 2025, 4:31 am

Plugin Releases Plugin Profile Fields Categories

New thread Omar G. 21 Apr, 2025, 4:29 am

Plugin Releases Plugin Profile Fields Categories

New reply Omar G. 21 Apr, 2025, 4:23 am

Plugin Releases Plugin Show In Portal

New thread Omar G. 21 Apr, 2025, 4:20 am

Plugin Releases Plugin Show In Portal



Current time: 9 May, 2025 1:08 pm