Topic on Extension talk:InputBox

Entering Content of New Section?

11
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)
This post was hidden by Ciencia Al Poder (history)
Johnywhy (talkcontribs)
Ciencia Al Poder (talkcontribs)

If the edit is going to be done on the same wiki where the JavaScript is being executed, JavaScript will be sending the same cookies that use the browser. Then, you don't need to login with JavaScript.

Johnywhy (talkcontribs)

You mean cookies for the user-login?

I thought bot-login is separate from user-login.

Ciencia Al Poder (talkcontribs)

I'd guess you want your users edit under their main account and not under their bot account. If not, disregard my previous comment.

Johnywhy (talkcontribs)

We need our bot to perform write-actions as logged-in user.

But also need to perform reads. i guess the reads could be under bot account, or user account-- doesn't matter cuz there's no write being logged.

So, since we're doing writes as logged-in user, then will keep things simple to perform reads with same cred.

Good idea!

Now i have to figure out how a bot can use the logged-user's cred.

Ciencia Al Poder (talkcontribs)

I don't see any relation between the original question (being able to create a new section from an input box) and bot edits.

Johnywhy (talkcontribs)
Reply to "Entering Content of New Section?"