Allow ads to be displayed in a non-random order

Created on 15 June 2023, over 1 year ago
Updated 13 September 2024, 3 months ago

Ads are displayed randomly if there is more than one in a given size.

I would like to have a setting for displaying ads not in random order (to avoid frequent repetition), for example, you can remember the ads shown in the session.
The setup itself can be done in the form of a checkbox.

Feature request
Status

Needs work

Version

4.0

Component

ad module

Created by

🇷🇺Russia k.prozorov

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @k.prozorov
  • Status changed to Needs work over 1 year ago
  • 🇷🇺Russia k.prozorov

    Here is a patch that adds the "Turn off random ad selection" checkbox to the /admin/ad page, when the checkbox is enabled, the displayed ads are saved to the session, for the next display it is selected from those that have not yet been shown, if all ads have been shown, then everything starts over.

  • Status changed to Needs review over 1 year ago
  • 🇷🇺Russia k.prozorov

    Fixed drupal code style in previous patch file

  • Status changed to Needs work 3 months ago
  • 🇩🇪Germany Anybody Porta Westfalica

    @k.prozorov could you please provide the patch as MR?

Production build 0.71.5 2024