1. REGISTRATION REQUIREMENTS:

    Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Resolved Advertising space

Discussion in 'Showcase Support' started by Malchishka, May 16, 2019.

  1. Malchishka

    Malchishka New Member Showcase

    Hello!
    Is it possible to add ads after a large photo, section 1-5, location? It would be a very good update and a gift for webmasters :)
     
  2. Bob

    Bob Developer Staff Member

    XF2 has a built in advertising system. One of the neat functions that is included with it, is the ability to create your own custom Advertising positions (via the Development section) that you can then add those custom advertising positions were ever you want to (for instance, the places you mention).

    Selection_992.png

    For the most basic use, you might create a custom position titled "Showcase: under cover image" with an unique id 'mal_sc_item_view_below_image' <--- just make sure that is unique in your system.

    Note: Do NOT associate this position with an Addon or it will be wiped out when upgrading!

    Then you simply edit the xa_sc_item_view template and add the XF template helper:

    HTML:
    <xf:ad position="mal_sc_item_view_below_image" arg-item="{$item}" />
    You can now navigate to Admin CP >> Setup >> Advertising >> Add advertisement. Clicking on the Position dropdown, you will see the position "Showcase: under cover image" :)

    I currently have no plans to integrate any built in positions as its just way to easy for admins to create their own and place them exactly where they want them.

    Hope that made sense?
     
    Malchishka likes this.
  3. Malchishka

    Malchishka New Member Showcase

    Many thanks for the detailed answer!
     
    Bob likes this.
  4. Malchishka

    Malchishka New Member Showcase

    I created such an ad slot, but after each update it disappears and everything needs to be reconfigured. Can this be somehow avoided?
     
  5. Bob

    Bob Developer Staff Member

    My guess would be that when you created the Advertising position, you set the "Add-on" input to associate with Showcase. You can't do that as you are not the developer of the addon. What that setting is for, is for the Developer of an addon, to associate stuff like Ad positions so that when the XML is generated, it includes things like options, phrases, templates etc.

    What you need to do is NOT set that (so that its NOT associated with any addon or XenForo). This way when you upgrade XenForo or Addons, it doesn't wipe out any custom options, templates, phrase, ad positions, widget positions etc that you have created on your own.

    Selection_905.png
     
    Malchishka likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.