Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davwheat/flarum-ext-ads
A Flarum extension that provides ad integration (AdSense, or custom providers) for your Flarum forum.
https://github.com/davwheat/flarum-ext-ads
Last synced: 17 days ago
JSON representation
A Flarum extension that provides ad integration (AdSense, or custom providers) for your Flarum forum.
- Host: GitHub
- URL: https://github.com/davwheat/flarum-ext-ads
- Owner: davwheat
- License: mit
- Created: 2021-08-06T00:04:35.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-14T23:49:45.000Z (over 1 year ago)
- Last Synced: 2024-10-13T20:12:19.192Z (about 1 month ago)
- Language: TypeScript
- Homepage: https://discuss.flarum.org/d/28506-davwheat-ad-units
- Size: 1.25 MB
- Stars: 12
- Watchers: 3
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# davwheat Ad Units
![License](https://img.shields.io/badge/license-MIT-blue.svg) [![Latest Stable Version](https://img.shields.io/packagist/v/davwheat/flarum-ext-ads.svg)](https://packagist.org/packages/davwheat/flarum-ext-ads) [![Total Downloads](https://img.shields.io/packagist/dt/davwheat/flarum-ext-ads.svg)](https://packagist.org/packages/davwheat/flarum-ext-ads) ![](https://flarum-badge-api.davwheat.dev/v1/compat-latest/davwheat/flarum-ext-ads)
A [Flarum](http://flarum.org) extension that provides ad unit support for your Flarum forum.
## Special thanks
Thank you to @"alphadot"#36731 and @"MikeJones"#17198 for sponsoring this extension! 🥰
## Installation
Install with composer:
```sh
composer require davwheat/flarum-ext-ads:"*"
```## Updating
```sh
composer update davwheat/flarum-ext-ads:"*"
php flarum migrate
php flarum cache:clear
```## Usage
Head to your admin dashboard and enable the extension. Switch on the Ad Unit locations you'd like, then paste your ad code in the textboxes below.
If you use "between post" ads, make sure to configure the gap between ads in the extension settings page.
> ⚠️ **If you use Google AdSense**, only insert the `` tag into the textbox.
> ⚠️ The text boxes **do not** support `` tags. These scripts will not be executed if you enter them into the text boxes, due to how Mithril functions.
## Links
- [Packagist](https://packagist.org/packages/davwheat/flarum-ext-ads)
- [GitHub](https://github.com/davwheat/flarum-ext-ads)
- [Discuss](https://discuss.flarum.org/d/28506)