Author Topic: [MOD] Poll v2.0 (with ACP integration) NEW VERSION!!!  (Read 205115 times)

0 Members and 1 Guest are viewing this topic.

Offline excitex2

  • Addicted member
  • ******
  • Posts: 1.590
  • He desactivado la galería y el buscador
    • View Profile
Re: [MOD] Poll v2.0 (with ACP integration) NEW VERSION!!!
« Reply #105 on: May 07, 2006, 09:35:53 PM »
Greetings,,,

You have modified the code of script.   

In order to correct badly the operation </form> erases the label that has inserted in template encuestas.html and modifies in encuestas.php the line:
Quote
</tr><tr><td width=\"100%\" align=\"center\" class=\"row1\">

by this other:
Quote
</tr><tr><td width=\"100%\" align=\"center\" class=\"row1\"></form>
   

 excitex2
Lo importante no es saber,,, lo importante es tener el E-Mail de quien sabe

b.o.fan

  • Guest
Re: [MOD] Poll v2.0 (with ACP integration) NEW VERSION!!!
« Reply #106 on: July 06, 2006, 10:25:50 AM »
hello, i have a problem with firefox.
the table with .gif image is not correct view, only firefox (see above)
> 0% is not 0%

who has here a solution??

greets ivan

ohh i ve this problem too... :(

Offline colorssky

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • http://www.nnjj.net
Re: [MOD] Poll v2.0 (with ACP integration) NEW VERSION!!!
« Reply #107 on: October 09, 2006, 11:55:13 PM »
I am getting this error

Warning: Cannot modify header information - headers already sent by (output started at /home/takfeed/public_html/shop/includes/db_mysql.php:190) in /home/takfeed/public_html/shop/encuestas_resultados.php on line 92

Warning: Cannot modify header information - headers already sent by (output started at /home/takfeed/public_html/shop/includes/db_mysql.php:190) in /home/takfeed/public_html/shop/encuestas_resultados.php on line 403

Offline colorssky

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • http://www.nnjj.net
Re: [MOD] Poll v2.0 (with ACP integration) NEW VERSION!!!
« Reply #108 on: October 16, 2006, 05:52:42 PM »
can some body help!!!!!!!!!!

DB Error: Bad SQL Query: SELECT user_t_images, user_name, user_id FROM 4images_users WHERE user_level >= '2' ORDER BY user_t_images DESC LIMIT 10
Unknown column 'user_t_images' in 'field list'
 

Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: [MOD] Poll v2.0 (with ACP integration) NEW VERSION!!!
« Reply #109 on: October 16, 2006, 05:57:30 PM »
No cross posting please....

Offline colorssky

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • http://www.nnjj.net
Re: [MOD] Poll v2.0 (with ACP integration) NEW VERSION!!!
« Reply #110 on: October 17, 2006, 01:57:58 AM »
it was new error  :roll:
hope I can find  some one a live to answer!

Offline __G__

  • Sr. Member
  • ****
  • Posts: 286
    • View Profile
Re: [MOD] Poll v2.0 (with ACP integration) NEW VERSION!!!
« Reply #111 on: October 17, 2006, 04:05:47 AM »
I have installed this mod it runs great just a quick question is there a way to run multiple POLLS :D

Offline colorssky

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • http://www.nnjj.net
Re: [MOD] Poll v2.0 (with ACP integration) NEW VERSION!!!
« Reply #112 on: October 20, 2006, 01:53:43 AM »
no soultions until now!  :twisted:

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] Poll v2.0 (with ACP integration) NEW VERSION!!!
« Reply #113 on: November 02, 2006, 12:31:20 AM »
Quote
9º) Open : index.php

Find

Code: [Select]
require(ROOT_PATH.'includes/sessions.php');
add after
Code: [Select]
include(ROOT_PATH.'encuestas.php');
Save changes


... if you want to show Poll on details.html ...
... then is step 9º) also necessary in details.php ...  :!:

( please, dont ask what to do if you want to show Poll on categories.html ...  :mrgreen: )

PS. please remove your details.html code ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline __G__

  • Sr. Member
  • ****
  • Posts: 286
    • View Profile
Re: [MOD] Poll v2.0 (with ACP integration) NEW VERSION!!!
« Reply #114 on: November 02, 2006, 01:49:51 AM »
Wow u made my day dude thanks a lot for your help it worked and i removed that detail.html thanks a lot for your help :X

Offline Parador

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: [MOD] Poll v2.0 (with ACP integration) NEW VERSION!!!
« Reply #115 on: November 04, 2006, 05:54:24 PM »
Hey Everybody,

