Commit Graph

183 Commits

Author SHA1 Message Date
Discourse Translator Bot 21de3a2b10
Update translations (#224) 2024-10-29 15:31:18 +01:00
Discourse Translator Bot 95993e7d93
Update translations (#218) 2024-08-13 16:30:54 +02:00
Discourse Translator Bot da38a4c053
Update translations (#215) 2024-07-31 00:13:50 +02:00
Discourse Translator Bot a38fbd0935
Update translations (#212) 2024-06-25 15:39:10 +02:00
Discourse Translator Bot 81843e8c98
Update translations (#210) 2024-06-04 21:43:55 +02:00
Discourse Translator Bot 114639d2e7
Update translations (#209) 2024-05-31 12:26:24 +02:00
Discourse Translator Bot 6cd52a4966
Update translations (#206) 2024-04-16 17:37:40 +02:00
Isaac Janzen 554f03f3da
FEATURE: Add group and category restrictions to house ads (#205)
# Description

This PR adds the ability to apply **group** and **category** restrictions to a **house ad**.

# What is included
- In order to get the group and category selectors to work within `admin/assets/javascripts/discourse/controllers/admin-plugins-house-ads-show.js` I needed to modernize the file. 
- I dropped the `bufferedProperty` implementation in favor of a vanilla ember approach
- I added `category_ids` and `group_ids` to our house ads model
- I added tests for group / category restrictions
- I added a preview button to display the house ad
- `/site.json` would return a object called `house_creatives` and a list of key value pairs that matched the ad name with the html, like so:
```js
{ AD_KEY: ad.html }
```
I need access to the category ids on the client to conditionally render the house ads so the new format will be: 
```js
{ AD_KEY: { html: ad.html, category_ids: ad.category_ids } }
```

# Screenshots
<img width="658" alt="Screenshot 2024-04-08 at 2 39 22 PM" src="https://github.com/discourse/discourse-adplugin/assets/50783505/b44b386d-65a1-4a2a-a487-d735b13357dd">

# Preview Video

https://github.com/discourse/discourse-adplugin/assets/50783505/6d0d8253-afef-4e15-b6fc-c6f696efd169
2024-04-09 11:54:11 -06:00
Discourse Translator Bot 062efc8a54
Update translations (#202) 2024-02-23 09:42:33 +01:00
Blake Erickson b0c95114ea
FIX: Calculate no ads for groups server side (#200)
If the selected group to not display ads to had its visibility set to
not be visible then this setting wouldn't work correctly because that
group wouldn't be available client side. The change moves that group
check to be server side so that we can correctly see all the groups that
should not see ads.
2024-02-15 14:52:15 -07:00
Discourse Translator Bot 751916b8e3
Update translations (#198) 2024-02-13 16:11:16 +01:00
Blake Erickson 9581367239
FIX: Add exclude groups for each ad platforms (#197)
With the new group system for displaying ads we no longer can check if a
user belongs to a trust level group lower than specified. The other
problem is that ALL users including staff and higher trust levels all
belong to trust level 0. So without this fix if we say that an ad should
be visible to trust level 0 users then it will be shown to all users.

This fix adds a new default setting for each ad platform for excluding
trust level 3, 4, and staff users from being shown ads.

- Make display_groups hidden (they will be removed in a later commit)
- Switch to using only exclude_groups instead of display groups and
  exclude groups
- rename showToDisplayGroups to showXAds for each provider
2024-02-08 19:42:40 -07:00
Blake Erickson 6f8ff34ffa
DEV: Convert TL settings to groups (#195)
* DEV: Convert TL settings to groups

This change converts the TL site settings in this plugin to use groups
instead.

See: https://meta.discourse.org/t/283408

Co-authored-by: Martin Brennan <martin@discourse.org>
2024-01-31 11:04:24 -07:00
Discourse Translator Bot 19ac017dd4
Update translations (#194) 2024-01-16 14:54:13 +01:00
Discourse Translator Bot 5ad841de0b
Update translations (#184) 2023-11-07 21:31:35 +01:00
Discourse Translator Bot 44f49725f8
Update translations (#181) 2023-08-29 15:50:11 +02:00
Discourse Translator Bot 3a89fbdd9a
Update translations (#180) 2023-08-23 09:28:54 +02:00
Discourse Translator Bot 30c49eb50d
Update translations (#178) 2023-08-08 15:42:08 +02:00
Discourse Translator Bot db0097b8f8
Update translations (#175) 2023-07-04 18:13:14 +02:00
Discourse Translator Bot bade14daa0
Update translations (#174) 2023-06-27 16:39:17 +02:00
Discourse Translator Bot d3005f26af
Update translations (#169) 2023-04-11 15:44:40 +02:00
Osama Sayegh c2057a5056
FEATURE: Add per-ad visibility settings for anons and logged-in users (#168)
This commit adds 2 new settings to house ads to control whether an ad is shown to anonymous users and logged in users. Existing ads that were created before this feature will default to true for both settings; i.e., they will remain to be visible to both anonymous and logged-in users, but it will be possible to change the settings. Turning off both settings will effectively disable the ad completely.
2023-04-07 17:56:22 +03:00
Discourse Translator Bot bfd4438b97
Update translations (#167) 2023-02-21 17:11:00 +01:00
Discourse Translator Bot dc48bea931
Update translations (#164) 2022-12-30 17:49:25 +01:00
Discourse Translator Bot ff6b767796
Update translations (#160) 2022-12-28 13:31:54 +01:00
Discourse Translator Bot 116795aff3
Update translations (#159) 2022-11-29 15:35:21 +01:00
Discourse Translator Bot 203eedb915
Update translations (#156) 2022-11-16 11:36:55 +01:00
Discourse Translator Bot f52ac0775f
Update translations (#154) 2022-11-02 15:12:51 +01:00
Discourse Translator Bot f7d9d13de8
Update translations (#152) 2022-10-05 15:31:18 +02:00
Discourse Translator Bot a570a46ad2
Update translations (#150) 2022-09-27 19:07:32 +02:00
Discourse Translator Bot 3b50a509f2
Update translations (#149) 2022-07-26 15:20:46 +02:00
Discourse Translator Bot a4aa6332bb
Update translations (#147) 2022-07-12 17:25:54 +02:00
Arpit Jalan 5901a52dbc
FEATURE: support placing ads between topic list for house ads (#143)
* init

* more

* Pass td and colspan to component

* various fixes for house ads between n topics and add a test

* Make adComponents condition easier to read

Co-authored-by: Jordan Vidrine <jordan@jordanvidrine.com>
Co-authored-by: Penar Musaraj <pmusaraj@gmail.com>
Co-authored-by: romanrizzi <rizziromanalejandro@gmail.com>
2022-07-07 08:53:29 -03:00
Discourse Translator Bot c27f5717e4
Update translations (#144) 2022-07-06 09:14:50 +02:00
Discourse Translator Bot a514c7aee2
Update translations (#142) 2022-06-21 15:25:57 +02:00
Discourse Translator Bot 03ec825e8e
Update translations (#130) 2022-02-14 15:20:25 +11:00
Discourse Translator Bot 58085298f0
Update translations (#128) 2022-01-11 14:20:49 +01:00
Discourse Translator Bot 0d8e33c661
Update translations (#127) 2022-01-04 17:38:54 +01:00
Discourse Translator Bot 713d2951e7
Update translations (#125) 2021-12-28 14:13:16 +01:00
Discourse Translator Bot 0983b26180
Update translations (#124) 2021-12-21 10:10:58 -05:00
Discourse Translator Bot d7c127cc48
Update translations (#115) 2021-08-04 14:14:07 +02:00
Discourse Translator Bot 1741deecfe
Update translations (#109) 2021-05-04 15:18:24 +02:00
Discourse Translator Bot 9e30a576da
Update translations (#107) 2021-04-20 15:31:55 +02:00
Discourse Translator Bot 4ac7779cc9
Update translations (#102) 2021-02-09 14:52:34 +01:00
Discourse Translator Bot 1654937788
Update translations (#100) 2021-01-26 14:51:33 +01:00
Discourse Translator Bot 4131f8403a
Update translations (#96) 2020-11-24 17:24:04 +01:00
Discourse Translator Bot 2390a9d1d9
Update translations (#95) 2020-11-03 10:15:25 -05:00
Discourse Translator Bot c66c651c5b Update translations 2020-10-06 15:21:57 +02:00
Discourse Translator Bot 22dfb3aa5e Update translations 2020-09-22 13:00:22 +00:00
Discourse Translator Bot 3a7e642ae3 Update translations 2020-09-16 10:14:07 +00:00