Extension talk:Balloons

Documentation
This extension works quite nicely sometimes, but not always in accordance with the documentation, at least not on my wiki.


 * 1) The style parameter controls the text in the browser panel, not in the balloon as the documentation suggests.
 * 2) Some but not all CSS styles seem to work.
 * 3) Wiki tags (some at least) will work if the title=MyElement +   system is used. This allows placing regular wiki image tags in the balloon, and even DPL lists.
 * 4) The width parameter doesn't seem to work at all.

Perhaps I haven't understood the documentation, or there is something wrong with my installation. I've tested the balloon extension on Firefox and Google Chrome.

Thanks for this useful extension.

--C4duser 04:41, 3 September 2008 (UTC)

C4duser:


 * 1) This is the intended behavior.  I made the documentation more specific so this is clear
 * 2) examples?
 * 3) Good to know!
 * 4) This was a bug -- it is fixed in version 0.3

Mckays 14:00, 23 September 2008 (UTC)

No balloons here
No balloons here

Input as per-instructions but nothing

--24.249.248.8 16:58, 21 October 2008 (UTC)

-- I'm sorry it did not work for you and I'd like to help but you need to provide some details like error messages, etc. Contact information would also be helpful. Almost all failure reports turn out to be the result of typos and not following the documention, so code samples and implementation details are helpful in diagnosing the problem. Mckays 23:34, 23 October 2008 (UTC)

tarball corrupted
package tar corrupted.

resolved Mckays 00:29, 16 January 2009 (UTC)

The package was not corrupt but somehow affected by passage through CVS. It is OK now, I think. A .zip archive is also available. You can download the package here:

WBalloons.tar.gz

WBalloons.zip

Balloons in Demo Show Error
Hi, in your demo an error shows up during the second iteration of mousing over the hyperlinked text and images. The error message displays line invalid argument on line 342 character 16. Has this been fixed?

Thanks.

This has been fixed Mckays 00:27, 16 January 2009 (UTC)

as side-effect mouse-selection problems
Ballons work nicely. However, I get problems when I want to select pieces of text. Selecting text by left-mouse-click, keeping button pressed and then moving mouse does not always work anymore. Sometime it does, sometimes it does'nt. This irrespective whether the wiki-page is edited or not. I am using IE7 and mediawiki-1.12.1. When I disable balloons in LocalSettings.php selection works fine again. --194.171.252.100 12:44, 11 March 2009 (UTC)

We have the same promblem.Wait for your resolution Thank you for any help -- Tryflcwiki 09:15, 23 March 2009 (UTC)

I made one change, which seems to work fine in my local installation. The change is in "balloon.js", line 603 " if (!self) return true;" (I replace "false" by "true"). Note that I am not the editor of this extension. I left a note in as well. Let me know if it works for you as well. walfried.veldman@gmail.com --Walfried.veldman 11:14, 6 April 2009 (UTC)

great!it works well in mine. it's very useful for me.thank u! by the way, if this solution has other side-effects,please let me know. thanks. Tryflcwiki 00:53, 7 April 2009 (UTC)

Thanks to all. I fixed this a while back in the non-wiki version but only just added it here. Please advise (mckays@cshl.edu) if your IE text selection gives any problems. Mckays 11:58, 29 August 2009 (UTC)

I recently installed the balloon extension and I am also having this selection issue. I am using Mediawiki 1.15.1, PHP 5.3.0 (apache2handler), MySQL 5.1.37 and Balloons Version $Id: balloon.js,v 1.33 2008/08/22 13:07:04 sheldon_mckay Exp $. The issue occurs in Internet Explorer 7.0.5730.13C). This issue doesnt occur in Mozilla.  I havent tried any of the modifications discussed here, because it says it should be fixed in the base download.  I will check to see if I can fix the issue with the discussed modifications.--198.208.251.22 15:10, 5 August 2010 (UTC)

HTML within a balloon

 * I tried out your balloons extension for MediaWiki and found it to be a very useful tool....


 * There is a way to display HTML within the tag that I had discovered basically because of the same problem sending information to Wiki templates and back again. This was a problem caused by the wiki conversions that occur.

