test
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • proscenio Friend
    #131861

    hello, I would need help to change the header.
    I would like to insert a new position for a banner.

    enclosed a picture
    excuse for my bad English and I thank those who can help

    Saverio


    1. header-jteline
    John Wesley Brett Moderator
    #264165

    How fluent are you with PHP?

    The reason I ask is that it might be easier for you to insert an image where you want it and then just switch out the image when you need to make a change…rather than creating an entirely new position at that spot.

    It’s doable either way…but if you just need to stick an image there…and not have to use Joomla!’s Banner module function…it will be a LOT easier.

    John.

    proscenio Friend
    #264301

    Thank you for answer.
    in that position must be able to run banner from an external adserver (openx adserver),
    then I have to create a new position to associate the form of banner openx

    know who can give to change the CSS?

    John Wesley Brett Moderator
    #264331

    Hi!

    Okay…here are the steps you need to do what you want.

    First in template.css (line 789)
    Change the height variable which is allowing room for your new banner.


    #ja-header {
    background-color:#FFFFDF;
    height:132px;
    line-height:normal;
    position:relative;
    }

    Add this NEW ID to your template.css (anywhere, doesn’t matter)


    #ja-header-banner {
    margin:0;
    padding:42px 0 0;
    }

    Then
    The in index.php around line 127 ….find the following code and add in the line highlighted in RED. This is your banner. You’ll need to insert the URL for your external banner.


    <?php if ($tmpTools->getParam(JA_TOOL_USER)) { ?>
    <div id="ja-usertools">
    <strong>Text size</strong><?php $tmpTools->genToolMenu($tmpTools->getParam(JA_TOOL_USER)); ?>
    </div>
    <?php } ?>
    </div>
    </div>
    <div id="ja-header-banner"><img src="INSERT BANNER IMAGE" width="728" height="90" align="right" /></div>
    </div>

    </div>
    <!-- END: HEADER -->

    You will have to readjust the size of your logo to allow the new banner position to fit, but this should do what you want.

    Have fun.
    John.

    proscenio Friend
    #264497

    Many many many many thanks.

    Saverio

    bossep Friend
    #264555

    <em>@jbrett 72206 wrote:</em><blockquote>Hi!

    Okay…here are the steps you need to do what you want.

    First in template.css (line 789)
    Change the height variable which is allowing room for your new banner.


    #ja-header {
    background-color:#FFFFDF;
    height:132px;
    line-height:normal;
    position:relative;
    }

    Add this NEW ID to your template.css (anywhere, doesn’t matter)


    #ja-header-banner {
    margin:0;
    padding:42px 0 0;
    }

    Then
    The in index.php around line 127 ….find the following code and add in the line highlighted in RED. This is your banner. You’ll need to insert the URL for your external banner.


    <?php if ($tmpTools->getParam(JA_TOOL_USER)) { ?>
    <div id="ja-usertools">
    <strong>Text size</strong><?php $tmpTools->genToolMenu($tmpTools->getParam(JA_TOOL_USER)); ?>
    </div>
    <?php } ?>
    </div>
    </div>
    <div id="ja-header-banner"><img src="INSERT BANNER IMAGE" width="728" height="90" align="right" /></div>
    </div>

    </div>
    <!-- END: HEADER -->

    You will have to readjust the size of your logo to allow the new banner position to fit, but this should do what you want.

    Have fun.
    John.</blockquote>

    This should be under a sticky with “nifty tips and tricks” together with some others!

    felsimedia Friend
    #264575

    I agree. Bravo Jbrett!

    jooleimon Friend
    #306009

    Hi there.

    I followed your instructions and have a banner inserted in the header as required.

    Now can you please indicate where to change the code so as to have a space between the banner and the header menu.


    1. banner
    kachete Friend
    #307383

    can you help us here and tell us how to put instead of the .swf file a new module in this part of the header so we can manage to put some ramdom banner here please

    help us here

    thanks in advance

Viewing 9 posts - 1 through 9 (of 9 total)

This topic contains 9 replies, has 6 voices, and was last updated by  kachete 15 years, 6 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum