Extension talk:InputBox

From MediaWiki.org
(Redirected from Extension talk:Inputbox)
Jump to: navigation, search

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

Contents

Thread titleRepliesLast modified
Hacked version that allows other wikis to be searched using the searchbox012:26, 2 December 2012
RTL Input field possible?014:24, 13 November 2012
Download link broken?015:33, 12 October 2012
Add SearchSuggest to inputbox?016:07, 8 October 2012
Not compatible with BoilerRoom011:01, 7 October 2012
Is there a way to get the new section name in the editintro?017:57, 21 September 2012
Option to open results in new tab1105:42, 20 September 2012
adding text to a search box013:49, 8 August 2012
ERROR : undefined method MediaWiki::getAction() 213:04, 31 July 2012
Creating box to add to a table. 021:05, 13 June 2012
Period in the button307:54, 31 May 2012
Placeholder support?109:28, 23 May 2012
Make it vertically wider223:16, 9 May 2012
Alter page to visit once done?004: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?120:18, 24 March 2012
Add a new section in the middle of the page.117:56, 23 March 2012
Dropdown boxes, checkboxs, radio buttons....018:36, 17 March 2012
search in a category015:37, 28 February 2012
Prefix doesn't work010:51, 15 February 2012
Text wiki markup/formatting302:17, 12 February 2012
First page
First page
Previous page
Previous page
Last page
Last page

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.

74.116.8.415:33, 12 October 2012

Add SearchSuggest to inputbox?

Is there a way to add the ajax search suggestion to an inputbox? Thanks

67.78.106.7416:07, 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

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

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.)

80.11.250.8115:50, 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.

80.11.250.8107:00, 31 July 2012

OK. I have finished the upgrade and the error message no longer appears.

80.11.250.8113:04, 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

Hello,

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

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 ?

Cheers,

Nnemo

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? –124.180.123.236 19:21, 22 May 2012 (UTC)

124.180.123.23619:21, 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? 24.130.249.87

24.130.249.8701:13, 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 67.59.193.62

207.47.18.25423:16, 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
 

Add a new section in the middle of the page.

Is it possible?

For example, I got a page with two sections, I want to use the InputBox to create a new section between those two sections or a new section inside the first one.

I got this:

== 1 ==

== 2 ==

And I want this:

== 1 ==

== New Section ==

== 2 ==

Or this:

== 1 ==

=== New Section ===

== 2 ==

I don't want the new section to go to the end of the page.

189.38.207.18417:42, 22 March 2012

No. You can however add new entries on subpages which are transcluded in the middle of the main page.

Mikołka (talk)17:52, 23 March 2012
 

Dropdown boxes, checkboxs, radio buttons....

Are there any plans to support other forms of form input in the future? Like check-boxes, radio buttons, or drop-down lists? Is there already an Extension available with all of these abilities that my searches haven't found? Thanx -- Technical 13 (talk) 18:36, 17 March 2012 (UTC)

Technical 13 (talk)18:36, 17 March 2012

search in a category

Is there a possibility to search in a certain category?

80.149.179.215:37, 28 February 2012

Prefix doesn't work

Prefix doesn't work. Is Lucene required?

Subfader10:51, 15 February 2012

Text wiki markup/formatting

Is it possible to include formatting on the buttonlabels? The standard search box seems to use bold "Go" and standard "search". Thanks.

-- Trevj (talk)16:01, 10 February 2012

Along those lines, anyone have any thoughts on how to add style settings to the submit button as well? Example, I would like to enlarge the text for the "Join" button on the top section of this page: Project:WikiProject Extensions/Participants

If it's not currently possible, perhaps adding a setting to the code? I took a quick look and seems pretty straight-forward (for the above as well). I'd be willing to help with that.

Varnent00:47, 12 February 2012

You can try it this way (please revert me if you don't like it), it has however some shortcomings: no hover effects, browser-type dependency.

Sincerely, Mikołka01:36, 12 February 2012

That'll work great - thank you!  :)

Varnent02:17, 12 February 2012
 
 
 
First page
First page
Previous page
Previous page
Last page
Last page