1. bandidom9
  2. Free Templates / Extensions
  3. Thursday, 01 March 2012
  4.  Subscribe via email
I am working with the Oxygen template, so I would like to know if it is possible tu put a search box at the rigth of the top logo. I know there are no user (module positions) in this area but its'n there a way to work out the css or php or that stuff?
Accepted Answer Pending Moderation
0
Votes
Undo
To create the module position add the following to your templates index.php (../templates/j51_oxygen/index.php) just after <div id="header"> (line91)..

<div id="topsearch">
<jdoc:include type="modules" name="topsearch" />
</div>


You must then style it with the following which you can add to the end of your templates template.css (../templates/j51_oxygen/css/template.css)

#header {
position: relative;
}

#topsearch {
position: absolute;
height:50px;
width:300px;
top:25px;
left:660px;
margin:0;
padding:0;
z-index:99999;
}

#header .search .inputbox {
background:#fff !important;
}


And that should be it. You'll find the position won't be listed in the positions dropdown so simply type it in to create (topsearch).
  1. more than a month ago
  2. Free Templates / Extensions
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Thanks a lot. i will try it. ill let u know :)
  1. more than a month ago
  2. Free Templates / Extensions
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
it worked. thanks a lot
  1. more than a month ago
  2. Free Templates / Extensions
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Hi

I have a problem with new module position. I also wish to add it to the same place as bandidom, and I've done everything you wrote here.
I even added position in templateDetails.xml, but no luck

Is it the same on Joomla 2.5? You mentioned <div id="header"> (line91)..
But on 2.5 template, div header is on line 197

Is it any different, or am I doing something wrong?
  1. more than a month ago
  2. Free Templates / Extensions
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
The above will also work with Joomla 2.5 although line numbers may differ slightly.

Would you have a URl yo your site so we can have a look?

Ciarán
  1. more than a month ago
  2. Free Templates / Extensions
  3. # 5
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Ciaran

url is transports.site11.com

If you wish, I can send you admin pass, it's just a test site

Thanks
  1. more than a month ago
  2. Free Templates / Extensions
  3. # 6
Accepted Answer Pending Moderation
0
Votes
Undo
If you could... you can email them to info@joomla51.com
  1. more than a month ago
  2. Free Templates / Extensions
  3. # 7
Accepted Answer Pending Moderation
0
Votes
Undo
Mail sent.

Thanks
  1. more than a month ago
  2. Free Templates / Extensions
  3. # 8
Accepted Answer Pending Moderation
0
Votes
Undo
That should be ok for you now.

I gotta take the blame for this as I incorrectly called the new module position newsearch rather than topsearch in the end of the above post. I've edited the post so should now be correct.

Ciarán
  1. more than a month ago
  2. Free Templates / Extensions
  3. # 9
Accepted Answer Pending Moderation
0
Votes
Undo
I totally missed that. It couldn't be less simple mistake.
Damn, that weed is good. :laugh:

Thanks Ciaran, will try it later
  1. more than a month ago
  2. Free Templates / Extensions
  3. # 10
Accepted Answer Pending Moderation
0
Votes
Undo
Everything works great.

Thanks a lot ;)
  1. more than a month ago
  2. Free Templates / Extensions
  3. # 11
Accepted Answer Pending Moderation
0
Votes
Undo
I never posted the page. I used it on civis.uprm.edu
  1. more than a month ago
  2. Free Templates / Extensions
  3. # 12
Accepted Answer Pending Moderation
0
Votes
Undo
I haven't line 91 on index.php, the last line is 66.

thanks

I modify Header.php, and template.css now work ok
  1. more than a month ago
  2. Free Templates / Extensions
  3. # 13
Accepted Answer Pending Moderation
0
Votes
Undo
For versions of the Oxygen template under the new framework add after <div id ="header" class="block_holder"> (Line 1) in the templates header.php (../templates/j51_oxygen/php/layouts/header.php)

Ciarán
  1. more than a month ago
  2. Free Templates / Extensions
  3. # 14
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!