<balloon title="&amp;lt;table border=2&amp;gt; &amp;lt;th colspan&amp;&#35;61;3 bgcolor&amp;&#35;61;lightblue&amp;gt;THIS IS A TABLE&amp;lt;/th&amp;gt; &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;ONE!&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;TWO!&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;THREE!&amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt; &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;FOUR!&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;FIVE!&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;SIX!&amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt; &amp;lt;/table&amp;gt;" style="color:red;font-size:10pt">A TABLE! A TABLE!
 * Utilizing the html character coding for "< &amp;lt;, > &amp;gt; etc."; as an example, was used to create a table within the tag:
 * Code on Wiki page looks like this:
 * This will be converted successfully for the balloon tag when page is rendered:
 * Its a bit messy looking; however, this does work in IE7, FF, and Google Chrome....
 * not all html is allowed in a Wiki though that can be easily changed if need be.

Wjk 21:46, 3 May 2009 (UTC) Reply: Thanks for the feedback. You are quite correct that formatted HTML can be inserted as an attribute to the &lt;balloon&gt; element using HTML escape codes. However, it does not scale well and gets really nasty for complex content. I would recommend the load: syntax, which allows you to use regular HTML and be as fancy as you like, within the limits imposed by MediaWiki. Also see the documentation for balloon.js Mckays 11:51, 29 August 2009 (UTC)
 * here is a screenshot of wjk's table: http://gyazo.com/768b61d5782b7c4c1bb788acf16c3165.png
 * the gmod.org page is really difficult to understand. i see no one can edit it either.
 * "The API is fairly simple. Simply add a mouseover event handler to any HTML element you want to fire a tooltip."
 * Where does this mouseover event handler to any HTML element go? Is this information not for wikis? Can I use it for my wiki?
 * Why is it everytime I see the word "simple" and "easy" by programmers it never is?
 * the basic extension is so easy to use, which I am very grateful for, but anything beyond basic text balloons is extremely difficult to understand. Igottheconch 01:10, 30 September 2011 (UTC)

Version number
The version number is still "0.1" in your "0.3" code. The Special:Version will show 0.1 only.

Fixed. Thanks. Mckays 11:49, 29 August 2009 (UTC)

Still supported?
I have some fairly serious issues getting this to work, although I may be exceeding the scope of the extension. Is anyone still supporting this? If so I'll give a lot of details, if not I'll save the keystrokes :) -- 85.214.55.250 00:49, 31 July 2009 (UTC)

Yes. still supported. Email is the best method for feedback, I do not monitor this page in a regular basis. mckays@cshl.edu Mckays 11:48, 29 August 2009 (UTC)

Use on Mediawiki.org
How do I get this to work on a wiki hosted on mediawiki.org itself? 211.30.244.97 23:53, 12 March 2010 (UTC)

Compatibility with Semantic Forms
I use Semantic Forms and found that there is a compatibility issue. Basically, forms to edit the page are constructed without including the necessary Balloon extension javascript files. To resolve this issue, I added the following text to line 150 of \extensions\SemanticForms\includes\SF_Utils.inc as follows:

$wgOut->addScript(' ' . "\n"); $wgOut->addScript(' ' . "\n"); $wgOut->addScript(' ' . "\n"); $wgOut->addScript('' . "\n" . 'var balloon = new Balloon;' . "\n" . 'BalloonConfig(balloon);' . "\n" . 'balloon.images  = "' . $wgScriptPath . '/extensions/balloons/images";' . "\n"  . ' ' . "\n");

