25 Commits

Author SHA1 Message Date
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
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
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
Bianca Nenciu
3fc872520e
FIX: CodeFund is shutting down (#85) 2020-07-10 18:09:32 +03:00
discoursehosting
19f0457e8c AdButler support (#80) 2019-09-16 14:26:17 -04:00
Neil Lalonde
1bd80e1afe FEATURE: House Ads
Allows creating ads within Discourse admin at Plugins > House Ads.
Write the ads in html and style them with CSS in themes.
2019-05-03 11:39:34 -04:00
Neil Lalonde
5272995e74 FEATURE: use groups to control who sees ads 2019-05-03 11:39:34 -04:00
Neil Lalonde
369d5dfc9e oops revert again "FEATURE: use groups to control who sees ads" and all later" 2019-04-17 16:02:19 -04:00
Neil Lalonde
e6bcd96d8e FEATURE: use groups to control who sees ads" and all later 2019-04-17 15:40:50 -04:00
Neil Lalonde
50d258dc37 Revert "FEATURE: use groups to control who sees ads" and all later
Revert "Updates to codefund-ad"
Revert "Updates to carbonads-ad"
Revert "Updates to amazon-product-links"
2019-04-17 15:37:09 -04:00
Neil Lalonde
4fd7caffd6 FEATURE: use groups to control who sees ads
A new setting has been added in Admin > Settings > Ad Plugin called
"no ads for groups". Add group names to this list. If a user belongs
to any of the groups, they will not see any ads. This is an alternative
to using trust level settings like "adsense through trust level".
2019-04-17 11:36:50 -04:00
Diego Barreiro
c5272db7f3 UX: Init Carbon Ads 2019-04-15 11:54:18 -04:00
Claas Augner
79e6bd533a
locale: fix AdSense case
Source: https://www.transifex.com/discourse/discourse-org/translate/#de/$/117024429
2018-11-20 18:58:23 +01:00
Neil Lalonde
a74f737880 add Ad Manager to the name 2018-08-23 10:08:18 -04:00
Eric Berry
1cd33da722 Add CodeFund 2018-06-07 17:17:19 -06:00
Neil Lalonde
cf77b9fdc5 The ADVERTISEMENT label can be translated and customized from admin 2018-01-08 13:54:21 -05:00
vi
335b7cd8dc Merged amazon with master 2015-09-18 10:46:14 +10:00
vi
cc2572e3f1 Added working product links 2015-09-16 11:44:31 +10:00
Sarah Ni
2d752d8b2f basic amazon product link inputs added and works 2015-09-10 22:48:14 +10:00
Ladydanger
f4a5c095be Polished up working in server.yml, fixed missing dfp on ad sizes, started french translation 2015-09-10 17:07:11 +10:00
Sarah Ni
647eecd95b master - more consistent naming for dfp settings and removed test folder 2015-09-10 12:07:36 +10:00
Sarah Ni
dbb7d1a784 Refactored trust levels 2015-09-02 13:50:47 +10:00
vi
d179ed4fe9 Successfully merge with bug in cmd push 2015-08-25 14:30:23 +10:00
Sarah Ni
49b89e90a8 post-bottom additions and test.hbs 2015-07-30 11:05:33 +10:00
vi
21362c7632 Transfer files from Discourse plugin to here 2015-07-24 14:01:47 +10:00