Follow up question to -Whisper Admin-user

Last post 05-18-2007, 8:01 AM by swelborn. 2 replies.
Sort Posts: Previous Next
  •  04-25-2007, 8:12 AM 28809

    Follow up question to -Whisper Admin-user

    Adam, about a week ago you explained how I could make the whisper event happen only between the Admin and user, not user to user. You said this:

    Yes. Open CuteSoft_Client\CuteChat\ChatUI.xml and go to line 1693 and post the following code:
     
    if( ! GetMyInfo().IsAdmin )
        this.SetVisible(  false );

    I opened said file, and on like 1693 this is what it shows:

    Line 1692                }
    Line 1693                ]]>
    Line 1694         </Method>


    The code that you gave me, is it suppose to be apart of that Method that is ending and withing the double brackets?

    So the end result would be:

    Line 1692                }
    Line 1693      if( ! GetMyInfo().IsAdmin )
    Line 1694      this.SetVisible(  false );
    Line 1695               ]]>
    Line 1696         </Method>




  •  05-18-2007, 12:28 AM 29793 in reply to 28809

    Re: Follow up question to -Whisper Admin-user

    hi swelborn

    you may want to, under those two lines, add these

    else if (GetMyInfo().IsAdmin)
        this.SetVisible(true);

    as it inits as 'undefined', and gets set to not visible. in order to set it back you need those two lines i've typed.

  •  05-18-2007, 8:01 AM 29799 in reply to 29793

    Re: Follow up question to -Whisper Admin-user

    Thank you ben for the reply. I would probably condense your code and just put:

    else
     SetVisible(true);

    Can you tell me if the placement of that code is correct (my original post)? Since it's been almost a month and tech support hasnt answered it yet.



View as RSS news feed in XML