Extension talk:InputBox

Jump to navigation Jump to search

About this board

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


Johnywhy (talkcontribs)

I'd like an input box setup to create a new section to an existing page.

  • The user would enter the content of the new section
  • The section title would be hardcoded into the inputbox.
  • The page name would be hardcoded into the inputbox.
  • On submitting, the user would not be redirected to the target-page-- they'd remain on the current page.

Reading the extension manual, it seems none of this would be possible. Hope someone can prove me wrong.

Ciencia Al Poder (talkcontribs)

It's not possible. You'll need to

  • search for another extension (if one exists)
  • code your own one
  • use JavaScript for that and use the api to create the section on submit.
Johnywhy (talkcontribs)
Reply to "Entering Content of New Section?"
Barny1952 (talkcontribs)

I am running Mediawiki version 1.30. I have inserted the line <wfLoadExtension( 'InputBox' );> in LocalSettings.php . In addition I have downloaded the latest <InputBox>-files and copied them into /extensions/InputBox/. But in Special:Version this extension <InputBox> did not appear in the listing. And after writing

<inputbox>

type=create

break=no

</inputbox>

in the main page did not make appear the create box.

Can anybody help me?

Addendum: Now it works. I have changed the chmod of LocalSettings.php to 644. By upgrading my wikimedia installation it was set to 444.

Jenbme (talkcontribs)

I have the same issue – but chmod on LocalSettings.php is set to 644. Any other thoughts as to why this might not be working?

Barny1952 (talkcontribs)

I am sorry, but I have made no futher investigastions on this issue.

Reply to "Extension: InpuBox not activated"
Evolution and evolvability (talkcontribs)

Is there any way to implement an option to choose between basepage prefixes in the same way that |namespaces= can search a specific namespace?

I would like to be able use the |type=create option with a preset list of prefixes, e.g.:

<inputbox>
type = create
prefixes = Option1/**, Option2/, Option3/
</inputbox>

For context, I'm looking to include on v:WikiJournal_Preprints the following:

<inputbox>
type        = create
buttonlabel = Create pre-print
placeholder = Pre-print title
prefixes      = WikiJournal of Medicine/**, WikiJournal of Science/, WikiJournal of Humanities/, WikiJournal of Extra/
break       = no
preload     = WikiJournal_Preprints/preload_draft
</inputbox

Would that be something possible to implement?

Johnywhy (talkcontribs)

i would like this too, but just using existing namespaces.

Reply to "Multiple basepage prefix option?"
131.111.85.79 (talkcontribs)

Is there a way to look for/create pages with suffixes, as in prefix? If not, I don't suppose it would be a viable implementation? It'd be hella useful in some case.

71.224.237.54 (talkcontribs)

hlkjk

Reply to "Suffix search/creation?"

How can I allow a user to search by pageid?

2
Stevenpcox (talkcontribs)

I would like users to be able to look up an article based on pageid.

Using ?curid=PAGEID I can add the pageid to a url and go directly to the page. I would like to have a search function where the user input the pageid into a field, mediawiki appends the URL and the desired page opens up.

This should be easy. The only thing I cannot figure out is how to have the user type the pageid into a field and hit enter. From there I can turn it into a variable and inject it into the URL.

Krabina (talkcontribs)

I was looking for the same thing. Guess you have to use the Extension:PageForms for this (Query form).

Reply to "How can I allow a user to search by pageid?"
91.204.10.51 (talkcontribs)

Pressing the 'create' button when the input box is empty and a 'prefix' is set will lead to the editor editing the prefix.

This behaviour is undesirable. A notification should inform that user that a page with an empty name can not be created.

Reply to "Create inputbox and an empty input"
Loman87 (talkcontribs)

Hi,

I have a question about the parameter width: is there a trick to render it proportional to the screen dimension? E.g., in my wiki I have an InputBox on the homepage and it has the width parameter set to 100, which is good for the most of desktop screen. But, if I visit the homepage from a mobile device, the width turns to be too wide.

I tried to include the inputbox in a div, setting style etc., but the final result doesn't change.

Any ideas?

Thanks,

Lorenzo

Kaganer (talkcontribs)

Please try this code:

<div style="width:auto;">
<inputbox>
type=search
width=142
</inputbox>
</div>

In my browser this is worked.

Loman87 (talkcontribs)

Hi,

I tried but it didn't work for me. Have you tried to connect to your wiki via a mobile device?

Reply to "Width parameter"
Kiwi-wi (talkcontribs)

Hello,

It seems the visual editor option does not work, for the create type.

the  'useve=1' parameter should open the visual editor.

Possible bugfix start in Inputbox.classes.php :

By commenting out the following lines everything seems fine :

//      $htmlOut .= Html::hidden( 'preload', $this->mPreload ); (line 393)

//      $htmlOut .= Html::hidden( 'editintro', $this->mEditIntro ); (line 397)

I think those may be iffed depending on the $mUseVE parameter

Regards,

ManosHacker (talkcontribs)

The known bug relies on the prefix parameter, which is not passed to the VE call from InputBox. Are you using the prefix parameter?

Reply to "Visual Editor Option not working"

How to change "save changes, show preview, show changes" button design

1
42.153.61.69 (talkcontribs)

How to change the default design of "save changes, show preview, show changes" button on newly installed wiki to the inputbox design used by both MediaWiki and Wikipedia on the action=edit page? (It's a lot more user-friendly)

Reply to "How to change "save changes, show preview, show changes" button design"

Search for articles that start with a string.

3
Marianian (talkcontribs)

Hi,

How do I configure InputBox to search for articles that begin with a specific string in the main namespace, such as "NationStates Issue No. " (with a trailing space)?

Best, Marianian

Quiddity (WMF) (talkcontribs)

Are you trying to setup either:

  • Just pre-made searches for a specific string?
    • this is what you describe above. It would be easiest to just give plain search links, e.g. example search.)
  • An inputbox that enables users to add text to the pre-made search string?
Marianian (talkcontribs)

Hello,

A NSindex (NSindex.net) user recently suggested to me that I find a way to bring up articles for any given issue just by typing a three digit issue number.

Articles for each issue follow the format "NationStates Issue No. [number]", e.g. "NationStates Issue No. 100" for the article about the 100th issue on NationStates.

The idea that I am trying to achieve is that, for example, when someone types "100" and clicks "search" or something, the article "NationStates Issue No. 100" automatically comes up. It’s like "I feel lucky" except with wiki articles on NSindex.

Best, Marianian

Reply to "Search for articles that start with a string."