here is a little votingmod,
the mod has languagesupport, but has no error, when lng part is missing
to add your languages goto languages/"your language"/CUSTOM.php
and add this parts
$LNG['vote_text_success'] = 'Mission Voting erfüllt.<br>250 Dunkle Materie gutgeschrieben.<br><hr>';
$LNG['vote_text_0'] = 'Hier kannst du für';
$LNG['vote_text_1'] = 'stimmen, jede Stimme bringt dir 250 Dunkle Materie.';
the mod uses db fields, but you don't have to set them, if they don't exist the mod creates them.
make accounts at votingpages and put in the link and a path for a picture for the link
this is done in the beginning of the script(includes\pages\game\ShowVotePage.class.php) in line 13
put in your own links here.
then make a link in your menu (styles\templates\login\main.navigation.tpl) the link is
<a href="game.php?page=vote">Vote</a>
and this is how the mod looks like
the mod has languagesupport, but has no error, when lng part is missing
to add your languages goto languages/"your language"/CUSTOM.php
and add this parts
$LNG['vote_text_success'] = 'Mission Voting erfüllt.<br>250 Dunkle Materie gutgeschrieben.<br><hr>';
$LNG['vote_text_0'] = 'Hier kannst du für';
$LNG['vote_text_1'] = 'stimmen, jede Stimme bringt dir 250 Dunkle Materie.';
the mod uses db fields, but you don't have to set them, if they don't exist the mod creates them.
make accounts at votingpages and put in the link and a path for a picture for the link
this is done in the beginning of the script(includes\pages\game\ShowVotePage.class.php) in line 13
PHP Source Code
- $links = array( //link => Image
- 'https://yourvotingpage1.com' => 'https://yourvotingpage1.com/vote.png',
- 'https://yourvotingpage2.com' => 'https://yourvotingpage2.com/vote.png',
- 'https://yourvotingpage3.com' => 'https://yourvotingpage3.com/vote.png',
- 'https://yourvotingpage4.com' => 'https://yourvotingpage4.com/vote.png'
- );
then make a link in your menu (styles\templates\login\main.navigation.tpl) the link is
<a href="game.php?page=vote">Vote</a>
and this is how the mod looks like