Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • jasonre Friend
    #120374

    How would you go about changing the single header image on the home page to a rotating type image headers?

    Thanks,
    JR

    billtom Friend
    #220543

    Use the [FONT=”Courier New”]Module Header Image [/FONT]instead on a module position – it does what you need.

    1. Go to index.php, line 194: Replace
    [FONT=”Courier New”]<div id=”ja-subhead” style=”background: url(<?php echo “$ja_template_path/images/headers/$ja_headerimg-bg1.jpg”;?>) no-repeat bottom left;”>[/FONT]
    2. Insert code for module position “headerpix” or “user10″
    [FONT=”Courier New”]<div id=”ja-subhead”> <?php mosLoadModules(‘headerpic’, -2); ?> </div>[/FONT]
    3. After installation of mod_headerimage assign it to moduleposition “headerpix”, use parameter for rotating image header

    Good luck!
    Bill

    jasonre Friend
    #220556

    Thanks Bill.
    Is this the same as using the JA Header module that is shown in th Villadi template? Is there a way to implement that module?
    Thanks!

    billtom Friend
    #220559

    Hi,
    I tried out the JA-Header module as well but prefer the “Module header image”.
    If you only need to rotate headers and want to do that with either a javascript or Flash slideshow, you can work with the JA-header module. The procedure is still the same as mentioned above: Assign a module position to the place where you wnat the image to sit, put the module there.

    The mod header image has more features, this module allows to load a image based on the current context of shown content. – you can assign images to current menu status (the page where you are in) and you can use it for one-image-one menu or content position. There are also a lot of options how to do the rotation (fade, wipe, zoom, pan between images, as flash or as static images rotation).

    The way to implement – where to change the code of Rochea’s index.php – is described in my post above.
    Download the header-image from the address above and install it in the module position you have chosen above.

    The configuration is done in modules->site modules->headerimage->set rotating image or set default image. There is a wide way to name your files according to what you want, so you would like to have a look in the description.
    Good luck – Bill

    billtom Friend
    #220562

    Addition:
    I looked at the index.php code of JA Villadi: There is a header-position in
    [FONT=”Courier New”]<?php if( mosCountModules(‘header’) ) {?>
    <div id=”ja-sh” class=”clearfix”>
    <?php mosLoadModules(‘header’, -1); ?>
    </div>
    <?php } ?>[/FONT]
    The User’s guide states that you assign the JA header module to this header position.
    So the remarks above are correct.

    Another difference between the JA-header and mod_header_image is:
    In JA header you assign a directory to the module, put your images there and “here you go!”
    Header_image has rules for naming the images according to what you want.

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

This topic contains 5 replies, has 2 voices, and was last updated by  billtom 17 years, 6 months ago.

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