2007-02-25, 10:55 AM
2007-02-25, 11:57 AM
Hello there
In global.php
find
below it add
Now in the header template add
Now in the themes manager, under Additional CSS
Add the following
In global.php
find
else
{
eval("\$welcomeblock = \"".$templates->get("header_welcomeblock_guest")."\";");
}
below it add
if($mybb->user['uid'] == 0)
{
$guest_note = '<div id="infobar"><a href="LINK_HERE" rel="nofollow">MESSAGE IN HERE......</a></div><br />';
}
Now in the header template add
{$guest_note}
above<DIV id=container>
Now in the themes manager, under Additional CSS
Add the following
body {
margin: 0;
padding: 0;
}
#infobar {
font: message-box;
}
#infobar a, #infobar a:link, #infobar a:visited, #infobar a:active {
display: block;
float: left;
clear: both;
width: 100%;
color: InfoText;
background: InfoBackground;
padding: .45em .3em .45em 2em;
border-bottom: .16em outset;
text-decoration: none;
cursor: default;
}
#infobar a:hover {
color: HighlightText;
background: Highlight;
}
2007-02-25, 12:10 PM
Wow very nice.. and a big thank you too!
2007-02-25, 02:37 PM
Perfect.Its appearing but there is one problem.It is also appearing to registered members how can I remove this for registered members.
2007-02-25, 03:03 PM
ow LOL what a miss alright then..
In global.php
find
below it add
Now in the header template use
instead of the old code above
regards
Previous post updated
In global.php
find
else
{
eval("\$welcomeblock = \"".$templates->get("header_welcomeblock_guest")."\";");
}
below it add
if($mybb->user['uid'] == 0)
{
$guest_note = '<div id="infobar"><a href="LINK_HERE" rel="nofollow">MESSAGE IN HERE......</a></div><br />';
}
Now in the header template use
{$guest_note}
instead of the old code above
<DIV id=container>
regards
Previous post updated
2007-02-25, 03:50 PM
Perfect its working fine now.
2007-03-27, 06:01 AM
Hey,
I wanted to know it we can have something like this below.
Well if you are not able to understand it properly you can check out the site on which I found this.
This is the site.
Give the code required if this is possible.
Tristam
I wanted to know it we can have something like this below.
Well if you are not able to understand it properly you can check out the site on which I found this.
This is the site.
Give the code required if this is possible.
Tristam
2007-03-27, 04:22 PM
But then it was just a bar but here there are images.
2007-03-27, 04:59 PM
Would this work with all browsers?