someone asked how to change the cllickstream name for the result page...

I found a solution...

find the following line in your encuestas_resultados.php:
[qcode]
$clickstream .= $main_template;
[/qcode]

and replace it with:

[qcode]
$clickstream .= $lang['texto_titulo'];
[/qcode]

So it shows "Poll - Results" or anything you want .... (edit your lang files)


Offline __G__

  • Sr. Member
  • ****
  • Posts: 286
    • View Profile
Re: [MOD] Poll v2.0 (with ACP integration) NEW VERSION!!!
« Reply #116 on: December 20, 2006, 09:35:44 AM »
getting this error


An unexpected error occured. Please try again later.
Ejecución:
INSERT INTO `4images_encuestas` VALUES ('1_opcion', 'Excelente', 'Que opinas de esta galería ?', 0)


An unexpected error occured. Please try again later.
Ejecución:
INSERT INTO `4images_encuestas` VALUES ('2_opcion', 'Buena', 'Que opinas de esta galería ?', 0)


An unexpected error occured. Please try again later.
Ejecución:
INSERT INTO `4images_encuestas` VALUES ('3_opcion', 'Regular', 'Que opinas de esta galería ?', 0)


An unexpected error occured. Please try again later.
Ejecución:
INSERT INTO `4images_encuestas` VALUES ('4_opcion', 'Mala', 'Que opinas de esta galería ?', 0)


An unexpected error occured. Please try again later.
Ejecución:
INSERT INTO `4images_encuestas` VALUES ('5_opcion', 'Malísima', 'Que opinas de esta galería ?', 0)


Offline UFOSWORLD

  • Full Member
  • ***
  • Posts: 102
    • View Profile
Re: [MOD] Poll v2.0 (with ACP integration) NEW VERSION!!!
« Reply #117 on: April 11, 2007, 10:57:56 AM »
Hi Guys, have installed the mod..  after some errors it works...

but now...  wenn i vote and klick the result button... the result page is to width for my site...   

because my main site is just 640 pixel width....

editing the main site embeded plugin page (where to vote) worked, but the result page... doesnt fit after editing...

and everyvery in file stands 100% (tried 640, but doesnt work... then tried 450 because left side bar is 150 .. doesnt work...)

damn... what did i have to change to fix it??

screenshots are added

thx UFO

p.s.   how i get the green / in the result page away...  i edit the Font Color in the Result but its still green...  :-/ ARG

Offline manyaq

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: [MOD] Poll v2.0 (with ACP integration) NEW VERSION!!!
« Reply #118 on: April 19, 2007, 02:40:11 PM »
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
Code: [Select]
<?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>&nbsp;&nbsp;&nbsp;&nbsp;(por <?php echo $mod_author?>)</td></tr>
            <tr class="tablefooter"><td align="center">&nbsp;</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">&nbsp;</td></tr>
          </table>
        </td>
      </tr>
    </table>
  </table>
  <p align="center"> Powered by <b>4images</b> <?php echo SCRIPT_VERSION?><br />Copyright &copy; 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>&nbsp;&nbsp;&nbsp;&nbsp;(por <?php echo $mod_author?>)</td></tr>
          <tr class="tablefooter"><td align="center">&nbsp;</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 &copy; 2002 <a href="http://www.4homepages.de" target="_blank">4homepages.de</a><br /></p>
</body>
</html>

Offline Jan-Lukas

  • Addicted member
  • ******
  • Posts: 1.289
    • View Profile
    • Discover the New World of Kindersurprise
Re: [MOD] Poll v2.0 (with ACP integration) NEW VERSION!!!
« Reply #119 on: April 20, 2007, 10:11:03 PM »
Wie immer wurde hier etwas zu viel geschrieben ;)
es gibt hier zuviele verschiedene Codes, so das man hinterher nichts richtiges hat.
So gibt es z.B. 2 verschiedene MySQL Daten (install_encuestas.php )
in dem aus dem ersten Posting bekommt man im Admin einen Datenbank Fehler.
Dann gibt es noch eine install_encuestas.php die auch mit einer encuestas_histo.php arbeitet, da bekomme ich auf der Startseite (nur da) einen Fehler.

DB Error: Bad SQL Query: SELECT * FROM 4images_encuestas ORDER BY opci_nombre, opci_valor, pregunta, votos
Unknown column 'opci_nombre' in 'order clause'

kann mir mal einer einen Schubs geben, da ich annehme das zu der encuestas_histo.php noch einige Daten ergänzt werden müsste.
Nur kann ich da nichts finden.

Danke
Danke Harald