Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • pcspieleforum Friend
    #127145

    Hallo!

    How can I add a module next to the searchbar on the right side. If I try to add another modul to the position of searchbar, it’s on the same position – it’s on the searchbar itself.

    I made a screenshot so that you can see my problem!

    Thanks in advance

    Mario


    1. Untitled-1
    redlight_traitor Friend
    #244026

    you have to go into the index.php file for the template and find the code where it shows position ‘user4’, and then just create another position right next to it. you may have to edit the css

    Nam Nguyen Phi Friend
    #244028

    Hi pcspieleforum,
    If you want to add new module next to search bar, you must change some code in index.php and template.css. Step by step:
    1. Open /templates/ja_corona/index.php
    2. Go to line 121, add this code into


    <?php if($this->countModules('user5')) : ?>
    <div id="ja-user5">
    <jdoc:include type="modules" name="user5" />
    </div>
    <?php endif; ?>

    after

    <?php if($this->countModules('user4')) : ?>
    <div id="ja-search">
    <jdoc:include type="modules" name="user4" />
    </div>
    <?php endif; ?>

    3. Open /templates/ja_corona/css/template.css
    4. Go to line: 857, replace

    #ja-subnav {
    background: url(../images/nav-sep2.gif) no-repeat left center;
    left: 223px;
    position: absolute;
    top: 5px;
    }

    by

    #ja-subnav {
    background: url(../images/nav-sep2.gif) no-repeat left center;
    left: 223px;
    position: absolute;
    top: 5px;
    display: none;
    }

    5. Go to end of this file, add this code

    #ja-user5{
    height:20px;
    width: 200px; <-- YOU CAN CHANGE THIS VALUE
    overflow: hidden;
    position: absolute;
    left: 225px;
    bottom: 5px;
    }

    6. Open admin panel of your site, set the module which you need to display next to search bar in position: user5
    That’s all. Goodluck.

    pcspieleforum Friend
    #244052

    Thank you so much for that! If I repeat these steps with user6, can i add another positon there?

    But as i see there is a little problem because you can see the same module on the bottom.

    Nam Nguyen Phi Friend
    #244139

    <em>@pcspieleforum 46917 wrote:</em><blockquote>Thank you so much for that! If I repeat these steps with user6, can i add another positon there?

    But as i see there is a little problem because you can see the same module on the bottom.</blockquote>
    Yes, you can use another position (example: user6) but you must change

    <?php if($this->countModules('user5')) : ?>
    <div id="ja-user5">
    <jdoc:include type="modules" name="user5" />
    </div>
    <?php endif; ?>

    into

    <?php if($this->countModules('user6')) : ?>
    <div id="ja-user5">
    <jdoc:include type="modules" name="user6" />
    </div>
    <?php endif; ?>

    brandon1 JATC
    #244258

    I applied this code in my template and the user5 module is placed where the content is displayed. How do you place it to the right of the search bar?

    redlight_traitor Friend
    #244276

    I believe you have to change the left margin to push it to the right of the search bar. How is it displaying for you right now?

    pcspieleforum Friend
    #244277

    <em>@namnp129 47029 wrote:</em><blockquote>Yes, you can use another position (example: user6) but you must change

    <?php if($this->countModules('user5')) : ?>
    <div id="ja-user5">
    <jdoc:include type="modules" name="user5" />
    </div>
    <?php endif; ?>

    into

    <?php if($this->countModules('user6')) : ?>
    <div id="ja-user5">
    <jdoc:include type="modules" name="user6" />
    </div>
    <?php endif; ?>

    </blockquote>
    I did that and it worked for me!

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

This topic contains 8 replies, has 4 voices, and was last updated by  pcspieleforum 16 years, 7 months ago.

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