[Tutorial] How to add a CSS news bar to your index
#31
If you put it in your header template, it'll be on all pages. You'll also then need to put the CSS in the header template, or maybe headerinclude.
MyReactions - All Plugins

Can you still feel the butterflies?

Free never tasted like pudding.
Reply
#32
(2009-08-02, 07:41 PM)T0m Wrote: How do i make show on all pages?

Look at here on the Global setting.

Thanks for the tip Matt Wink
vBulletin/Wordpress/Magento/MyBB
Developer and Designer
Reply
#33
It doesn't work for me. You can see a what shows up live, over here, my forums.

EDIT: Nevermind, found the problem lol.
Click The Banner!
[Image: Arceus_Electivire_Tag_by_iSoulTouch.png]

Reply
#34
do everytime do i need to add 3-4 diff css if i want more then one text/link

[Image: 2441kao.jpg]

or there is any other way to do it Smile
RolleyesRolleyes
Reply
#35
No, you need as many CSS classes as you want different styles. If you want 3 boxes all in the same style, you only need the one CSS class.
MyReactions - All Plugins

Can you still feel the butterflies?

Free never tasted like pudding.
Reply
#36
I have just spotted a little problem with mine they do not show in FF but fin in IE and chrome. Any ideas?
Reply
#37
What code did you put in?? There's not much to go wrong with a <p> tag and CSS.
MyReactions - All Plugins

Can you still feel the butterflies?

Free never tasted like pudding.
Reply
#38
This is my code

<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}

<!----------------------------------------------------------- Welcome --------------------------------------------------------->
<style type="text/css"> 
.newsbar_welcome {
    background: #FFFFFF;
    border-top: 2px solid #009EC0;
    border-bottom: 2px solid #009EC0;
    border-left: 2px solid #009EC0;
    border-right: 2px solid #009EC0;
    text-align: center;
    margin: 10px auto;
    padding: 5px 20px;
}
</style> 
<!----------------------------------------------------------- Welcome --------------------------------------------------------->

<!----------------------------------------------------------- news bar1 --------------------------------------------------------->
<style type="text/css"> 
.newsbar_1 {
    background: #D9EC9C;
    border-top: 2px solid #90B123;
    border-bottom: 2px solid #90B123;
    border-left: 2px solid #90B123;
    border-right: 2px solid #90B123;
    text-align: center;
    margin: 10px auto;
    padding: 5px 20px;
    font-weight: bold;
}
</style> 
<!----------------------------------------------------------- news bar1 --------------------------------------------------------->


{$metag}
<script type="text/javascript">
<!--
	lang.no_new_posts = "{$lang->no_new_posts}";
	lang.click_mark_read = "{$lang->click_mark_read}";
// -->
</script>
</head>
<body>
{$header}

<!----------------------------------------------------------- welcome --------------------------------------------------------->
<p class="newsbar_welcome"><strong>Welcome to The Autism Network!</strong><br /> 
We are a friendly, positive and informative site.
We have many free resources for special needs teaching & learning. We also have an active forum with many like minded parents and professionals, all willing to share experiences and help.<br /> 
The Autism Network also offers information about Autism and related conditions like ADHD, PDD, PDA etc. please see articles on left slide bar.<br />

<br /> 
Please also check out our sister site<br /> 
<a href="http://www.bid4allneeds.com" target="_blank">Bid4allneeds.com - Buy and sell items for those with special needs</a></p> 
<!----------------------------------------------------------- Welcome --------------------------------------------------------->

<!----------------------------------------------------------- news bar1 --------------------------------------------------------->
<p class="newsbar_1">Our new <a href="http://www.autismnetwork.co.uk/downloads.php">downloads area</a> is now ready for use, come and download free teaching and learning resources!</p> 
<!----------------------------------------------------------- news bar1 --------------------------------------------------------->

{$forums}
{$boardstats}
Reply
#39
Any ideas?
Reply
#40
What are the current colors on the MyBBoard.net ones? All three...
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)