Voting extension part two

Jump to: navigation, search
Revision as of 13 January 2011 at 12:26.
This is the thread's initial revision.

See RationalWiki_talk:2010_board_of_trustees_election/Election_booth#Forging_votes.

To open the polls, uncomment the line:

#$wgElectionName = "2011board";

in LocalSettings.php. Votes are saved to a file called {$wgElectionName}.blt in public_html/w. I've made it inaccessible from the web in .htaccess (btw, the previous file is accessible from the web).

Candidates can be specified in LocalSettings using $wgElectionCandidates. The election name variable is used for the filename and to record who has already voted. There's a table in the database called rw_election_voted that contains the user id and the election name for anyone who has voted.

Eligibility is determined using $wgAutopromote (see w/extensions/Election/Election.php).

    -- Nx / talk12:26, 13 January 2011
    Personal tools
    Namespaces

    Variants
    Actions
    Navigation
    Community
    Tools
    support