What is this?
This will display an information bar across the top of the browser window that appears to be like the Information Bar that is from Windows XP SP2. When the user clicks it they will be sent to the registration page for your forums. This is not a popup.
If the user is logged in then this will not display at all. This only appears on the page for people who are not logged in.
Sorry for my lateness, i saw the rply come through on email
but totally forgot about replying....
Since doing other mods this one no longer works now anyway
Thanks - nice script, however I have found a few problems with it. In firefox there is a horizontal scroll bar, let me tell you why this is.
You have set the links to be 100% in width and ALSO gave them padding. The box model example shows that the total width = Width + margin + padding + border. Therefore firefox sees the width as 100% + PADDING which is why there is a horizontal scrollbar.
I tried adding another element inside the div to handle the padding with no luck I am just explaining to you what the problem is exactly.
Thanks - nice script, however I have found a few problems with it. In firefox there is a horizontal scroll bar, let me tell you why this is.
You have set the links to be 100% in width and ALSO gave them padding. The box model example shows that the total width = Width + margin + padding + border. Therefore firefox sees the width as 100% + PADDING which is why there is a horizontal scrollbar.
I tried adding another element inside the div to handle the padding with no luck I am just explaining to you what the problem is exactly.
Ya, I had noticed the same thing too ... I just never ended up trying to fix it. I've been really busy. I'll try to look into the problem some more. Thanks for reminding me...I probably would have forgotten for good.
Ok, I am pretty sure I fixed it, there was also a Safari issue by not using hex colours for the background. New code below, maybe add it into the main release once your happy with it?
infobar.css
Code:
body {
margin: 0 !important;
padding: 0 !important;
}
/* A fake IE information bar */
#infobar {
font: message-box;
}
/* Please adjust the values if the infobar is not looking good */
#infobar a, #infobar a:link, #infobar a:visited, #infobar a:active {
display: block;
color: #000;
width:100%;
background: #FFFFE1 url(warning.gif) no-repeat fixed .3em .3em;
border-bottom: .16em outset;
text-decoration: none;
cursor: default;
}
#infobar a:hover {
color: #FFF;
background: #3169B6 url(warning2.gif) no-repeat fixed .3em .3em;
}
#infobar p{
margin:0px;
padding: .45em 0em .45em 22px;
font-size:11px;
}
Add the following code in your header (no sound):
Code:
<if condition="($show['guest']) AND (THIS_SCRIPT != 'register') AND (THIS_SCRIPT != 'login')">
<div id="infobar"><a href="http://www.talkski.com/register.php"><p>It appears you have not yet registered with our community. To register please click here...</p></a></div></if>
Note also that there was no need for a table at the top of the site, it can be done fully in CSS, this has been fixed.