Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • pawanche Friend
    #147306

    How do i add advertisement on the Top of each page and also make the advertisement different for each page.

    Anonymous Moderator
    #328224

    Hi pawanche

    For the case, you have to create new position and then apply a banner module to this position.

    emerich Friend
    #328697

    Hello, i have the same problem. Created a position is a great idea, but ja teline III. has diferrent structured layout and index.php hasnt any JDOC code…please if you may navigate us, where we have to put “new module code”, i will be very greatfull.
    I want to place a banner between logo and headlines/megamenu line.

    Thanks again,
    EMERICH

    micrantha Friend
    #328700

    Hello,
    You have to add a module position to file ja_teline_iii/layouts/blocks/header.php
    Find this code:

    <?php
    $siteName = $this->sitename();
    if ($this->getParam('logoType')=='image'): ?>
    <h1 class="logo">
    <a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $siteName; ?></span></a>
    </h1>
    <?php else:
    $logoText = (trim($this->getParam('logoText'))=='') ? $config->sitename : $this->getParam('logoText');
    $sloganText = (trim($this->getParam('sloganText'))=='') ? JText::_('SITE SLOGAN') : $this->getParam('sloganText'); ?>
    <div class="logo-text">
    <h1><a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $logoText; ?></span></a></h1>
    <p class="site-slogan"><?php echo $sloganText;?></p>
    </div>
    <?php endif; ?>

    Enter your new position here and style it with CSS; for example:

    <?php
    $siteName = $this->sitename();
    if ($this->getParam('logoType')=='image'): ?>
    <h1 class="logo">
    <a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $siteName; ?></span></a>
    </h1>
    <?php else:
    $logoText = (trim($this->getParam('logoText'))=='') ? $config->sitename : $this->getParam('logoText');
    $sloganText = (trim($this->getParam('sloganText'))=='') ? JText::_('') : $this->getParam('sloganText'); ?>
    <div class="logo-text">
    <h1><a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $logoText; ?></span></a></h1>
    <p class="site-slogan"><?php echo $sloganText;?></p>
    </div>
    <?php endif; ?>

    <!-- new position-->
    <?php if($this->countModules('newposition')) : ?>
    <div id="newposition">
    <jdoc:include type="modules" name="newposition" style="xhtml" />
    </div>
    <?php endif; ?>

    Good luck,
    Micrantha

    emerich Friend
    #328705

    Hello micrantha,
    thanks for your help, everything works, module position was created and module was published, but im little bit dummy in css and banner now cower all header of page.
    Please, can you help me, i dont want nothing special, only insert module between logo and headlines line…
    Thanks for any help…
    EMERICH

    micrantha Friend
    #328707

    Hello emerich,
    I cannot help when I don’t see your page and don’t know what you want to do exactly.
    Maybe you can be more precise, or give link to page.

    Regards,
    Micrantha

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

This topic contains 6 replies, has 4 voices, and was last updated by  micrantha 14 years, 10 months ago.

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