Seite 1 von 2
Admin Voting 1.1.7
Verfasst: 03.12.2003 18:21
von Bully
hab ich installiert.
datenbank mit dem script behadelt

trotzdem, sichtbar sind nur die namen, die abgestimmt haben, aber nicht wofür.
Allows forum administrators, via the Admin Control
Panel, to see who voted in a poll and, optionally,HOW they voted.
auch bei neuen umfragen
kein + zeichen
ist da was falsch?
$sql = "INSERT INTO " . VOTE_USERS_TABLE . " (vote_id, vote_user_id, vote_user_ip, vote_cast)
VALUES ($vote_id, " . $userdata['user_id'] . ", '$user_ip', $vote_option_id)";
oder wo sind andere fehlerquellen zu suchen?
Verfasst: 03.12.2003 18:29
von Henne
Wird denn alles in die DB geschrieben?
Verfasst: 03.12.2003 19:00
von Bully
in der datenbank sind diese tabellen bezüglich vote:
phpbb_vote_desc
phpbb_vote_results
phpbb_vote_voters
ausgeführt habe ich dieses script:
<?
// Add Admin Voting database field(s)
// Version 1.1.7
ErDrRon@aol.com
// N.B. This script installs the necessary database field for the Admin Voting MOD.
// This script will only work with a mySQL database. Only use this script
// for the initial installation of the MOD. If you are re-installing the MOD
// or updating the version of the MOD, DO NOT run this script! Delete this
// script from your webserver after successful installation of the MOD.
// Connect to phpbb database
//
include('./config.php');
$cnx = mysql_connect($dbhost, $dbuser, $dbpasswd)
or die("Unable to connect to database server.");
mysql_select_db($dbname, $cnx)
or die("Unable to select database.");
// Add field 'vote_cast' to database table 'vote_voters'
//
$sql = "ALTER TABLE " . $table_prefix . "vote_voters " .
"ADD vote_cast TINYINT( 4 ) UNSIGNED " .
"DEFAULT '0' NOT NULL";
$result = mysql_query($sql);
if(!$result)
echo "Install failed<BR><BR>";
if (mysql_error()) { echo "Error Report: <B>".mysql_error()."</B><BR><BR>"; }
else
{
echo "Install complete: Admin Voting database field added successfully.<BR><BR><BR>Remember to delete this script ASAP.";
}
exit;
?>
han i da was falsches?
Verfasst: 03.12.2003 19:15
von Henne
Ne, das ist schon alle korrekt.
Ich wollte aber eigentlich wissen, ob die entsprechenden User-IDs in die Spalte vote_cast geschrieben werden.
Verfasst: 03.12.2003 19:24
von Bully
das wäre die tabelle für vote_cast
[ externes Bild ]
Verfasst: 03.12.2003 19:40
von Bully
liegt es vielleicht an der boardversion (2.0.3) ???
Verfasst: 03.12.2003 19:55
von Henne
Nen Update ist so oder so zu empfehlen.
Würd ich auf jeden Fall machen.
Guck doch mal rein in die Tabelle.
Der Inhalt ist doch interessant.
Verfasst: 03.12.2003 19:59
von Bully
wie denn
so gut komm ich mit phpmyadmin och nicht klar

Verfasst: 04.12.2003 10:34
von Bully
das teil tut insoweit, das ich es mit dem ie sehe.
unter linux mit opera 7.11 sind die +-kästchen einfach nicht sichtbar.
würd mal behaupten, ist ein browserproblem

Verfasst: 04.12.2003 14:21
von Henne
Liegt vielleicht an dem JavaScript. Müsste man mal schauen, ob andere das Problem auch haben.
Werd das nachher zu Hause mal probieren.