![]() |
Simple global announcement
Inspired by the Welcome headers hack I wanted to add a simple global announcement that I could turn on and off via the admin cp and change the announcement from acp.
The Dynamic Announcements hack is a bit more than I require so I wrote my own simple global announcement hack. To install import the xml file as a product in the Plugin Manager. Modify template FORUMHOME add $simple_global_announcement where You want the announcement to be placed. I have placed it after $navbar and before <!-- main --> like this Code:
<body> To enable the announcement goto vBulletin options and open settings for "Global annoucement". Here You can enable/disable the announcement and enter the text to display. Change history. 1.1.0 Made the announcement box collapsable Future. I am hoping a new template hook will be added in FORUMHOME just after $navbar so future template edits won't be required to install this. |
EDIT: Having some problems, it's not showing up. I did the template modification and turned it online via the admincp and included a message. Any ideas?
|
Looks pretty cool, however will this interfere with my Geek Banner System?
|
Awesome! Nice and simple, yet effective!
|
Quote:
If You goto the settings are the global announcement then still enabled and the text still there? Quote:
|
Quote:
|
simple :) will be installing.
|
Great hack, but does it interfere if you have the Dynamic Announcement installed aswell?
|
Quote:
|
How can i make it colabsable? :)
|
Quote:
|
sound, I'll try when i get home
|
got it working, but doesnt seem to display on vbadvanced at all. I have put it in the correct templates for both, hmmmm
|
I don't know vbadvanced so can't help there.
|
How can I control visibility by user group? This approach does not appear to work:
Code:
<if condition="$bbuserinfo['usergroupid'] == '23'">Testing permissions</if> |
Quote:
Linky :) |
Tommy; I have a question.
Your original code contains: Code:
<td class="alt1"> So I edited it to: Code:
<td class="alt1"> So can you explain why do you call the username and bbtitle in those phrases? |
So that those phrases can be used inside the actual announcement text if required. But either works.
|
Quote:
I'm sorry for the questions but I'm just curious :D. |
Does anybody know if this works on vB Drupal or how to make it work on it??
|
Quote:
|
Thank you!
|
Tommy; listen!
I love your hack. But I have a question/request. I want to make a copy of this hack on my forums, cause I want to use it two times. But I want the original version not modified. So it can be changed from the admin panel. The second one I want to have it be able to be changed from the MODCPpanel. Is this possible and how can I do it? |
Will this work site-wide? Instead of just inside the forumhome?
|
Quote:
Sorry about the late response. I haven't been around for a while. I guess You could do that if You want to. You would need to create a new xml file with a different name. Then You would need to change all references, names etc so the to plugins do not use the same. Not really easy to explain. Alien, yeah I guess You could use it anywhere You like since the variable is global. I have not tried but see no reason why it shouldn't work. |
Is this hack working with 3.6.1?
|
I think it will but have not tested it as I have not had a lot of spare time.
|
3.6 compatible?
|
I will see if I can get it tested on 3.6.5 soon.
|
Thank YOU!
|
Sorry for the long wait. I have just upgraded my test forum to 3.6.6 and tested simple global annoncement at the same time and it works with no changes.
(I have asked a moderator to move the thread to 3.6.x forum so I can update the thread with the correct version number). |
Moved.
|
Thanks Paul.
Now also tested to work with 3.6.7. |
Thank you!
|
Question : I installed this, it's working fine, however when I try to use bbcode to make a url link that says (for example) click here it wont create a link and the bbcode shows up,. What am I doing wrong?
|
Quote:
use an anchor tag, and it works fine for a link. <A href="URL here">Text msg to show</A> |
awesome thanks!
|
hmmm when i used that tag the box where it should show up is extremely narrow and about a millimeter tall :(
***edited nevermind i was just being an airhead lol i got it... |
Quote:
Quote:
Quote:
Thanks for the link I finnally got around to do this so in version 1.1.0 it is now possible to collapse the announcement. |
thanks for this
|
All times are GMT. The time now is 07:59 AM. |
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:
|