Banner Advert Generator

Banner Advert Generator 1.2.0

No permission to download

Sim

Well-known member
Licensed customer
Sim submitted a new resource:

Banner Advert Generator - Generates simple image-based banner adverts to help you style advert placements

This is a tool for developers who are styling their advert placements.

While working on styling programmatic banner adverts for my site, I got frustrated with adverts that wouldn't display consistently on my dev machine - so I built a tool which generates static advert images (of any size!) for me.

View attachment 230336

This tool is accessed via a template function where you specify the size of the advert and optionally, an id for the div and the colour (if you want to...

Read more about this resource...
 
You'd want to turn off all other adverts while styling things and then you can just swap the ads back once you're done.

That's the nice thing about the XenForo Advertising system - you can create multiple adverts for a single slot and turn them off and on as necessary.

In my case, I've turned off my Google DFP based adverts while I get the styling sorted out using this addon, then I'll turn off the generator ads and turn the DFP ads back on after applying the new styling to them.
 
From my initial testing, this seems to work fine with XF 2.3
 
Still works :)

How would I add an image?

This tool is for helping you refine your layout only - it is not for creating or managing adverts, just their placement.

Once you're ready to display actual adverts in production, you should disable this addon and use whatever mechanism you'd normally use for displaying adverts
 
Sim updated Banner Advert Generator with a new update entry:

v1.2.0 - bugfixes

1.2.0 (2026-09-22)​

  • upgrading from 1.0.0: banner() takes class before colour since 1.1.0 — a template passing a colour as the fourth argument now gets the default colour; pass an empty class instead, as in banner(300, 250, 'top-ad', '', 'red')
  • requires XenForo 2.2.0 or later
  • banner() now escapes its id, class and colour arguments
  • a...

Read the rest of this update entry...
 
Back
Top Bottom