Kind of a nuclear approach, but it worked for me. Thanks for the great extension. Cheers, Thorncrag 01:01, 29 March 2010 (UTC)


 * Kudos to Thorncrag for this tip! Hade the same problem with semantic forms. Baloons is an great way to make concise semantic forms, because you can add lenghty form guidelines inside balloons.


 * Hi, is there a way to get Balloons working with Semantic Forms 2.0.4? This would be great because this extension provides a great benefit for it. By the way, did you really mean SF_Utils.inc since there is no such file. Instead SF_Utils.php is available there. Any help will be greatly appreciated even if it is a nuclear approach. :) Cheers --kgh 17:37, 19 November 2010 (UTC)


 * Indeed, the change is now actually to SF_Utils.php, I personally have put it on line 156. There is a feature for SF now though that does tooltips (can't tell you much more than that though, sorry).    Thorncrag    02:25, 22 November 2010 (UTC)


 * Hi Thorncrag, thank you for answering. I tried to get this approach running on my wiki, but failed for some reason or the other. 8( It is even more embarrassing for me, that I was not aware that Semantic Forms is now providing a tooltip feature itself which is working perfectly as described and covers existing needs. This really helped my out of my “misery”. :) It might still be interesting to use this extension in conjunction with Semantic Forms. To my experience one should know what she or he is doing. Last, not least: Balloons is awesome! Cheers --kgh 20:57, 22 November 2010 (UTC)

onclick event is not triggerd
I installed the balloons extension and it working partly.

I want to use the onclick mouse event but when i use this it will not be triggered. onmouseover works but onclick has no effect, error on page is displayed in statusline.

How can i use the onclick mouse event?

balloon.js, Uncaught Error: NOT_FOUND_ERR: DOM Exception 8
The following error Uncaught Error: NOT_FOUND_ERR: DOM Exception 8 Balloon.doShowTooltip (balloon.js 353) is shown in Firebug on a Mediawiki 1.16.1 system. The result is that no balloon does not show up. The balloon is used in connection with the display of semantic information:

--MWJames 23:53, 6 February 2011 (UTC)

Create and use small box instead of big balloon
I was able to install and make work the Balloons extension with no problems. But I would like to have not a balloon, but a small box, the kind you see when you put your mouse over “Main page”: square, simple, right under the “hand”. I tried to modify the balloon, not good. I brought the box.js file and tried to use it, but I don’t really know how. Can anyone please help me? Ion Buicliu - February 22, 2011 10:36 PST


 * Perhaps manipulating CSS directly should help the cause. Firefox and Firebug are your best friends in this case. Cheers --&#91;&#91;kgh&#93;&#93; 16:05, 26 February 2011 (UTC)

how to add a pop up image
')">Fig source: Igottheconch 17:59, 25 September 2011 (UTC)
 * here is an example that worked for me, with Extension:SecureHTML installed:
 * The base administrator protected page called Balloons has this coding:
 * ')">TEST
 * where /w/images/0/05/Tunnel_Gas_Station.jpg is the location of your image.
 * Then on a different page Gas Station, I add: 
 * The balloon is rather small though. Screenshot
 * Igottheconch 19:24, 25 September 2011 (UTC)
 * I also found this: http://gmod.org/wiki/Popup_Balloons#Inserting_images_and_other_remote_content_without_AJAX Igottheconch 00:14, 30 September 2011 (UTC)

Here is a screenshot of this balloon images:
 * http://deadrisingwiki.com/w/images/6/68/Dead_island_example_of_new_map.jpg

Here is the coding of the main map page:
 * http://deadislandwiki.com/wiki/Template:Resort_map_1


 * }

Here is the coding of the individual items tempalte pages for each dispalyed main image and pop up image:

Igottheconch 15:02, 3 October 2011 (UTC)


 * Wow, thanks for those tips! I hope that the functionality will be added to a safer upgrade of this extension, but meanwhile this is incredibly useful. Cavila MW 1.17, MySQL 5.5.16, Php 5.3.8 11:14, 15 December 2011 (UTC)

problem locating element myContent
when mousing over this:

Mouse over me too!

I get this error message pop up:


 * problem locating element myContent

Screenshot: http://gyazo.com/98a4a4cf5b79724fbd7a381a302c3ac3.png

Igottheconch 18:39, 25 September 2011 (UTC)

contradictory about wiki markup?
These two statements seem to contradict each other:


 * Only the HTML markup normally allowed by MediaWiki will be rendered inside the popup balloon


 * For security reasons, only plain text (no HTML or Wiki markup) is allowed, except for an  tag, if desired.

Igottheconch 18:55, 25 September 2011 (UTC)

Red links
This minor change took me days to figure out. I finally had to go to the coding to accomplish it.

I made it so the links are now red.