"WHAT TOOK YOU SO LONG QRUP YOU LITTLE SNAIL" - look calm down I was working on the mess that is Template:Cost ok spare my soul
Also I thought there'd be a method which would:
be able to insert images/pings in (arguably most important here since I know you're all going to only use them on W/F/L posts)
make it easier to format the post
works for all wikis
than what is listed on the BFDI wiki so I wanted to hold off until I can test it
Which you just saw like 5 minutes ago
So yeah time to speed through this WHOO-
(also this guide assumes you know how to:
Open Inspect
has the Console tab in said Inspect to send JavaScript API requests
has the Network tab also in said Inspect) to track down API requests
if you somehow don't have these features I'll write a more standard one for later, though I'm pretty sure most web browsers have them)
(and if you're on mobile you're already dead unless you're willing to download some apps, though I'm not going into that, Message Wall me if you want to know more)
(also this guide has a noticeable lack of images because it takes me 10 million years to make guides with images, spare my soul)
(also this guide may not be easier than the BFDI guide if you just want to make a fancy post, this is more for convenience with the bigger posts)
==============================================================
First, big difference, we're going to edit our post to include a poll, not create one. This is significantly easier to work with and doesn't require nearly as many developer tricks.
If you want to create a post instead, you can go through the BFDI guide.
Alright first off, create your post! Put everything you want to include in it (excluding the poll itself of course), and post it.
Now pull out Inspect and go to the Network tab. This tab tracks every API request made, including post-edit requests.
Make an edit to your post. And by "edit", I mean don't add anything, just spam Next until it goes through.
(Note: HAVE INSPECT STILL OPEN, ELSE IT WON'T DETECT THE REQUEST)
Now search for the request that would go something along the line of
wikia.php?controller=DiscussionThread&method=update
blah blah blah the beginning of the request should go something like that.
This is the post-edit request.
2 things you need to take out here. Click the request, then click the Payload tab on your right, then:
In Query String Parameters, take the number after "threadId" and save that somewhere.
In Request Payload, click "view source", then copy paste the whole thing and save that somewhere else. (REMEMBER TO CLICK "Show more" IF THE BUTTON APPEARS, YOU NEED THE WHOLE STRING)
Alright, now you got the 2 pieces you need. Time to edit them to include the poll.
Pull out the string you got from the whole Request Payload thing. Search for "poll: null," in that string, and replace that string exactly (including the comma) with:
"poll": { "question": "<QUESTION>", "answers": [ { "text": "<POLL OPTION 1>", "position": 0 }, { "text": "<POLL OPTION 2>", "position": 1 }, { "text": "<POLL OPTION 3>", "position": 2 } ]},
(If you don't see one, just add a comma and then this thing right before the very last "}" in the string)
If it's not obvious yet, replace <QUESTION> with the poll's question, and <POLL OPTION 1>, <POLL OPTION 2>, <POLL OPTION 3>... with the poll's options. You can add more options, of course - just add another
{ "text": "<POLL OPTION 4>", "position": 3 },
And then continue with the numbers until you're at 6.
(note, the last poll option block must not have a comma after it)
Now we're ready. Open the Console tab.
Here's your JavaScript mess:
const searchParams = new URLSearchParams({ controller: 'DiscussionThread', method: 'update', threadId: '<threadId>' });fetch("https://bee-swarm-simulator.fandom.com/wikia.php?" + searchParams.toString(), { method: "POST", body: JSON.stringify(<PAYLOAD STRING>)});
You know what to do. Replace <threadId> with the number you got earlier, and <PAYLOAD STRING> with the string you just edited.
Now press Enter.
(Might need to give the Console permission to run JavaScript. Give them permission. This request physically cannot harm your device.)
Assuming you did everything correctly (i.e. you did not get any red popups), congrats! You just made a funky post!
==============================================================
Whoo, that was a lot of words.
(Edit: If you're getting errors, check if the threadId is correct by looking at the post's link (the first number in the link is also the threadId) )
As always, spam my Message Wall (or this post) if you have any problems!
Oh right, before I go...
General guide to create a post instead?
Yes please me need
No, take a break please
39 Votes in Poll