Page Index Toggle Pages: 1
Topic Tools
Hot Topic (More than 10 Replies) Global Actual Announcement (Read 4,078 times)
OH Eng
Past Team Members
Documentation Team
Offline



Posts: 4,026
Location: Pensacola, Florida USA
Global Actual Announcement
Jul 16th, 2009 at 2:15am
Post Tools
How hard would it be to make a feature that gave the Admin the ability to make a real-time announcement?  I'm talking about a feature where the Admin would post some text and it gave all online users and connected guests a pop-up containing the text?

For example: "I will be putting the forum in Maintenance Mode in 10 minutes.  Please finish all posts you're working on before then.  Forum will be back online in 30 minutes."

« Last Edit: Jul 16th, 2009 at 2:17am by OH Eng »  

 
Back to top
 
IP Logged
 
Corey Chapman
YaBB Administrator
*****
Offline



Posts: 10,038
Location: Rock Hill, South Carolina

None
Re: Global Actual Announcement
Reply #1 - Jul 16th, 2009 at 3:01am
Post Tools
I would imagine the push to clients would work the same as the instant PM chat feature I suggested and would take just as much server load as that feature (be it a little load or a lot I don't know).
« Last Edit: Jul 16th, 2009 at 3:01am by Corey Chapman »  

Back to top
IP Logged
 
deti
Legacy Dev Team
Development Team
****
Offline



Posts: 2,650
Location: Prien am Chiemsee, Germany
Re: Global Actual Announcement
Reply #2 - Jul 16th, 2009 at 8:25am
Post Tools
Can't you use Broadcast Message instead? It popps up an alert if you go to the BoardIndex.
  

Was immer Du tun kannst
oder erträumst tun zu können,
beginne es.
Kühnheit besitzt Genie,
Macht und magische Kraft.
Beginne es jetzt.
Whatever you can do
or dream you can,
begin it.
Boldness has genius,
power and magic in it.
Begin it now.
J. W. Goethe
Back to top
WWW  
IP Logged
 
OH Eng
Past Team Members
Documentation Team
Offline



Posts: 4,026
Location: Pensacola, Florida USA
Re: Global Actual Announcement
Reply #3 - Jul 16th, 2009 at 12:44pm
Post Tools
Sure you can, but it doesn't do anything until the user goes to the board index.  If the user just began long post, for example documenting changes to a .lng file, that might take a few minutes to complete, and would be lost if the forum went in MM before clicking the post button.  If the pop-up was immediate, they would know in time to save it.


  

 
Back to top
 
IP Logged
 
deti
Legacy Dev Team
Development Team
****
Offline



Posts: 2,650
Location: Prien am Chiemsee, Germany
Re: Global Actual Announcement
Reply #4 - Jul 16th, 2009 at 5:15pm
Post Tools
Hmmm, we could write an AYAX function that looks for a certain HTML file every 30-60 sec. if the user is on a posting-page; and then a script that writes that little file into the public_html directory. Depending on what is written in the file you get the alert or not.
  

Was immer Du tun kannst
oder erträumst tun zu können,
beginne es.
Kühnheit besitzt Genie,
Macht und magische Kraft.
Beginne es jetzt.
Whatever you can do
or dream you can,
begin it.
Boldness has genius,
power and magic in it.
Begin it now.
J. W. Goethe
Back to top
WWW  
IP Logged
 
cepheid
Senior Member
****
Offline



Posts: 516
Re: Global Actual Announcement
Reply #5 - Jul 16th, 2009 at 7:29pm
Post Tools
deti wrote on Jul 16th, 2009 at 5:15pm:
Hmmm, we could write an AYAX function that looks for a certain HTML file every 30-60 sec.

You could, but given how rare it would be for the admin to send a message, let alone while someone is editing a post, it seems like that would just be a lot of bandwidth used for not much gain.

Since the sole purpose of this would be to prevent users from losing their posts, I think a better way to handle this would be for the forum to not just return the "this forum is in maintenance mode" default message, but to return it within the editing screen, which would still contain the user's entry... that way, the user hasn't actually lost anything, although nothing has been submitted.

It's a bit hard to explain but it would work kind of like Preview.  When the user hits Submit or Preview, if the forum is in maintenance mode, they are taken back to the editing screen (kind of like the Preview screen) with the "maintenance mode" message, but with their entry still intact in the editing box, with "submit" and "preview" buttons below, so they can try again.

The code wouldn't actually do any processing on the entry; it would simply return it back to the user as long as the forum is in maintenance mode.

This would ensure that the user doesn't lose anything they've written, but doesn't have to waste bandwidth with an AJAX call.

(The above should also happen for PMs.)

Speaking of pop-ups, though... why do they only occur on the BoardIndex?  Shouldn't they also show up on the ThreadIndex or even while viewing a thread?  At least, for PM pop-ups... not thread notifications.
« Last Edit: Jul 16th, 2009 at 7:30pm by cepheid »  
Back to top
WWW  
IP Logged
 
deti
Legacy Dev Team
Development Team
****
Offline



Posts: 2,650
Location: Prien am Chiemsee, Germany
Re: Global Actual Announcement
Reply #6 - Jul 16th, 2009 at 7:36pm
Post Tools
Good idea cepheid!
But it's not needed to return the post-page. We can also insert the subject and the message in one input and one textarea (readonly) and send this back with the "In Maintenance" message.
  

Was immer Du tun kannst
oder erträumst tun zu können,
beginne es.
Kühnheit besitzt Genie,
Macht und magische Kraft.
Beginne es jetzt.
Whatever you can do
or dream you can,
begin it.
Boldness has genius,
power and magic in it.
Begin it now.
J. W. Goethe
Back to top
WWW  
IP Logged
 
cepheid
Senior Member
****
Offline



Posts: 516
Re: Global Actual Announcement
Reply #7 - Jul 16th, 2009 at 8:04pm
Post Tools
deti wrote on Jul 16th, 2009 at 7:36pm:
But it's not needed to return the post-page.

No, it's certainly not strictly necessary.  I just thought it might be useful because it puts the user back on the proper page to re-submit once MM is done, and there's already code written to display the post-page anyway. Smiley
  
Back to top
WWW  
IP Logged
 
Matt Siegman
YaBB Legends (Inactive)
*
Offline



Posts: 3,380
Location: Wichita, KS
Re: Global Actual Announcement
Reply #8 - Jul 17th, 2009 at 2:10am
Post Tools
I like that idea.
  

-- Matt Siegman 8) Wish List
Back to top
 
