[HELP]Vote

08/06/2009 10:15 lelothebest#1
hello everybody .
can some one give me vote script ?
vote for coins ?

this script :
[Only registered and activated users can see links. Click Here To Register...]

or EG dekaron one ,, or any simple one ..

thanks . :bandit:
08/06/2009 10:42 janvier123#2
its pretty easy in theory

Click -> account name (adds 25coins to mssql) -> Proceed to vote
BUT !
you cant give in your account name, and proceed to the vote, but dont vote (capatacha)

easy cheat ;)
08/06/2009 10:49 antondude#3
its not very simple actually, need some msql plugins
08/06/2009 20:40 lelothebest#4
right .. i had this script .
but i lost it now ... so can some one share it with me again plz ?

so any know have this script ?

# merged by -= Re@p3r =-
08/07/2009 19:34 Gentleman Jack#5
reported
doublepost
08/08/2009 11:00 janvier123#6
ill try to make one as soon as i finish the website for DKv with the dekaron layout
its comming pretty good, and you gave me the idea to vote so ...
ill see whate i can do, and post it

Enter name (manual)

- would a option to enter your name be better

Drop Down list (Auto - Easy)

- do you need a list of players from a drop down list ?
- do you want to add [GM] / [DEV] to the list ?
08/08/2009 11:06 turfstarz#7
I'll make a script when i get home. I'm used to mysql, shouldn't be too difficult with mssql.
08/08/2009 11:25 janvier123#8
Call it "vote.php"
This is only the drop downlist pulled for the DB, does not add coins yet !

PHP Code:
<?php

$mssql 
= array(
        
'host' => "YOURIP"// 127.0.0.1 or localhost are common used
        
'user' => "USERNAME"// mostly "sa"
        
'pass' => "YOURPASSWORD"
    
);
    
if(empty(
$_POST['select'])) {
    echo 
"<center><form action='vote.php' method='POST'>
        <table class='innertab'>
            <tr>
                <td colspan='2' align='left'><b><u>VOTE</b></u></td>
            </tr>
            <tr>
                <td colspan='2' align='left'>&nbsp;</td>
            </tr>
            <tr>
                <td align='left'>Select Character</td>
                <td><select name='character_name'>"
;
                    
$ms_con mssql_connect($mssql['host'],$mssql['user'],$mssql['pass']);
                    
$result mssql_query("SELECT * FROM character.dbo.user_character",$ms_con);

                    while(
$row mssql_fetch_row($result)) {
                    
// Look at the list below 2 options
//
//if you want [GM]'s remove the "//" infront of :  if(!preg_match("/[[GM]]/i",$row[1])) {
//if you want [DEV]'s remove the "//" infront of : if(!preg_match("/[[DEV]]/i",$row[1])) {
//                    
//                            if(!preg_match("/[[GM]]/i",$row[1])) {
                            
if(!preg_match("/[[DEV]]/i",$row[1])) {
                            if(!
preg_match("/[+]/i",$row[1])) {

                        echo 
"<option value='".$row[0]."'>".$row[1]."</option>";
                    }
                    }
                    }
                echo 
"</select></td>
            </tr>
            <tr>
                <td align='left' colspan='2'>
                    <input type='hidden' name='select' value='1'>
                    <input type='submit' value='Select'>
                </td>
            </tr>
        </table>
    </form></center>"
;
    }    
?>
08/08/2009 15:54 lelothebest#9
thx ... i'll try to get it too .
08/08/2009 18:58 rezevil4o#10
Quote:
Originally Posted by janvier123 View Post
Call it "vote.php"
This is only the drop downlist pulled for the DB, does not add coins yet !

PHP Code:
<?php

$mssql 
= array(
        
'host' => "YOURIP"// 127.0.0.1 or localhost are common used
        
'user' => "USERNAME"// mostly "sa"
        
'pass' => "YOURPASSWORD"
    
);
    
if(empty(
$_POST['select'])) {
    echo 
"<center><form action='vote.php' method='POST'>
        <table class='innertab'>
            <tr>
                <td colspan='2' align='left'><b><u>VOTE</b></u></td>
            </tr>
            <tr>
                <td colspan='2' align='left'>&nbsp;</td>
            </tr>
            <tr>
                <td align='left'>Select Character</td>
                <td><select name='character_name'>"
;
                    
$ms_con mssql_connect($mssql['host'],$mssql['user'],$mssql['pass']);
                    
$result mssql_query("SELECT * FROM character.dbo.user_character",$ms_con);

                    while(
$row mssql_fetch_row($result)) {
                    
// Look at the list below 2 options
//
//if you want [GM]'s remove the "//" infront of :  if(!preg_match("/[[GM]]/i",$row[1])) {
//if you want [DEV]'s remove the "//" infront of : if(!preg_match("/[[DEV]]/i",$row[1])) {
//                    
//                            if(!preg_match("/[[GM]]/i",$row[1])) {
                            
if(!preg_match("/[[DEV]]/i",$row[1])) {
                            if(!
preg_match("/[+]/i",$row[1])) {

                        echo 
"<option value='".$row[0]."'>".$row[1]."</option>";
                    }
                    }
                    }
                echo 
"</select></td>
            </tr>
            <tr>
                <td align='left' colspan='2'>
                    <input type='hidden' name='select' value='1'>
                    <input type='submit' value='Select'>
                </td>
            </tr>
        </table>
    </form></center>"
;
    }    
?>
what to do with this xD ?
08/08/2009 20:21 janvier123#11
its for turfstarz and lelothebest to help him out, and a example
iam still busy with the site, so after that ill look at the vote.php

and waiting for turfstarz if hes gonna create one or not
08/13/2009 12:05 lelothebest#12
this one will not help ...
coz it choose the whole character list xD
08/28/2009 15:00 janvier123#13
[Only registered and activated users can see links. Click Here To Register...]

done :)
08/29/2009 01:18 lelothebest#14
Thanks And Nice Work ...
but i have this error :
Fatal error: Call to undefined function mssql_connect() in C:\xampp\htdocs\Vote\vote.php on line 73

any help ?