Author Topic: Reassign/Transfer chat ownership  (Read 18226 times)

0 Members and 1 Guest are viewing this topic.

maliniaka

  • Jr. Member
  • **
  • Posts: 1
Reassign/Transfer chat ownership
« on: February 27, 2009, 01:18:36 PM »
Hi, My english is not very good, but I try to explain my usefull (as I think) addition to openwebim...

I think that status of operator must be shown, when you try to redirect user to another operator, so, I add some lines  in function get_redirect_links from libs/operator.php:

after line 191

        $link_ = connect  ();
        $row = select_one_row  ("select (unix_timestamp(CURRENT_TIMESTAMP)-unix_timestamp(dtmlastvisited)) as time from chatoperator where operatorid='".$agent['operatorid']."'",$link_);
        mysql_close  ($link_);
        $online_operator = ($row['time'] < $settings['online_timeout']) ? "on" : "off";
       
        $agent_list .= "<li><a href=\"".add_params ($webimroot."/operator/redirect.php",$params)."\" title=\"".topage  ($agent['vclocalename'])."\">".topage($agent['vclocalename'])." - ".$online_operator."</a>";


 Thanks for your work about openwebim! It is realy usefull for me!

Inspirer

  • Mibew Project founder
  • Native
  • *****
  • Posts: 262
    • Mibew Messenger
Re: Reassign/Transfer chat ownership
« Reply #1 on: February 27, 2009, 09:55:54 PM »
Great! Thanks.

Goes into the next release.

techgaia

  • Full Member
  • ***
  • Posts: 12
    • TechGaia Limited
Re: Reassign/Transfer chat ownership
« Reply #2 on: May 28, 2009, 02:03:31 AM »
Wow, very cool. Thanks much for this tip.  ;)

agentili

  • Full Member
  • ***
  • Posts: 15
Re: Reassign/Transfer chat ownership
« Reply #3 on: May 28, 2009, 02:24:23 AM »
so is this already in or do we have to add it?

Inspirer

  • Mibew Project founder
  • Native
  • *****
  • Posts: 262
    • Mibew Messenger
Re: Reassign/Transfer chat ownership
« Reply #4 on: May 28, 2009, 09:04:02 AM »
Already in 1.6.0