-
AuthorPosts
-
April 1, 2008 at 4:34 pm #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
redlight_traitor Friendredlight_traitor
- Join date:
- October 2006
- Posts:
- 211
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 32
- Thanked:
- 8 times in 1 posts
April 2, 2008 at 7:19 am #244026you 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 FriendNam Nguyen Phi
- Join date:
- September 2014
- Posts:
- 248
- Downloads:
- 3
- Uploads:
- 35
- Thanks:
- 20
- Thanked:
- 57 times in 29 posts
April 2, 2008 at 7:30 am #244028Hi 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.April 2, 2008 at 9:39 am #244052Thank 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 FriendNam Nguyen Phi
- Join date:
- September 2014
- Posts:
- 248
- Downloads:
- 3
- Uploads:
- 35
- Thanks:
- 20
- Thanked:
- 57 times in 29 posts
April 3, 2008 at 1:42 am #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; ?>April 3, 2008 at 2:31 pm #244258I 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 Friendredlight_traitor
- Join date:
- October 2006
- Posts:
- 211
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 32
- Thanked:
- 8 times in 1 posts
April 3, 2008 at 5:21 pm #244276I 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?
April 3, 2008 at 5:23 pm #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!AuthorPostsViewing 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
Modul next to searchbar
Viewing 8 posts - 1 through 8 (of 8 total)