|
You last visited: Today at 09:33
Advertisement
[HELP]Vote
Discussion on [HELP]Vote within the Dekaron Private Server forum part of the Dekaron category.
08/06/2009, 10:15
|
#1
|
elite*gold: 0
Join Date: May 2008
Posts: 238
Received Thanks: 8
|
[HELP]Vote
hello everybody .
can some one give me vote script ?
vote for coins ?
this script :
or EG dekaron one ,, or any simple one ..
thanks .
|
|
|
08/06/2009, 10:42
|
#2
|
elite*gold: 20
Join Date: Nov 2007
Posts: 2,854
Received Thanks: 1,891
|
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
|
#3
|
elite*gold: 0
Join Date: Dec 2007
Posts: 690
Received Thanks: 66
|
its not very simple actually, need some msql plugins
|
|
|
08/06/2009, 20:40
|
#4
|
elite*gold: 0
Join Date: May 2008
Posts: 238
Received Thanks: 8
|
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
|
#5
|
elite*gold: 0
Join Date: Jan 2008
Posts: 20,285
Received Thanks: 7,684
|
reported
doublepost
|
|
|
08/08/2009, 11:00
|
#6
|
elite*gold: 20
Join Date: Nov 2007
Posts: 2,854
Received Thanks: 1,891
|
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
|
#7
|
elite*gold: 0
Join Date: Dec 2008
Posts: 23
Received Thanks: 2
|
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
|
#8
|
elite*gold: 20
Join Date: Nov 2007
Posts: 2,854
Received Thanks: 1,891
|
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'> </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
|
#9
|
elite*gold: 0
Join Date: May 2008
Posts: 238
Received Thanks: 8
|
thx ... i'll try to get it too .
|
|
|
08/08/2009, 18:58
|
#10
|
elite*gold: 0
Join Date: Jul 2009
Posts: 158
Received Thanks: 57
|
Quote:
Originally Posted by janvier123
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'> </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
|
#11
|
elite*gold: 20
Join Date: Nov 2007
Posts: 2,854
Received Thanks: 1,891
|
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
|
#12
|
elite*gold: 0
Join Date: May 2008
Posts: 238
Received Thanks: 8
|
this one will not help ...
coz it choose the whole character list xD
|
|
|
08/28/2009, 15:00
|
#13
|
elite*gold: 20
Join Date: Nov 2007
Posts: 2,854
Received Thanks: 1,891
|
done
|
|
|
08/29/2009, 01:18
|
#14
|
elite*gold: 0
Join Date: May 2008
Posts: 238
Received Thanks: 8
|
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 ?
|
|
|
All times are GMT +1. The time now is 09:35.
|
|