View Full Version : Forum Home Enhancements - Simple global announcement
tommykjensen
11-26-2005, 10:00 PM
Inspired by the Welcome headers (https://vborg.vbsupport.ru/showthread.php?t=99579) 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 (https://vborg.vbsupport.ru/showthread.php?t=97073) 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
<body>
$header
$navbar
$simple_global_announcement
<!-- main -->
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.
Daniel
11-27-2005, 03:48 PM
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?
Watson
11-27-2005, 04:53 PM
Looks pretty cool, however will this interfere with my Geek Banner System?
MoMan
11-27-2005, 05:14 PM
Awesome! Nice and simple, yet effective!
tommykjensen
11-27-2005, 05:16 PM
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?
Hmm, strange. You loaded the xml file via plugin manager, edited the template FORUMHOME? Can You post a few lines from that template around where You made the change?
If You goto the settings are the global announcement then still enabled and the text still there?
Looks pretty cool, however will this interfere with my Geek Banner System?
I don't know that banner system so I don't know if it will interfere.
puertoblack2003
11-27-2005, 05:41 PM
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?
also check your template if you have more then one beside the default you have to make changes to each template in nav bar... :ermm:
-=Sniper=-
11-27-2005, 05:56 PM
simple :) will be installing.
BiReL41r
11-27-2005, 09:08 PM
Great hack, but does it interfere if you have the Dynamic Announcement installed aswell?
tommykjensen
11-28-2005, 07:07 AM
Great hack, but does it interfere if you have the Dynamic Announcement installed aswell?
I don't know, but I don't think so. I have not installed Dynamic Announcement installed.
Hexemer
11-29-2005, 07:06 PM
How can i make it colabsable? :)
puertoblack2003
11-29-2005, 07:12 PM
Great hack, but does it interfere if you have the Dynamic Announcement installed aswell?
so far i have both installed and no problem to report :rolleyes:
bigmonay2k
11-30-2005, 05:35 PM
sound, I'll try when i get home
DWard
11-30-2005, 09:00 PM
got it working, but doesnt seem to display on vbadvanced at all. I have put it in the correct templates for both, hmmmm
tommykjensen
12-01-2005, 06:40 AM
I don't know vbadvanced so can't help there.
silurius
12-24-2005, 11:10 PM
How can I control visibility by user group? This approach does not appear to work:<if condition="$bbuserinfo['usergroupid'] == '23'">Testing permissions</if>Collapsibility would also be awesome.
Julie
12-25-2005, 12:01 AM
How can i make it colabsable? :)
Take a look at this thread:
Linky (http://www.vbulletin.com/forum/showthread.php?t=125419&highlight=collapse+section)
:)
Eagle Creek
01-03-2006, 11:50 PM
Tommy; I have a question.
Your original code contains:
<td class="alt1">
<phrase 1="$bbuserinfo[username]" 2="$vboptions[bbtitle]">$vboptions[globalannouncementtext]</phrase>
</td>
But with this use, the announcement lay-out gots f*cked up when I use a table with a picture and text.
So I edited it to:
<td class="alt1">
$vboptions[globalannouncementtext]
</td>
and that works PERFECT!
So can you explain why do you call the username and bbtitle in those phrases?
tommykjensen
01-07-2006, 02:58 PM
So that those phrases can be used inside the actual announcement text if required. But either works.
Eagle Creek
01-07-2006, 07:42 PM
So that those phrases can be used inside the actual announcement text if required. But either works.
Do you mean when I would use the {1} and {2} 'things"?
I'm sorry for the questions but I'm just curious :D.
The Chief
01-08-2006, 11:55 PM
Does anybody know if this works on vB Drupal or how to make it work on it??
tommykjensen
01-12-2006, 03:48 PM
Do you mean when I would use the {1} and {2} 'things"?
I'm sorry for the questions but I'm just curious :D.
Yep and thats ok :-)
Eagle Creek
01-12-2006, 09:07 PM
Thank you!
Eagle Creek
02-26-2006, 08:11 PM
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?
Alien
03-04-2006, 05:07 PM
Will this work site-wide? Instead of just inside the forumhome?
tommykjensen
07-11-2006, 04:33 PM
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?
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.
Eagle Creek
09-28-2006, 10:47 AM
Is this hack working with 3.6.1?
tommykjensen
10-01-2006, 03:57 PM
I think it will but have not tested it as I have not had a lot of spare time.
Eagle Creek
04-19-2007, 01:34 PM
3.6 compatible?
tommykjensen
04-23-2007, 03:00 PM
I will see if I can get it tested on 3.6.5 soon.
Eagle Creek
04-23-2007, 08:34 PM
Thank YOU!
tommykjensen
05-13-2007, 06:26 PM
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).
Paul M
05-14-2007, 04:13 PM
Moved.
tommykjensen
05-16-2007, 05:53 AM
Thanks Paul.
Now also tested to work with 3.6.7.
Eagle Creek
05-16-2007, 10:26 AM
Thank you!
marlena
05-25-2007, 11:50 PM
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?
scan-pa
05-25-2007, 11:57 PM
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?
use an anchor tag, and it works fine for a link.
<A href="URL here">Text msg to show</A>
marlena
05-26-2007, 12:12 AM
awesome thanks!
marlena
05-26-2007, 12:15 AM
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...
tommykjensen
05-28-2007, 03:28 PM
How can i make it colabsable? :)
How can I control visibility by user group? This approach does not appear to work:<if condition="$bbuserinfo['usergroupid'] == '23'">Testing permissions</if>Collapsibility would also be awesome.
Take a look at this thread:
Linky (http://www.vbulletin.com/forum/showthread.php?t=125419&highlight=collapse+section)
:)
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.
4x4 Mecca
06-04-2007, 05:13 PM
thanks for this
mrahul
06-06-2007, 07:03 AM
will this work on 3.6.5 or 3.6.4
tommykjensen
06-07-2007, 06:12 PM
Yes this version should.
tommykjensen
07-26-2007, 04:50 PM
Have tested the mod with 3.6.8 and it works ;)
brfrankl
07-27-2007, 02:19 AM
ok, stupid question, but where can I go to actually change the template for the announcement itself (I want to put graphics around it so it matches my forum)
tommykjensen
07-27-2007, 05:40 AM
Styles & Templates->Style Manager->Edit Templates->Global Announcement Templates->simple_global_announcement->Customize
Dannyloski
07-28-2007, 08:07 PM
Simple, but just what I needed (I dont need any of the other stuff the Dynamic Announcements Hack has) ... Glad to see it working on vB 3.6.8 ...
tommykjensen
02-19-2008, 08:01 AM
Question for those that have this installed. Would you still like to use this once 3.7.0 is released ?
3.7.0 has the new highly customizeable Notices so there might not even be a point in having this mod around any longer.
tommykjensen
02-20-2008, 05:00 PM
New version for 3.7.0 beta 5 for those that are interested
https://vborg.vbsupport.ru/showthread.php?t=171034
Template edits no longer necesary :-)
RedGTiVR6
03-11-2008, 03:32 PM
ok - I must be blind...because I'm not able to find the Global Announcement area where I can set this to active.
The only place where I see this is under the adminCP: Announcements -> Announcement Manager -> Global Announcements -> New
But it doesn't show up on our forum.
Apparently I'm overlooking something here.
Any help?
tommykjensen
03-15-2008, 08:19 PM
Did you make the template edit ?
SativaGlow
03-30-2008, 08:17 PM
Installed. Nice mod - clean and simple - like it very much!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.