I can't add a fixed leftmenu in SMF

Started by dragon_elder, February 27, 2011, 07:30:12 AM

Previous topic - Next topic

dragon_elder

Hi guys!
I want to add a fixed leftmenu on my SMF Forum, but when I add the menu code I recieve a
Template Parse Error.
The Menu code is:

<div id="menu_esquerre">
<a href="#" onClick="document.getElementById('menu_esquerre').style.visibility='hidden'"><img src="http://muycomputer.com/imgfiles/front/imgs/cerrar.gif" width="8px" height="8px"></a>
<center>We reccomend to use:</center>
<ul id="navigation">
<li><a href="http://www.mozilla-europe.org/es/firefox/">Firefox</li>
<li><a href="http://www.google.es/aclk?sa=l&ai=CNngXp0BqTemoDcz_8QPdxZx1iOXXiALQ57S5EI-z-IwBCAAQASC2VFDK1fbH______8BYNXl1YLcCKABgLGD9gPIAQGqBBhP0FvOvLgaOTKRpEVi3nP-UNTZ0cqEAqCABZBO&sig=AGiWqtzO-tWp4Z9Yamd6gaObaYlCNHTOZg&adurl=http://www.google.es/chrome/%3Finstalldataindex%3Dnosearch%26hl%3Des%26brand%3DCHMA%26utm_campaign%3Des%26utm_source%3Des-ha-emea-es-bk%26utm_medium%3Dha" >Chrome</li>
<li><a href="http://www.opera.com/" >Opera</li>
</ul>
</div>

And the menu style code is:
#menu_esquerre {
border: 2px solid #6C6767;
border-left:none;
-moz-border-radius-topleft:0px;
-moz-border-radius-topright:5px;
-moz-border-radius-bottomright:5px;
-moz-border-radius-bottomleft:0px;
-webkit-border-top-left-radius:0px;
-webkit-border-bottom-left-radius:0px;
-webkit-border-top-right-radius:5px;
-webkit-border-bottom-right-radius:5px;
border-radius:5px;
position:fixed;
margin:0px;
padding:10px;
top:30px;
left:-2px;
background-color:#9E9D9D;
}
#navigation {
list-style:none;
margin:0px;
padding:0;
}
#navigation li {
margin:2px;
padding:2px;
}


Thanks!

PD: Sorry for my english... I'm spanish.

Mari-chi

What file did you add this, and where in that file? I've also added a menu-styled fixed sidebar to my forum, and I added it just before the </body> tag.

dragon_elder

#2
Quote from: Mari-chi on February 27, 2011, 09:05:50 AM
What file did you add this, and where in that file? I've also added a menu-styled fixed sidebar to my forum, and I added it just before the </body> tag.
I added this in the index.template.php file. I don't remember exactly where I added the code...

I've tried to do this before the </body> tag, but I also got the template parse error...

Thank you! ;D

Advertisement: