Extension talk:InputBox

From MediaWiki.org
Jump to: navigation, search

For the page history, see also here. / previous talk on this page

Start a new discussion
First page
First page
Previous page
Previous page
Last page
Last page

Possible to use with new MediaWiki styles?

Hi, is it possible to integrate the MediaWiki styles with this extension? Would be nice to figure that out or get some pointers!

Tflanagan (WMF) (talk)16:48, 4 June 2014

+1 to Tighe's question.

We'd love to be able to have inputboxes look like mw-ui-buttons.

Please see bug:61526.


Anna Koval (WMF) (talk)17:15, 4 June 2014

Search profile

How do I set the search profile, to avoid sending users to the advanced search? For instance, &search=nota&fulltext=Ricerca&profile=help&redirs=1.

Nemo11:49, 22 November 2013

To elaborate: w:it:Aiuto:Aiuto has an inputbox helping people to find help; it searches Help+Project namespaces and currently (before gerrit:132965) this is the same as the "help" profile, which gets selected automatically. In this way the "powersearch" checkboxes slate is not shown, which would otherwise occupy most of the screen space and make search results hard to find (as I noted in a "focus group" of librarians the day I posted this question).

Nemo19:07, 27 May 2014

How to change the color of the inputbox-button?

I would like to change the color of the button from inputbox (not the background color, but the color of the button itself.) Any ideas how to do this? I'm using foreground as a skin. Thanks!

18:26, 16 March 2014

Disable inputbox in preview mode so people won't accidentally click them

Wikieditor disables clicking links from preview mode so you won't lose your edits while navigating away by accident. We're experiencing people clicking the Input Box who do lose track of what they are doing. Could Input Boxes be disabled in preview mode?

Mackaaij (talk)11:53, 8 January 2014

Other index_php parameters passed

Is there any way to pass other parameters from Manual:Parameters to index.php to the URL on submit? Like if I wanted to pass &preview=no to the URL using inputbox, how do I do that? I've tried adding it to various other variables, but it gets URL encoded before it goes to the URL...

Technical 13 (talk)23:03, 28 June 2013

Hacked version that allows other wikis to be searched using the searchbox

Check out rationalwikiwikiwiki:WikiIndex. This page transcludes rationalwikiwikiwiki:Template:Wiki, which has an inputbox tag in it with urlparameter=search URL as a parameter. That tells it to look for |search URL= in the transcluded template. So, by putting |search URL=http://wikiindex.org/, that creates a search bar to search WikiIndex. This is implemented by a hacked InputBox.classes.php using some code borrowed from ChangeWikiaEngine.php (although I probably should have borrowed from Manual:Chris_G's_botclasses/ParseMirroredWikiIndexBot.php instead, since it has more robust template parsing) along with a slightly hacked InputBox.hooks.php.

Leucosticte (talk)12:26, 2 December 2012

RTL Input field possible?

Hi have seen this Extension used in Wikidata, is there a way to change text direction in Input box? Haven't found any option, I am trying to make it work form rtl. (for Persian, Hebrew and Arabic)

Pouyana (talk)14:24, 13 November 2012

Download link broken?

Clicking on the download link takes me to a generic error page., 12 October 2012

Add SearchSuggest to inputbox?

Is there a way to add the ajax search suggestion to an inputbox? Thanks, 8 October 2012

Not compatible with BoilerRoom

I've installed InputBox to preload a page with some text using a simple button.

I've installed also BoilerRoom for those users able to choose which text to be inserted into a page, but with BoilerRoom InputText is not longer able to preload the text.

WhiteTigerItaly (talk)11:01, 7 October 2012

Is there a way to get the new section name in the editintro?

When using this to make a new section, is there a magic word or some other way to access the new section name that the user just typed into the box for display in the editintro? Please ping me at w:User talk:Cupco if so. Thanks! Cupco (talk) 17:57, 21 September 2012 (UTC)

Cupco (talk)17:57, 21 September 2012

Option to open results in new tab

Could you add an option to open the results in a new tab?

There are many search boxes for searching Village Pump and other archives on Wikipedia, the Commons, etc.. Unfortunately, those search boxes are usually not on separate pages that can be bookmarked. So one can not find a way to keep the Village Pump page open in one tab, and the search in another tab.

Timeshifter (talk)18:26, 31 May 2012

It is the job of the Web browser, not of the Web site.

For example, with nice browsers, I can validate a form and open its result as a new background tab by Apple-clicking its submit button, or by pressing Apple Return or Apple Enter.


Nnemo (talk)09:08, 1 June 2012

According to this article Apple Safari is the worst browser out of the six browsers that were compared.

Browsers are inconsistent or lacking in how they open links in new tabs. I usually right-click in Firefox and use the context menu to open a link in a new tab or window.

But search forms created by InputBox do not allow this. Is there a way to make the search forms here open to new tabs by right-clicking?:

Timeshifter (talk)03:06, 2 June 2012

This article smells bullshit, but let's give it a try. I start reading it. At the beginning, I read an item “Plain design” in a list named “Cons:”. I stop reading.


Nnemo (talk)13:29, 2 June 2012

Press Ctrl while clicking Search or Go (works in Chrome).

Subfader (talk)19:42, 26 June 2012

In Firefox pressing Ctrl while clicking search or the search icon does not open the search result list in a new tab. I tried pressing various other keys, and none work.

