cute messenger - removing the ability to remove and block contacts

Last post 08-14-2007, 2:23 AM by Adam. 3 replies.
Sort Posts: Previous Next
  •  08-13-2007, 10:56 AM 32413

    cute messenger - removing the ability to remove and block contacts

    Adam (or any other support reading)...
     
    For the sake of keeping this short without explaining our reasoning:
     
    Is it possible for us to remove all of the buttons/menus that allow the user to remove or block contacts? I have removed the Control Panel menu from the chat, as well as a few other options.
     
    The ones I cannot get rid of are the "Remove Contact" and "Block Contact" buttons next to the Send File button at the top of the main messaging screen (the screen that opens after you double click a name in your contacts list to send them a message).
     
    I'm guessing this is going to be in one of the .xml files but I can't peg it down.
     
    -------------
     
    Now, if you really want an explanation for why:
     
    We are still tossing around ideas for populating the contact list with all registered users (and not requiring the user to add new contacts, or even giving them the option).
     
    I wanted to try and replace the CuteChatRelation table with a View instead. This would allow us to populate it as necessary without having to make constant SQL queries to add/remove hundreds of contacts.
     
    For the view to work, I need to remove all code that tries to edit CuteChatRelation, which includes blocking & removing users. Working this out is the only reason we have not already purchased the product. Any help you can give me would be greatly appreciated & result in us purchasing the product. If you recall, you told me I could insert my own query by passing an ASP array to Javascript, but that wouldn't work because Cute Messenger requires an array of objects, not just a string array of names.
  •  08-13-2007, 11:17 AM 32414 in reply to 32413

    Re: cute messenger - removing the ability to remove and block contacts

  •  08-13-2007, 12:11 PM 32418 in reply to 32414

    Re: cute messenger - removing the ability to remove and block contacts

    Another note:
     
    I was able to create the view successfully, and it works PERFECT. If I can get rid of the two buttons above, we're ready to rock!!!
     
    At the very least, I need to be able to throw a javascript alert when they are clicked saying this feature isn't enabled. With that, however, we are going to get alot of requests to enabled that feature. We'd rather the users not see it at all.
     
  •  08-14-2007, 2:23 AM 32440 in reply to 32418

    Re: cute messenger - removing the ability to remove and block contacts

    Open CuteSoft_Client\CuteChat\ChatUI_IMChat.xml and remove the following code:
     
          <span id="btn_remove"  class="button" onmouseover="m_over(this);" onmouseout="m_out(this);">
            <img src="[[CuteChatUrlBase]]images/icon_delete.gif" align="absMiddle" />
             [[UI_MENU_RemoveContact]] 
           </span>
            
           <span id="btn_block"  class="button" onmouseover="m_over(this);" onmouseout="m_out(this);">
            <img src="[[CuteChatUrlBase]]images/icon_ignore.gif" align="absMiddle" />
            <span id="span_blocktext">[[UI_MENU_Block]]   </span>
           </span>     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML