![]() |
Newsbar/Announcements
1 Attachment(s)
What is it?
This is a simply yet very effective newsbar that you can display at the top of your forum. You can display 1 or as many as you like and change the colour and border of each one. How to Install? 1. Go to AdminCP --> Styles & Templates --> Your Style --> Edit Templates --> Forum Home Templates --> FORUMHOME 2. Find: Code:
{vb:raw headinclude} Code:
<styletype="text/css"> Code:
.newsbar { background: #D6ECA6; border-top: 2px solid #8DC93E; border-bottom: 2px solid #8DC93E; text-align: center; margin: 10px auto; padding: 5px 20px; font-weight: bold;} 3. Find (in FORUMHOME): Code:
<p id="welcomemessage" class="description">{vb:rawphrase welcome_to_the_x, {vb:raw vboptions.bbtitle}}</p> Code:
<p class="newsbar"><strong>Latest News:</strong> <a href="http://yoursitehere.com/THREADURL" target="_blank">Your Important Announcement Here</a></p> If you want to have multiple just repeat step 3 by placing the same code below. If you want to have multiple that are different colours then you'll need to duplicate the CSS with different class names (say .newsbar_red) and change the CSS colours accordingly. https://vborg.vbsupport.ru/external/2013/07/7.png If you use this please mark as installed :) Support (if any) will be prioritized to those who have this modification marked as installed. Thanks and Enjoy :) |
Thanks, I added the style to my additional.css and not forumhome :)
|
Okay, it should work either way, for this tutorial I put it in the FORUMHOME :)
|
Quote:
Could you explain how please |
Quote:
Just add the style code to the bottom of additional.css with out the tags: Code:
.newsbar { background: #D6ECA6; border-top: 2px solid #8DC93E; border-bottom: 2px solid #8DC93E; text-align: center; margin: 10px auto; padding: 5px 20px; font-weight: bold;} |
oh, I misread the instructions - my mistake.
|
Quote:
Thanks. |
Quote:
|
Quote:
|
all over the shop in vB4.2.0 lol
* uninstalled |
Quote:
Did you place the code in the correct place? Have you made any previous modifications to the required templates? |
I added the code to alternative CSS and added the p class where directed.
All original files on standard vB 4.2.0 template. I dunno lol. It just didn't work. Nothing there at all at one point then just got code in top left above logo. Cheers |
Quote:
So the code should be: Code:
.newsbar { background: #D6ECA6; border-top: 2px solid #8DC93E; border-bottom: 2px solid #8DC93E; text-align: center; margin: 10px auto; padding: 5px 20px; font-weight: bold;} |
Yes I did :)
|
Good work!
Lot of improvements required in instructions. Item 2 is not required for custom styles and the style included in the additional.cs is enough. In Item 3. Mentioned Find and not given where to find? and in the replacement code should add clear instructions to change the url of the users site otherwise 404 error will occur. Also can suggest some good location for that. |
Quote:
|
Quote:
|
Can you help me? This is whats showing for me: (All this was edited in the FORUMHOME template)
http://prntscr.com/1k17hc And these are the codes I have added, like you said to. First I added: Code:
<styletype="text/css"> Code:
<p class="newsbar"><strong>Welcome To RebellionX!</strong> <a href="http://rebellionx.org/forums/showthread.php?2-Welcome-to-RebellionX&p=12#post12" target="_blank">Welcome to RebellionX!</a></p> |
Quote:
If you did then add the CSS to the additional.css template but remove the <style> tags. So the code for the additional.css would be: Code:
.newsbar { background: #D6ECA6; border-top: 2px solid #8DC93E; border-bottom: 2px solid #8DC93E; text-align: center; margin: 10px auto; padding: 5px 20px; font-weight: bold;} |
Any way to make this so that users can make it collapse?
|
If I may suggest something?
Well, this is a really nice idea, I am using it on my forum. However, can I give you some advice about your CSS? I edited the CSS a bit, and I think it looks a lot better like this: Code:
/* Newsbar Announcements - Begin */ If you like my CSS Edits, your more then welcome to add them to your post. Here is a screenshot: https://vborg.vbsupport.ru/external/2014/06/41.png |
All times are GMT. The time now is 05:36 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|