1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Advertisement Manager [Deleted]

Discussion in 'Add-on Releases' started by Liam W, Jul 6, 2013.

  1. Liam W

    Liam W Well-Known Member

    Liam W submitted a new resource:

    Advertisement Manager - Just like the one in vBulletin... Sort of.

    Read more about this resource...
     
    mono, Renegade and graham_w like this.
  2. Slavik

    Slavik XenForo Moderator Staff Member

    Will it roatate multiple ads in the same location?
     
  3. Liam W

    Liam W Well-Known Member

    No :(
     
  4. Slavik

    Slavik XenForo Moderator Staff Member

    Well, theres a suggestion! :)
     
  5. Liam W

    Liam W Well-Known Member

    Which I am working on right now, just googling a function :whistle:
     
  6. Slavik

    Slavik XenForo Moderator Staff Member


    Will it allow custom templates to be used also?
     
  7. Liam W

    Liam W Well-Known Member

    What do you mean by that?
     
  8. Slavik

    Slavik XenForo Moderator Staff Member

    On my site (link in sig) you'll see we have a "site sponsors" side block. This is a custom template which shows on every page, not just the homepage, so would need to be able to stick ads in there also.
     
    StRonK, DRE and surfsup like this.
  9. Liam W

    Liam W Well-Known Member

    Ah. Then yes, easily. Add a template hook to that template, and then add that hook in the location section. That's how the addon knows where to put the ad - using the template hook.
     
  10. Slavik

    Slavik XenForo Moderator Staff Member


    (y) Nice. I think with some expanded features, this could be very good.
     
  11. Liam W

    Liam W Well-Known Member

    Is it a good time to say I've implemented a system to randomly switch between ad units on each page load?

    EDIT: Oh, damn. It doesn't work properly. Back to the drawing board...

    EDIT1: Oh, stupid mistake. Working ;)
     
    Last edited: Jul 6, 2013
  12. Slavik

    Slavik XenForo Moderator Staff Member


    If by random, you mean balanced then yes :)
     
  13. RobParker

    RobParker Well-Known Member

    Aren't template hooks being deprecated? Would that make a big difference to how this works in the future?
     
  14. Liam W

    Liam W Well-Known Member

    I'll cross that bridge when they're removed :)
     
  15. Cal

    Cal Well-Known Member

    Awesome. I'll use it. My only issue is the template hooks. It asks where you to insert one so your advertisement will show at that place. That's confusing for those of us who have no idea what these template hooks are or where they show up on our themes. Can a tutorial be made perhaps?? :confused:
     
  16. Liam W

    Liam W Well-Known Member

    I think I'll make a drop down of all the standard ones for simplicity.

    And of course keep the custom option :)
     
    Hornstar and Cal like this.
  17. denzil

    denzil Member

    So I presume this would work with banners then? I'm confused how this is supposed to work with banners as advert code. :confused:
     
  18. Liam W

    Liam W Well-Known Member

    You mean banner adverts? It works for any advert, you just need to supply the advert code :p
     
  19. denzil

    denzil Member

    What does the source code look like for a banner advert when I place it in the "Advertisement code" section? Do I just copy-paste the URL straight or do I need to include an href or img? I'm also wondering how people are managing the content for this kind of stuff. CMS?
     
  20. Liam W

    Liam W Well-Known Member

    You put the code that the advertisement provider gives you. All this addon does is add what you put in there to the site as the template is being compiled.
     

Share This Page