Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • guidinglight Friend
    #131980

    I am looking to find out how to create a template position or insert a rotating banner at the extreme top of the page similar to this website .

    I know there is ijoomla ad agency but im looking for something simpler like the banners module or if anyone has any suggestions.


    1. top_image
    guidinglight Friend
    #264801

    Any helpers out there

    :p

    Sherlock Friend
    #266586

    Hi guidinglight !
    you can do it following below :
    Open index.php file in templates/ja_teline_ii folder find following code section at about line 90 :


    <!-- BEGIN: HEADER -->
    <div id="ja-headerwrap">
    <div id="ja-header" class="clearfix">

    change it to :


    <!-- BEGIN: HEADER -->
    <div id="ja-headerwrap">
    <!-- BEGIN: BANNER -->
    <div id="ja-banner">
    <!-- add module position -->
    </div>
    <!-- END: BANNER -->
    <div id="ja-header" class="clearfix">

    Menalto Friend
    #266942

    I suggest the following changes to this.

    <!-- BEGIN: HEADER -->
    <div id="ja-headerwrap">
    <!-- BEGIN: BANNER -->
    <div id="ja-banner">
    <!-- add module position -->
    </div>
    <!-- END: BANNER -->
    <div id="ja-header" class="clearfix">

    Into this:

    <!-- BEGIN: HEADER -->
    <div id="ja-headerwrap">
    <!-- BEGIN: BANNER -->
    <div id="ja-banner2">
    <!-- add module position -->
    </div>
    <!-- END: BANNER -->
    <div id="ja-header" class="clearfix">

    And find this in the css file:

    #ja-banner {
    margin: 0;
    padding-top: 15px;
    text-align: center;
    overflow: hidden;
    width: 100%;
    border-top: 1px solid #CCCCCC;
    }

    And change it to to this:

    #ja-banner, ja-banner2 {
    margin: 0;
    padding-top: 15px;
    text-align: center;
    overflow: hidden;
    width: 100%;
    border-top: 1px solid #CCCCCC;
    }

    guidinglight Friend
    #267073

    Thanks Menalto

    I have done what you recommended. Now the question is how do I publish a banner in that position.

    I know it my be a noob question but im know very little about coding.

    Thanks

    Menalto Friend
    #267101

    Then it would be to replace this:

    <!-- BEGIN: HEADER -->
    <div id="ja-headerwrap">
    <!-- BEGIN: BANNER -->
    <div id="ja-banner2">
    <!-- add module position -->
    </div>
    <!-- END: BANNER -->
    <div id="ja-header" class="clearfix">

    With this here:

    <!-- BEGIN: HEADER -->
    <div id="ja-headerwrap">
    <?php if($this->countModules('banner2')) : ?>
    <!-- BEGIN: BANNER -->
    <div id="ja-banner2">
    <jdoc:include type="modules" name="banner2" />
    </div>
    <!-- END: BANNER -->
    <?php endif; ?>
    <div id="ja-header" class="clearfix">

    Then you can publish a banner in module position called “banner2”, open the banner module and where you choose the position you can just type in “banner2” and assign it to the menu items you want it to show up on.

    guidinglight Friend
    #267104

    Thanks Menalto. I get the following error:

    Fatal error: Using $this when not in object context in /home/shiawave/public_html/islamicinsights.com/templates/ja_teline_ii/index.php on line 96

    guidinglight Friend
    #267432

    Any help please. I dont know why it was labeled answered. There is still a problem in the coding.

    Sherlock Friend
    #267468

    Hi guidinglight !
    have you denifed “banner2” postition in templateDetails.xml file ?

    guidinglight Friend
    #267470

    Hi Hainn,

    I did what Manalto told me to above.

    But I have not defined it in the .xml file.

    Thanks

    Menalto Friend
    #267796

    Are you using Joomla 1.0.xx or 1.5?
    The above code i posted is for 1.5
    IF you are using 1.0.xx it should be like this here:

    <!-- BEGIN: HEADER -->
    <div id="ja-headerwrap">
    <?php if (mosCountModules('banner2')) {?>
    <!-- BEGIN: BANNER -->
    <div id="ja-banner2">
    <?php mosLoadModules ( 'banner2', -1 ); ?>
    </div>
    <!-- END: BANNER -->
    <?php } ?>
    <div id="ja-header" class="clearfix">

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

This topic contains 11 replies, has 3 voices, and was last updated by  Menalto 16 years, 3 months ago.

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