Author Topic: hide the offline button  (Read 8023 times)

0 Members and 1 Guest are viewing this topic.

mjeaves

  • Jr. Member
  • **
  • Posts: 2
hide the offline button
« on: July 03, 2012, 09:32:54 PM »
Hi everyone,

Firstly - love this project - we're moving over from Live Person, which is just way too expensive for what it is.  I'm blown away by just how good webim is.

Anyway...

I've had a go, but break the code, and need a hand! :-)

I want to remove the 'offline' button (so only the 'online' button shows if an operator is online)... so nothing shows if no operator is online....

I've had a look through the forum and can't find a topic about this...

Hope you can help, anyone know what I should do to the button code?:

<!-- webim button --><a href="/webim/client.php?locale=en" target="_blank" onclick="if(navigator.userAgent.toLowerCase().indexOf('opera') != -1 &amp;&amp; window.event.preventDefault) window.event.preventDefault();this.newWindow = window.open('/webim/client.php?locale=en&amp;url='+escape(document.location.href)+'&amp;referrer='+escape(document.referrer), 'webim', 'toolbar=0,scrollbars=0,location=0,status=1,menubar=0,width=640,height=480,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;"><img src="/webim/b.php?i=webim&amp;lang=en" border="0" width="163" height="61" alt=""/></a><!-- / webim button -->

Thanks !  :-)

mjeaves

  • Jr. Member
  • **
  • Posts: 2
Re: hide the offline button
« Reply #1 on: July 03, 2012, 09:40:39 PM »
Just to add to this...

I read and actioned this post, but it did not work, the offline button became a clickable 'missing image'

http://mibew.org/forums/index.php/topic,2745.msg5229.html#msg5229

reysol

  • Jr. Member
  • **
  • Posts: 3
Re: hide the offline button
« Reply #2 on: June 29, 2014, 06:02:39 AM »
This can be obtained using a small trick:
  • create a transparent image (. gif) 1 x 1 px. 
  • replace the image of the button OFF LINE for this eg mibew_off.gif
  • Remove the code attributes width and height of the image (width="163" height="61").
The button will not disappear, but it will be too small to be seen.
It will also be very difficult to locate with the mouse