vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Home Enhancements - Simple global announcement (https://vborg.vbsupport.ru/showthread.php?t=101697)

tommykjensen 11-26-2005 10:00 PM

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>
$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

Quote:

Originally Posted by Daniel
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?


Quote:

Originally Posted by Watson
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

Quote:

Originally Posted by Daniel
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

Quote:

Originally Posted by BiReL41r
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? :)


All times are GMT. The time now is 10:29 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
  • Page Generation 0.03164 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete