Widget

From Mibbit Wiki
Revision as of 11:23, 3 March 2008 by HerculeP (talk | contribs) (iframe Example: some explanations & minor changes)
Jump to: navigation, search

The embedded widget is in alpha...

example

The basic URL is http://embed.mibbit.com/e/ Please make sure you use embed.mibbit.com and NOT www.mibbit.com.

iframe Example

<iframe width="600" height="380" scrolling="no" frameborder="0"
 src="http://embed.mibbit.com/e/?channel=%23my_chat&nick=choose_one">
loading chat from mibbit.com ...</iframe>
type /nick to change your Nick name, /help, /cs help,
/ns help, /ms help, or /os help for available commands

add these lines onto your web page to have your own chat there. Use any scripting language to avoid nick collisions, e.g.,

...&nick=group_<?php mt_rand(10000, 99999); ?>">

Default Preferences

  • channel = %23chat
  • chatOutputShowTimes = false
  • showJoinsParts = false
  • showAwaysBacks = false
  • chatOutputNickWidth = 90
  • userListWidth = 130
  • focusNewJoins = false

Then, just specify channel and optionally nick.

  • If you do not provide a nick, a random one will be chosen
  • If there is a nick collision, the user will be prompted to choose a new one (IE7 may have issues with prompt

You can override all of these in the URL, using params. You can also override autoAway. ,e.g., &autoAway=0 to disable (case matters)

Generate Form

A form can be used to access the widget easily in a chat window. The form uses 2 following params that the embeddable widget does not yet support:

  • server =
  • pass =

The embeddable widget will soon support these params.

Example form

The form can be configured here