![]() |
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! :) |
Quote:
|
This may come in handy, thanks for sharing revan :)
|
Installed :D
|
I like the idea of this, i may modify it to my needs but GREAT work.
|
Works like a charm, thanks mate good stuff :D *clicks Install*
|
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.
|
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? |
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. |
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.
|
Bug fixed, and released as v1.5
To upgrade, simply redo a global.php edit. Here's the new code: PHP Code:
|
Nice hack, and easily installed, except for one thing, and it's mainly because of my ignorance. But I'm not to thrilled playing with databases (I'm a buffoon when it comes to databases), so this part of the install, "ALTER TABLE `user` ADD `announcepopup` tinyint(1) NOT NULL DEFAULT '0' ", kind of throws me. I'm fearful of messing around in this without knowing what I'm doing.
Can anyone post a simple way of doing this? I use PHPMYADMIN, and also have no problem working in a terminal on my UNIX based (Apple xserve 10.2 Jaguar server). Thanks! rich PS: Please keep it simple! |
phpMyAdmin >= 2.6.0-pl2 instructions:
Simply click the button on the left saying "SQL", and you will get a javascript window opened where you can paste the query. Now in the top row you will see something like "Choose which database to run query on:" and select whatever your vBulletin database is. Run it, remeber to add a prefix if you use it. :) |
Thanks. Sounds easy, I have no doubt I'll find a way to screw it up though. :)
|
Installed and posted a global message...signed in with different username...no popup although the announcement is in all forums. Using VB3.0.3
|
Question: If I do the alter table thing, is that going to cause me to recieve errors the next time I upgrade vbulletin?
|
Anybody ever try this on 3.0.7?
|
yes, i work on 307, i have tried it!
|
Quote:
I installed on a 3.0.10 Everybody can help please? |
iff got the same prob :S
Quote:
|
All times are GMT. The time now is 12:50 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:
|