ENART.GIGJ.COM
welcome to my space
X
Welcome to:enart.gigj.com
Search:  
NAVIGATION - HOME
broadcast message
Published by: mike 2010-03-12

  • 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 ?


  • 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


  • 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.


  • 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


  • No.


  • Just put a message in your header - that's what I do on VB-World.

    John


  • 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.


  • 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. ;)


  • vB 2.0 only:
    Profile -> Edit Options -> Pop up a box when you receive a Private Message?


  • I cannot found such option "popup a window when received a new PM"


  • Not all members wish to recieve PMs and have it turned off.


  • is there a hack on 1.1.x ?





  • Blank page when attempting to edit templates
    Reasons for WorldPay and vB system not accepting order

    PRINT Add to favorites
  • a bug i think in the view new posts
  • fixed bug v 2 3 0 prior nested auto generated url tags
  • wont fix 2 3 0 announcements not saving settings
  • fixed html characters still show up when editing a users profile
  • bug vb2 x e mail sanity checking flawed
  • fixed 2 3 0 bug regimage php
  • fixed bug when splitting thread
  • fixed 2 3 0 split thread retains original thread s dateline value
  • fixed 2 3 0 final bug email notification subject missing
  • fixed show locked forums
  • database error 1 1 2
  • john i think you should know this
  • fixed how do you post this kind of image

  • any known bug with the loggedin users
  • fixed 2 3 0 password not trim ed for white spaces incorrect error sent
  • set option so users can 039 t delete but text won 039 t update
  • fixed show thread problems if pagenumber exceeds number of actual pages
  • fixed bugs in member php
  • bug or 039 feature 039
  • not fixing 2 2 9 search question
  • extremely minor options bug
  • fixed v2 3 0 prior urls containing will be incorrectly parsed
  • fixed one extra line break for php codes in certain browsers
  • fixed who voted option in admin cp takes 3 minutes to load
  • not confirmed activation id discrepencies
  • fixed v2 3 0 guests who visit search php action getnew are not redirected
  • i found 2 bugs p
  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about broadcast message , Please add it free.

    About us -Site map -Advertisement -Jion us -Contact usExchange linksSponsor us
    Copyright© 2008 enart.gigj.com All Rights Reserved
    Site made&Support support@enart.gigj.com    E-mail: web@enart.gigj.com