hey guys i am using 4images 1.7.4 and i have inregrate the phpbb 2.23 to my gallery and i tried to integrate this poll but i couldnt let it work i can see the mod with out any answers on my home page. i can see option page under the plugin side at my acp but when i try to make a new poll it says that a modifate the poll and i click to referesh and nothing happend.
i put a screenshot pic
and when i execute the install script it gives a error
An unexpected error occured. Please try again later.
Ejecución:
INSERT INTO `4images_encuestas` VALUES ('','Que opinas de esta galería ?', '0', '0', 'Persembe - 19 of Nisan of 2007 at 15:37', '', 'Opcion_1', 0, 'Opcion_2', 0, 'Opcion_3', 0, 'Opcion_4', 0, 'Opcion_5', 0, '', 0, '', 0, '', 0, '', 0, '', 0)
An unexpected error occured. Please try again later.
screenshot pic
and here is my code
<?php
define('ROOT_PATH', './');
include(ROOT_PATH.'global.php');
$mod_name = "Encuestas / Poll Versión 2.0";
$mod_author = "excitex";
$fecha= $lang['fecha'];
$sql_data = array(
"CREATE TABLE `".ENCUESTAS_TABLE."` (
orden int(2) unsigned NOT NULL auto_increment,
nombre varchar(50) NOT NULL default '',
visitante varchar(4) NOT NULL default '',
plazo_votacion varchar(10) NOT NULL default '',
fecha_inicio varchar(50) NOT NULL default '',
fecha_cierre varchar(50) NOT NULL default '',
opcion_1 varchar(30) NOT NULL default '',
votos_1 int(2) NOT NULL default '0',
opcion_2 varchar(30) NOT NULL default '',
votos_2 int(2) NOT NULL default '0',
opcion_3 varchar(30) NOT NULL default '',
votos_3 int(2) NOT NULL default '0',
opcion_4 varchar(30) NOT NULL default '',
votos_4 int(2) NOT NULL default '0',
opcion_5 varchar(30) NOT NULL default '',
votos_5 int(2) NOT NULL default '0',
opcion_6 varchar(30) NOT NULL default '',
votos_6 int(2) NOT NULL default '0',
opcion_7 varchar(30) NOT NULL default '',
votos_7 int(2) NOT NULL default '0',
opcion_8 varchar(30) NOT NULL default '',
votos_8 int(2) NOT NULL default '0',
opcion_9 varchar(30) NOT NULL default '',
votos_9 int(2) NOT NULL default '0',
opcion_10 varchar(30) NOT NULL default '',
votos_10 int(2) NOT NULL default '0',
KEY `orden` (`orden`)
)TYPE=MyISAM",
"INSERT INTO `".ENCUESTAS_TABLE."` VALUES ('','Que opinas de esta galería ?', '0', '0', '$fecha', '', 'Opcion_1', 0, 'Opcion_2', 0, 'Opcion_3', 0, 'Opcion_4', 0, 'Opcion_5', 0, '', 0, '', 0, '', 0, '', 0, '', 0)",
);
$error_log = array();
$error_msg = "";
if ($action == "modinstall") {
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=windows-1252" http-equiv="Content-Type">
<link rel="stylesheet" href="admin/cpstyle.css">
<title>4images Installer</title>
</head>
<body leftmargin="20" topmargin="20" marginwidth="20" marginheight="20" bgcolor="#FFFFFF">
<table cellpadding="0" cellspacing="0" border="0" width="500" align="center">
<tr><td class="tableborder"><img src="admin/images/logo_installer.gif" width="500" height="45"><br />
<table cellpadding="3" cellspacing="1" border="0" width="100%">
<tr class="tablerow2"><td><b>MOD: <?php echo $mod_name; ?></b> (por <?php echo $mod_author; ?>)</td></tr>
<tr class="tablefooter"><td align="center"> </td></tr>
</table>
<table cellpadding="3" cellspacing="1" border="0" width="100%">
<tr class="tablerow"><td colspan="2" align="right"></td></tr>
<tr class="tablerow2"><td colspan="2"><br /><blockquote>
<?php
$date = time();
$exist = 0;
$row = $site_db->query("SHOW tables");
while ($r = $site_db->fetch_array($row)) {
if ($r[0] == ENCUESTAS) {
$exist = 1;
break;
}
}
if (!$exist) {
foreach ($sql_data as $val){
echo ($change) ? "" : "Ejecución: <br>";
echo str_replace("\n", "<br />", $val)."<br /><br />";
if (!$site_db->query($val)) {
$error_log[] = str_replace("\n", "<br />", $val);
}
}
}
if (empty($error_log)) {
if ($exist) {
echo "<h4>.<br />No se ha realizado ningun cambio.</h4>";
}else{
echo "</blockquote><h4>Operación realizada con exito!</h4>";
}
}else{
echo "<a href=\"".$self_url."\">Intentarlo otra vez</a><br />";
}
echo "<a href=\"./\">Volver a la galería</a>";
?>
</blockquote></td></tr>
<tr class="tablefooter"><td colspan="2"> </td></tr>
</table>
</td>
</tr>
</table>
</table>
<p align="center"> Powered by <b>4images</b> <?php echo SCRIPT_VERSION; ?><br />Copyright © 2002 <a href="http://www.4homepages.de" target="_blank">4homepages.de</a><br /></p>
</body>
</html>
<?php
exit;
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=windows-1252" http-equiv="Content-Type">
<link rel="stylesheet" href="admin/cpstyle.css">
<title>4images Instalador</title>
</head>
<body leftmargin="20" topmargin="20" marginwidth="20" marginheight="20" bgcolor="#FFFFFF">
<form action="<?php echo $self_url; ?>" name="form" method="post">
<table cellpadding="0" cellspacing="0" border="0" width="500" align="center">
<tr><td class="tableborder"><img src="admin/images/logo_installer.gif" width="500" height="45"><br />
<table cellpadding="3" cellspacing="1" border="0" width="100%">
<tr class="tablerow2"><td><b>MOD: <?php echo $mod_name; ?></b> (por <?php echo $mod_author; ?>)</td></tr>
<tr class="tablefooter"><td align="center"> </td></tr>
</table>
<table cellpadding="3" cellspacing="1" border="0" width="100%">
<tr class="tablerow"><td colspan="2" align="right"></td></tr>
<tr class="tablerow2"><td colspan="2"><center>
Esta aplicación modificará la base de datos de tu galería, por favor<br><b>
<font color="#FF0000">HAZ UNA COPIA DE SEGURIDAD DE LA BASE DE DATOS ANTES DE EJECUTAR ESTA APLICACION!</b></font><br><br>
Por favor comprueba todos los campos que se muestran abajo.<br>
Si no corresponden con tus datos, por favor<br><b>NO EJECUTES ESTA APLICACION</b>!
</center></td></tr>
<tr class="tableheader"><td colspan="2"><b><span class="tableheader">Configuración de la base de datos </span></b></td></tr>
<tr class="tablerow"><td>Tipo de servidor de la base de datos</td><td><?php echo $db_servertype; ?></td></tr>
<tr class="tablerow2"><td>Nombre del servidor donde está instalada la base de datos</td><td><?php echo stripslashes($db_host); ?></td></tr>
<tr class="tablerow"><td>Nombre de la base de datos</td><td><?php echo stripslashes($db_name); ?></td></tr>
<tr class="tablerow2"><td>Prefijo de la TABLA en la base de datos</td><td><?php echo stripslashes($table_prefix); ?></td></tr>
<tr class="tablefooter"><td colspan="2"><center><input type="hidden" name="action" value="modinstall"><input type="submit" value="Iniciar aplicación" class="button" name="submit"></center></td></tr>
</table>
</td>
</tr>
</table>
</form>
<p align="center"> Powered by <b>4images</b> <?php echo SCRIPT_VERSION ; ?><br />Copyright © 2002 <a href="http://www.4homepages.de" target="_blank">4homepages.de</a><br /></p>
</body>
</html>