Mibew Messenger Community

Contributions => Plugins, tips, and tricks => Topic started by: maliniaka on February 27, 2009, 01:18:36 PM

Title: Reassign/Transfer chat ownership
Post by: maliniaka 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!
Title: Re: Reassign/Transfer chat ownership
Post by: Inspirer on February 27, 2009, 09:55:54 PM
Great! Thanks.

Goes into the next release.
Title: Re: Reassign/Transfer chat ownership
Post by: techgaia on May 28, 2009, 02:03:31 AM
Wow, very cool. Thanks much for this tip.  ;)
Title: Re: Reassign/Transfer chat ownership
Post by: agentili on May 28, 2009, 02:24:23 AM
so is this already in or do we have to add it?
Title: Re: Reassign/Transfer chat ownership
Post by: Inspirer on May 28, 2009, 09:04:02 AM
Already in 1.6.0