Develop a plugin for DISCOURSE, the main objective is to display ads inside a discussion.
Ads will be displayed just like standard posts.
The plugin will store up to 5 different ads.
Ads parameters will be editable in the admin panel of discourse.
DISPLAY RULES :
- ad display will trigger if TOPIC CATEGORY or TOPIC TAGS contains 1 or more of defined terms
- only one ad may display at a specific position, if ad 1 is displayed at the bottom of the topic, ad 2 won't display at the same place
- ad positionning is defined in parameters
- the ad must display exactly like a standard post on discourse
- the ad won't display any "post options" (reply, like...)
- ad is always displayed for anonymous
- ad will have a rank limit for registered users (ie. display for users up to rank 2)
- list of terms
- user profile : the ad will display using the selected user profile
- ad text : meta-code of discourse (bold, italic, links, images ... must work)
- display ranks (0-4) : ad won't display for users of a higher rank
- display mode : after first / URL defined / bottom (multiple choice, if none ad is inactive)
- AFTER FIRST : ad will display as post #2
- URL DEFINED : ad will display under the post specified in URL (if none after first)
- BOTTOM : ad will display as the last post of the topic
Visual specs of admin and display pages : https://firstname.lastname@example.org/FehLKdxC/view