Timeshifter (talk)00:40, 27 June 2012
Subfader (talk)08:03, 27 June 2012

Forget all my posts, I thought the OP talks about openeing the search page in a new tab.

Subfader (talk)15:03, 27 June 2012

Thanks for the Firefox addon link. The Firefox addon works, but that will not help most people. It would be nice if the submit button for MediaWiki inputbox forms was also in the form of a link. In other words when one runs a mouse cursor over it a link would show up. That way it could be right-clicked and opened in a new tab.

Timeshifter (talk)21:32, 27 June 2012

That would not be HTML conform. The browser decides how a submitton looks and works like.

Subfader (talk)18:26, 28 June 2012

True, but MediaWiki can decide to combine the 2 functions of links and submit buttons. This may be relevant too: https://bugzilla.mozilla.org/show_bug.cgi?id=17754

Timeshifter (talk)00:29, 29 June 2012

adding text to a search box

Is it possible to add text into a searchbox? Many of the entries in s:en are similar to "Edward I (DNB00)" so I want to add the bracketted text (preferably at the end). Chris55 (talk) 13:49, 8 August 2012 (UTC)

Chris55 (talk)13:49, 8 August 2012

ERROR : undefined method MediaWiki::getAction()

Hello to all. I just installed the extenion "InputBox-MW1.19-110961.tar.tar" and added the reference in the LocalSettings.php.

I get this error when I try to view my user-created pages : Fatal error: Call to undefined method MediaWiki::getAction() in /home/thebigma/public_html/wiki/extensions/InputBox/InputBox.hooks.php on line 55"

Line 55 is : if( $wiki->getAction( $request ) !== 'edit' ){

I can however click the back arrow and view my home page or the special pages.

I commented the if statement out... /**if( $wiki->getAction( $request ) !== 'edit' ){ # not our problem return true; }*/ ...and the wiki is again functional. (Of course, I expected to see something special. Still trying to understand how to get this extension working.), 30 July 2012

I am replying to my own question above. I am going to upgrade from MediaWiki v 1.17.0 to 1.19. I assume that the method will be defined and all will work., 31 July 2012

OK. I have finished the upgrade and the error message no longer appears., 31 July 2012

Creating box to add to a table.

Is there any way to use this extension to add to a table? For example... If I had a table that was logging the use of a car...

Name Date Mileage Purpose
John 6/13/12 13 miles Getting groceries

Is it possible to create an input box with 4 boxes for "Name", "Date", "Mileage" and "Purpose" and set it up so that clicking Go will add this to the end of the table?

Zackmann08 (talk)21:05, 13 June 2012

Period in the button


The texts in the buttons never end with a period. Which is like in all user interfaces I have seen.

Except the button “Essayez la correspondance exacte.” Which is weird.

Please remove that period.

Thanks, and keep up the good work !


Nnemo (talk)18:29, 30 May 2012

Done with this edit. Please allow some time to get through to existing wikis. Cheers

[[kgh]] (talk)19:05, 30 May 2012

Thank you.

Is it normal that the period is still there even on this very wiki ?



Nnemo (talk)02:54, 31 May 2012

Yes, because it takes some time to process the data, since the change is initially made on the third-party wiki for I18n and L10n. Real time would only be possible with direct changes on the respective wikis. Cheers

[[kgh]] (talk)07:54, 31 May 2012

Placeholder support?

Could we get support for the placeholder attribute? – 19:21, 22 May 2012 (UTC), 22 May 2012

It should already support placeholder attribute since this commit: https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/extensions/InputBox.git;a=commitdiff;h=6b49e7d6d899dfe276c6993d53874475e7bedb5e

If you're using an up to date version, you just need to use placeholder=. :)

Grunny (talk)09:28, 23 May 2012

Make it vertically wider

Is there a way to hack this so that the search field can be larger vertically?, 22 April 2012

Use CSS. E.g. #searchform input {width:250px}.

Subfader (talk)08:44, 24 April 2012

I only want to affect the inputbox form. Not the mediawiki search form. Sorry for the confusion. I should have typed "How do I make the inpubox field vertically taller" I don't know how to use CSS to target the extension, 9 May 2012

Alter page to visit once done?

Is it possible to change what wikipage is displayed once the inputbox is submitted? Example: https://www.mediawiki.org/wiki/Git/New_repositories/Requests

Varnent (talk)04:45, 4 April 2012

Width doesn't work and is there any way to set it up so that I can get two buttons with create instead of just one?

Width doesn't work. I've tried changing it from width=32 to width =320 and when I do a 123456789012346789012345 check, my width is 25 no matter what. Not sure why this is.. (It could be the .css on my end, but I'm not sure where I would check for that.)

Is there any way to set it up so that I can get two buttons with create instead of just one? I want to be able to have someone type in a page name and either create the page, or create a talk page with button names like [Create Page] - [Talk about it]. How can I do this?

Thank you,

     ShoeMaker (talkcontributions)19:55, 23 March 2012

1) Check your CSS cos it works. width=3:

2) Two buttons with different landing pages for one input box? That requires a HTML form which is not possible without extensions. Check Extension:CreateArticle and Extension:SecureHTML.

Subfader (talk)20:18, 24 March 2012
First page
First page
Previous page
Previous page
Last page
Last page