Posts Tagged ‘popup’

How to open AVChat 3 in a pop up in Joomla! 1.5

Friday, July 30th, 2010

There are two ways to open the AVChat Video Chat Component in a pop up in Joomla!:

  1. Using Joomla!’s default method:
    • Log in the administrator area of Joomla!.
    • In the Menus area edit the link to AVChat 3.
    • Set the On Click, Open in option to  New Window without Browser Navigation (screenshot below)
    • Click Save.

    joomla_open_popup

    That’s it! Clicking the link in the menu will now open the video chat in a pop up. Using this method however you will not have control over the pop up dimensions

  2. A way that allows you to control the size of the pop up:
    • For this you’ll need to login to your website with an FTP client (FileZilla is our favourite) and go to /components/com_avchat3/
    • Open avchat3.php for editing.
    • Replace the object & embed html tags (everything from <object… to </object>) with this html code:
      <a href="javascript:void(0);" onclick="window.open('/components/com_avchat3/index.swf', 'AVChat', 'menubar=0, resizable =0, width=900, height=650');">Launch AVChat Video Chat</a>

    • Save the file and make sure you upload it back to the web server.

    You can change the size of the pop up by editing the width and height properties in the code above.

How to close the pop-up containing AVChat 3 by clicking the [LeaveChat] button

Friday, April 30th, 2010

When AVChat 3 is opened in a pop up window you can use the [Leave Chat] button to close the pop up window:

  1. edit avc_settings.php or avc_settings.asp
  2. set $avconfig['disconnectButtonEnabled']=1;
  3. set $avconfig['disconnectButtonLink'] = ‘javascript:window.close();‘;

By default clicking [Leave Chat] takes you to a new web page instead of closing the window!

leave_button_screenshot