IP Logged
 
OH Eng
Past Team Members
Documentation Team
Offline



Posts: 4,026
Location: Pensacola, Florida USA
Re: Global Actual Announcement
Reply #9 - Jul 17th, 2009 at 9:25pm
Post Tools
It is a good idea.. except I'd hate to be the user waiting around on the post page wondering just how long the forum will be in Maintenance Mode.

Nothing says it will be 5 minutes, or 5 days.  Also, nothing tells the user to block copy what's there, save it to text, and come back and try later.  Is there a way to integrate that also, to save reports that "One of my users is unable to post."
  

 
Back to top
 
IP Logged
 
cepheid
Senior Member
****
Offline



Posts: 516
Re: Global Actual Announcement
Reply #10 - Jul 17th, 2009 at 9:50pm
Post Tools
OH Eng wrote on Jul 17th, 2009 at 9:25pm:
Also, nothing tells the user to block copy what's there, save it to text, and come back and try later.

Well, right now nothing says anything, because this feature hasn't been implemented. Smiley  Right now the user just sees "Maintenance Mode" and doesn't get their text back... if they click the Back button, it may still be there, though not guaranteed.

If/when this feature is implemented, there would be a message indicating that the user should copy/save their message.
  
Back to top
WWW  
IP Logged
 
OH Eng
Past Team Members
Documentation Team
Offline



Posts: 4,026
Location: Pensacola, Florida USA
Re: Global Actual Announcement
Reply #11 - Jul 18th, 2009 at 2:14pm
Post Tools
cepheid wrote on Jul 17th, 2009 at 9:50pm:
Well, right now nothing says anything, because this feature hasn't been implemented.


Right.  Suggesting what to include if/when it is.
  

 
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools
 
  « Board Index ‹ Board  ^Top