PDA

View Full Version : broadcast message


adrianmak
10 Feb 2001, 13:46
If I want to shutdown my PC for hardware system upgrade, currently, I just powered off the PC so many online members may suddenly cannot connect to the vB.
So I have an ideas but I don't whether is can work thru web

add a section in the admin control panel say
Send broadcast message

so that administrator can enter a message said " The system will be shutdown in 15 mins", click send


then all vB online members will received this message by a pop-up windows

do php, html, dhtml or some others can do such things ?

10 Feb 2001, 13:48
i hope that we can do this by PM. I am sure that it will be possible to do a message to everyone by PM but doing one to just online users is a good idea i think.

10 Feb 2001, 14:13
Not all members wish to recieve PMs and have it turned off.

10 Feb 2001, 14:22
Just put a message in your header - that's what I do on VB-World.

John

10 Feb 2001, 15:38
Originally posted by PeF
Not all members wish to recieve PMs and have it turned off.

I want this to be able to be over ridden by moderators and admins, if you don't want to do it this way a message in your header is by far the best way.

10 Feb 2001, 23:53
I agree with PeF.
even members turn on PM however some memebers are rare to read their Pm and while they reading forum they will not notice that a new PM received

If if a pop-up window will be displayed is a very good feature

11 Feb 2001, 00:50
In your profile you may choose if you want a popup window when a new PM is recieved or not in vB 2.0. Just give it a try here. ;)

11 Feb 2001, 01:30
I cannot found such option "popup a window when received a new PM"

11 Feb 2001, 01:51
vB 2.0 only:
Profile -> Edit Options -> Pop up a box when you receive a Private Message?

11 Feb 2001, 05:42
is there a hack on 1.1.x ?

11 Feb 2001, 15:38
No.

13 Feb 2001, 10:30
Well, there is one...I made it yesterday and it's not checked for absolute Cross Browser Compatibility yet. The implementation of this Hack isn't perfect yet, too...but it 's doing a fine job here on a vB 1.1.5(Hm, could be done with templates...some lines could be optimized...). This Hack doesn't only add the requested Popup - in the browser window itself, it can be moved or closed, it also changes the routine, the New PM's are counted. The problem I see here is that in the normal PM Hack they are counted based on $bblastvisit...hm, but if I read a New (yet unread) PM it will still show up as New PM in $pmloggedin...So I added an extra Field to fix this problem, it get's 1 - New PM - by default, now if you read the PM this field is set to 0 - Old PM. Now you see only unread PM's as new PM's in $pmloggedin...Because this field has 1 as default you should do a query (update privatercvd set pmnew=0 where pmnew=1) after you've installed my Hack to set all existing PM's to 0.

I've also included a new Option in the profile, so that each Member can choose if he likes to be notified by this Popup when New PM's are there.

So, here are the instructions (hey, forgive me if they are not perfect;)):



Insert new filed in Table privatercvd:

newpm SMALLINT(1),DEAFULT(1)

Insert new Filed in Table user:

usepopup SMALLINT(1),DEFAULT(1)

Now we gotta do some changes on the following files: private.php, member.php und index.php

private.php:

find:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



insert above:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



index.php:

find:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



replace with:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



find:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


insert below:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



member.php:

find (will be found two times, do it for both!!!):


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



insert below:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



find:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



insert:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



find:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



insert:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



find:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



insert below:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



find:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



insert:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



direct below find:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



insert:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Template pmloggedin

find:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



replace with:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Template modifyprofile:

find:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



insert below:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




In your Head include the following script:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




And here's the pic for the close button: http://www.nt-wizards.de/close.gif