Host the vote page on your own domain
You host the page, VoteScript keeps the votes, callbacks and rewards.
Host the page yourself4 steps
What you need
- Web hosting
- PHP 8.1 for the PHP version, Node for the Next.js version
Download the files
Open Publish, then Your hosting, and choose HTML, PHP or Next.js. The files are filled in with your server.
Publish
- HTML and JavaScriptsettings in config.jsDownload
- PHPsettings in .envDownload
- Next.jssettings in .env.localDownload
Set it up
Open the settings file of your version.
votescript-html/
config.jsedit
index.html
app.js
style.css
window.VOTESCRIPT = {
VOTESCRIPT_URL: 'https://votescript.voterank.net',
VOTESCRIPT_SERVER: 'your-server',
};votescript-php/
.envedit
index.php
lib.php
style.css
VOTESCRIPT_URL="https://votescript.voterank.net" VOTESCRIPT_SERVER="your-server" VOTESCRIPT_KEY="YOUR_KEY"
votescript-nextjs/
.env.localedit
app/
lib/
package.json
VOTESCRIPT_URL="https://votescript.voterank.net" VOTESCRIPT_SERVER="your-server" VOTESCRIPT_KEY="YOUR_KEY"
HTML version: allow your domain
Browsers may start votes only from websites you allowed. Add the domain under Publish, then API. The PHP and Next.js versions use the key instead and do not need this.
Publish
Upload and vote once
Upload the folder, open it in the browser, enter your name and vote.
Vote for Emberfall
ExampleVoting as Iron Moss
2 of 3 voted
VoteRank Vote here first
Voted. Again in 11 h 42 minTopG
Voted. Again in 2 h 02 minArena-Top100
Waiting for the list to confirmIf it does not work
Votes cannot be started
Can the key be in config.js?
Next
GuideEmbed on your websiteWorks on any site where you can paste HTML.
GuideConnect your gameWhen a player types your command, the game asks VoteScript what is waiting and hands it out.
GuideCommon problemsFollow one vote from the click to the game. Stop at the first step that does not look like the picture.
Give your players one place to vote
Your page is live as soon as you create your server. You can connect the rest step by step.

