Extension talk:Add Button
Add topic--Johnp125 13:02, 18 September 2007 (UTC)
Looks like it is only messing with Gallery items. Not regular picture links.
--Johnp125 14:53, 17 September 2007 (UTC) I'm getting the following issue with gallery images with the extention added.
MediaWiki: 1.10.0
PHP: 5.1.6 (apache2handler)
MySQL: 5.0.22
<pre> <!--- AddButtonExtension is in but inacative in the context --> Item 1 </pre>
File:Addbutton-images-issue.jpg
<p>The options can be given in any order. If a given option does not match any of the other possibilities, it is assumed to be the caption text. Caption text can contain wiki links or other formatting. </p> <a name="Gallery_of_images"></a><h3><span class="editsection">[<a href="/index.php?title=Help:Images&action=edit§ion=3" title="Edit section: Gallery of images">edit</a>]</span> <span class="mw-headline">Gallery of images</span></h3> <p>It's easy to make a gallery of thumbnails with the <code><gallery></code> tag. The syntax is: </p> <pre> <gallery> Image:{filename}|{caption} Image:{filename}|{caption} {...} </gallery> </pre> <p>Captions are optional, and may contain wiki links or other formatting. </p><p>for example: </p> <pre> <gallery> Image:Example.jpg|Item 1 Image:Example.jpg|a link to [[Help:Contents]] Image:Example.jpg Image:Example.jpg Image:Example.jpg|''italic caption'' </gallery> </pre> <p>is formatted as: </p> <table class="gallery" cellspacing="0" cellpadding="0"> <tr> <td><div class="gallerybox" style="width: 150px;"> <div class="thumb" style="padding: 33px 0; width: 150px;"><a href="/wiki/Image:Example.jpg" title="Image:Example.jpg"><img src="/images/thumb/a/a9/Example.jpg/120px-Example.jpg" width="120" height="80" alt="" /></a></div> <div class="gallerytext"> <pre> <!--- AddButtonExtension is in but inacative in the context --> Item 1 </pre> </div> </div></td> <td><div class="gallerybox" style="width: 150px;"> <div class="thumb" style="padding: 33px 0; width: 150px;"><a href="/wiki/Image:Example.jpg" title="Image:Example.jpg"><img src="/images/thumb/a/a9/Example.jpg/120px-Example.jpg" width="120" height="80" alt="" /></a></div> <div class="gallerytext"> <p>a link to <a href="/wiki/Help:Contents" title="Help:Contents">Help:Contents</a> </p> </div> </div></td> <td><div class="gallerybox" style="width: 150px;"> <div class="thumb" style="padding: 33px 0; width: 150px;"><a href="/wiki/Image:Example.jpg" title="Image:Example.jpg"><img src="/images/thumb/a/a9/Example.jpg/120px-Example.jpg" width="120" height="80" alt="" /></a></div> <div class="gallerytext"> </div> </div></td> <td><div class="gallerybox" style="width: 150px;"> <div class="thumb" style="padding: 33px 0; width: 150px;"><a href="/wiki/Image:Example.jpg" title="Image:Example.jpg"><img src="/images/thumb/a/a9/Example.jpg/120px-Example.jpg" width="120" height="80" alt="" /></a></div> <div class="gallerytext"> </div> </div></td> </tr> <tr> <td><div class="gallerybox" style="width: 150px;"> <div class="thumb" style="padding: 33px 0; width: 150px;"><a href="/wiki/Image:Example.jpg" title="Image:Example.jpg"><img src="/images/thumb/a/a9/Example.jpg/120px-Example.jpg" width="120" height="80" alt="" /></a></div> <div class="gallerytext"> <p><i>italic caption</i> </p> </div> </div></td> </tr> </table>
Does not seem to work with newest version MediaWiki: 1.11.0rc1 Confirmed: Not working with MediaWiki 1.11 PHP5 MySQL5 here is the error: Detected bug in an extension! Hook addbuttonDo failed to return a value; should return true to continue hook processing or false to abort. Backtrace: #0 D:\Inetpub\Wiki\includes\Parser.php(332): wfRunHooks('ParserBeforeTid...', Array) #1 D:\Inetpub\Wiki\includes\OutputPage.php(474): Parser->parse('This page has b...', Object(Title), Object(ParserOptions), true, true, 8196) #2 D:\Inetpub\Wiki\includes\GlobalFunctions.php(593): OutputPage->parse('This page has b...', true, true) #3 D:\Inetpub\Wiki\includes\SkinTemplate.php(342): wfMsgExt('viewcount', Array, '20,151') #4 D:\Inetpub\Wiki\includes\OutputPage.php(696): SkinTemplate->outputPage(Object(OutputPage)) #5 D:\Inetpub\Wiki\includes\Wiki.php(301): OutputPage->output() #6 D:\Inetpub\Wiki\index.php(90): MediaWiki->finalCleanup(Array, Object(LoadBalancer), Object(OutputPage)) #7 {main} Retrieved from "http://myserver/Wiki/index.php?title=Main_Page"
Extension is not secure
[edit]The "If MEDIAWIKI not defined, DIE) ------ is missing from this extension. Further I dont feel comfortable with the javascript code inside but I may be wrong. There's a user in Wikipedia which has done this same thing but that works only for that website.--Kenny5 00:33, 3 November 2006 (UTC)
Extension does not seem to work with 1.9.3
[edit]I tried installing and using this extension with 1.9.3 and it seems to have broken my wiki. I contacted the author about it.
- Making the one on Wikipedia available easily for everyone would be a great idea.--Heebie 19:33, 21 April 2007 (UTC)
New technique by The Architect
[edit]I just created a different technique to add the buttons. The Pop-Cult Architect