advertissement

  • thank you
    that explains how to add a banner to the header, i need to add it on the right of the forums listings, i dont know which template to edit

  • Hello,


    that's exactly, what you want. I've used the header, because that ist the template, that is implemented in all pages in your board ;)

  • Hello,


    okay, but my english is not very well ;)


    Create a folder in the directory "/wcf/images/your-folder-name" - I took the name advertisement-banners.


    Template


    Create a new template with the title "advertisementBox" and this content:

    Code
    <div id="advertisementBox">
    <div class="banner">
    <a href="#"><img src="{@RELATIVE_WCF_DIR}images/advertisement-bannersr/bannername.png" alt="Advertisement" /></a>
    </div>
    </div>



    CSS:
    Put this code into your CSS-Declerations:


    Template edit:
    Edit the template header and search for:


    Code
    {* user messages system*}


    And add below it:

    Code
    {include file=advertisementBox}


    P.S. I hope, you understand it.

  • Hello,

    first of all your english is fine, better than my german :p

    thank you :)


    Replace this:

    CSS
    #advertisementBox {
    width: 500px; /* Customize value */
    height: 100px; /* Customize value */
    background: #ccc;
    border: 1px solid #09f;
    position: relative;
    float: right;
    z-index: 90;
    margin-top: 100px; /* Customize value */
    }


    With:

    CSS
    #advertisementBox {
    width: 500px; /* Customize value */
    height: 100px; /* Customize value */
    background: #ccc;
    border: 1px solid #09f;
    position: absolute;
    right: 50px; /* Customize value */
    z-index: 90;
    margin-top: 100px; /* Customize value */
    }