The following warnings occurred:
Warning [2] Undefined array key "pointsview" - Line: 1442 - File: inc/plugins/newpoints/core/hooks.php PHP 8.2.11 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/newpoints/core/hooks.php 1442 errorHandler->error_callback
/inc/class_plugins.php 142 newpoints_blockview
/showthread.php 471 pluginSystem->run_hooks



This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

How can I split awards on lines?
Files
#1
It is possible to break awards display into rows, rather that to display them in a single row.

This plugin ships with various settings, two of them being the following:
  • Maximum Awards in Posts
    Maximum number of awards to be shown in posts. -1 for unlimited. 0 to disable.
  • Maximum Awards Per Line
    Maximum number of awards to be shown in the same line in posts before adding a break tag. Leave 0 to disable.

With the default values for these settings (`4` and `0` respectively) only a maximum of 4 awards will be displayed in posts with no new line breaks. Using this logic, changing the values to `-1` an `5` respectively should display all awards in posts, with a maximum of 5 awards per line.

There is no reason for these settings to fail. However, it is possible that these settings doesn't fit a theme, as the HTML parsing of browsers might break them into new lines under certain conditions, some of these being the width of parent containers as well as the screen dimensions of the device being used, among others.

To adapt the style to fit your theme you will need to edit the `ougcawards_postbit` and `ougcawards_award_image` templates, which might include the addition of CSS code. The specific changes necessary might vary from theme to theme and as such the specific changes are out of the scope of the plugin general support.
Reply