Customizing SMF > Modifications and Packages

Regbar warning (Updated for SMF 2.0)

<< < (4/61) > >>

TGB:
ok that seemed to have worked.  now i get an error on line 128:


--- Code: ---128: if($context['user']['is_guest'] && $context['current_action'] != 'register')

129: echo '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td width="100%"><div id="infobar"><a href="' . $scripturl . '?action=register"><p>' . $txt['regbar_text'] . '</p></a></div></td></tr></table>';
--- End code ---

vbgamer45:
Need to see more code above and below

TGB:
here is the entire file,  the error appears on line 124

http://www.dreamcasthaven.com/pix/index.template.php.edit.zip

vbgamer45:
Change

--- Code: ---if($context['user']['is_guest'] && $context['current_action'] != 'register')
echo '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td width="100%"><div id="infobar"><a href="' . $scripturl . '?action=register"><p>' . $txt['regbar_text'] . '</p></a></div></td></tr></table>';
<body style="background-color: #f4f7fa;">';

--- End code ---
To

--- Code: ---<body style="background-color: #f4f7fa;">';
if($context['user']['is_guest'] && $context['current_action'] != 'register')
echo '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td width="100%"><div id="infobar"><a href="' . $scripturl . '?action=register"><p>' . $txt['regbar_text'] . '</p></a></div></td></tr></table>';

--- End code ---

TGB:
perfect.  thank you very much



i have fixed my regbar.css like so:
--- Code: ---/* 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(http://www.dreamcasthaven.com/forum/Themes/default/warning.gif) no-repeat fixed .3em .3em;
border-bottom: .16em outset;
text-decoration: none;
cursor: default;
}

#infobar a:hover {
color: #FFF;
background: #3169B6 url(http://www.dreamcasthaven.com/forum/Themes/default/warning.gif) no-repeat fixed .3em .3em;
}

#infobar p{
margin:0px;
padding: .45em 0em .45em 22px;
font-size:11px;
}
--- End code ---

but still no image

EDIT  the image appears in IE but not FF

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version