vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Global Announcement Popup v1.5 (https://vborg.vbsupport.ru/showthread.php?t=70976)

Revan 10-24-2004 09:00 PM

Global Announcement Popup v1.5
 
As requested by Overlord, here it is. The "Popup At New Global Announcement"!

This hack's function is quite simple. Whenever you add a Global Announcement (IE one that will display in All Forums), all users will see a popup notifying them of this.
(See screenshot)


I won't make it recurring (IE if user clicks Cancel, they get to see the popup again), because it will piss users off.
And I won't have it displaying for Local Announcements (IE announcements that are only displayed in 1 forum) because this would clutter an user's screen if it is an active forum where lots of announcements are made.


Tested and working on 3.0.3, but should work on 3.x.x fine.
Enjoy! :)

Dan 10-25-2004 03:59 PM

Quote:

Originally Posted by Revan
As requested by Overlord, here it is. The "Popup At New Global Announcement"!

This hack's function is quite simple. Whenever you add a Global Announcement (IE one that will display in All Forums), all users will see a popup notifying them of this.
(See screenshot)


I won't make it recurring (IE if user clicks Cancel, they get to see the popup again), because it will piss users off.
And I won't have it displaying for Local Announcements (IE announcements that are only displayed in 1 forum) because this would clutter an user's screen if it is an active forum where lots of announcements are made.


Tested and working on 3.0.3, but should work on 3.x.x fine.
Enjoy! :)

Nice hack looks kinda useful :) Thanks for sharing!

Polo 10-25-2004 04:36 PM

This may come in handy, thanks for sharing revan :)

Blam Forumz 10-25-2004 05:35 PM

Installed :D

SnowBot 10-25-2004 10:40 PM

I like the idea of this, i may modify it to my needs but GREAT work.

Overlord 10-26-2004 01:08 AM

Works like a charm, thanks mate good stuff :D *clicks Install*

Bryan Ex 10-26-2004 03:42 AM

This is perfect! Up to now I've had to edit my navbar template and hard code stuff to ensure it was seen. Thanks for sharing this one.

Overlord 10-27-2004 06:14 AM

Ok, some of my members are receiving a no permision page when they click 'ok' on the announcement. even tho the announcements are global. even super mods are getting the permission denied page.

Any idea what'sc ausing this?

Revan 10-27-2004 06:35 AM

Crap... I know whats causing this...
When I wrote the code to decide what forum the announcement should be in (because you cant just view an announcement, it has to be in a forumid), I queried the forums dbase and ordered by RAND(), so it takes a random forum id.
So if a forum smods cant enter is chosen, the announcement is pwned.

Ill try to fix this when I get home.

Overlord 10-27-2004 10:09 AM

Yeah I see :P I checked the php and saw where you did this, although I don't know php very well, just changing it to link to any specific forum anyone can view would work would it not? if you can alter the code to allow users to just replace whatever is there with their 'news' forums id number or whatever that would be handy.


All times are GMT. The time now is 09:32 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
  • Page Generation 0.03602 seconds
  • Memory Usage 1,728KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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