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

0 Members and 1 Guest are viewing this topic.

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: [MOD] Poll v1.0 (with ACP integration) NEW!!!
« Reply #15 on: March 19, 2005, 11:46:38 PM »
Regards,,,

The new version will not be ended up to the next week.

excitex2

OK, i can wait..... ;)
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: [MOD] Poll v1.0 (with ACP integration) NEW!!!
« Reply #16 on: March 31, 2005, 06:03:00 PM »
Hi,

my Question. Does anyone work on the Version 2 of this Mod????

I´m very interested of this...
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline ascanio

  • Hero Member
  • *****
  • Posts: 569
    • View Profile
    • http://www.surfourspace.net
Re: [MOD] Poll v1.0 (with ACP integration) NEW!!!
« Reply #17 on: April 01, 2005, 07:53:59 PM »
Hi,

my Question. Does anyone work on the Version 2 of this Mod????

I´m very interested of this...

Hi I update the first post ;) now is the new version I hope you like it

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: [MOD] Poll v2.0 (with ACP integration) NEW VERSION!!!
« Reply #18 on: April 02, 2005, 08:44:13 AM »
Hi,

i tested it and i think it works. But i have a Question.

When i click on an Option at the Poll i come to the Result Site. But i don´t see my vote. Now when i reload the site i see it.
When a User Vote they say  "I have vote but i don´t see my Vote" :( Not good....

And now see the Table.

The Words Optionen and Grafik are in the middle and the words Stimmen and Prozent are on Top

http://www.terraristik-galerie.de/encuestas_resultados.php
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline BartAfterDark

  • Hero Member
  • *****
  • Posts: 520
    • View Profile
Re: [MOD] Poll v2.0 (with ACP integration) NEW VERSION!!!
« Reply #19 on: April 02, 2005, 01:28:41 PM »
why not change all files.
So they are in english instead of spanish. the urls are getting to messy

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 #20 on: April 02, 2005, 03:49:04 PM »
Regards,,,

The MOD is put in the INTERNATIONAL/ ESPAÑOL CASTELLANO forum, because I do not speak english and it might not solve the problems that go out.

MOD Enuestas / Poll version 2.0 : http://www.4homepages.de/forum/index.php?topic=7162.msg31542#msg31542

Other users realize the translation of the MOD to the english to install it here

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

Offline ascanio

  • Hero Member
  • *****
  • Posts: 569
    • View Profile
    • http://www.surfourspace.net
Re: [MOD] Poll v2.0 (with ACP integration) NEW VERSION!!!
« Reply #21 on: April 02, 2005, 07:26:16 PM »
why not change all files.
So they are in english instead of spanish. the urls are getting to messy
I just translate the MOD, I don´t have enoght knowlege oh PHP to solve all the questions. I u want u are free to translate all the files

Offline BartAfterDark

  • Hero Member
  • *****
  • Posts: 520
    • View Profile
Re: [MOD] Poll v2.0 (with ACP integration) NEW VERSION!!!
« Reply #22 on: April 06, 2005, 04:36:30 PM »
why not change all files.
So they are in english instead of spanish. the urls are getting to messy
I just translate the MOD, I don´t have enoght knowlege oh PHP to solve all the questions. I u want u are free to translate all the files

hehe thanks :P
It would take some time. I'll maybe do it. But can't tell atm. (school and other stuff got first priority)

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 #23 on: April 07, 2005, 11:23:14 PM »
Regards,,,
In a previous post I announced that would put the MOD translated into the English.
The problem is that I do not speak English, I have used for the translation a translator of the net.
Please, you correct my mistakes in the translation.
Thank you.

MOD Encuestas / Poll versión 2.0.

Files to modifying :
index.php
admin/backup.php
includes/constants.php
templates/your_templates/home.html
lang/Your_language/admin.php
lang/Your_language/main.php

New files :
encuestas.php
encuestas_resultados.php
encuestas_histo.php
install_encuestas.php
admin/plugins/admin_encuestas.php
templates/default/encuestas.html
templates/default/encuestas_result.html
templates/default/encuestas_histo_result.html

Complementary files
Group of images for the graph of results.


Instalation :

1º)To unload the new files and the images << HERE >>

2º)Open the file ZIP

3º) Upload to the principal directory the files
encuestas.php
encuestas_resultados.php
encuestas_histo.php
install_encuestas.php


4º) Upload to templates/your_templates :
encuestas.html
encuestas_result.html
encuestas_histo_result.html


5º)Upload to templates/your_templates/images
All 36 images

6º)Upload to admin/plugins
admin_encuestas.php

NOTICES: in case the folder "PLUGINS" does not exist in yours directory,, to create and to realize by the point 6 º

Modifications :

Very importantly : Not execute install_encuestas.php Until everything has not realized the changes and raised the new files.

7º)Open : admin/backup.php

locate
Code: [Select]
COMMENTS_TABLE, add later
Code: [Select]
ENCUESTAS_TABLE, Save change

8º) Open :   includes/constants.php
locate
Code: [Select]
define('COMMENTS_TABLE', $table_prefix.'comments');add later
Code: [Select]
define('ENCUESTAS_TABLE', $table_prefix.'encuestas');Save change

9º) Open : index.php

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

10º) Open templates/your_templates/home.html

Add

Code: [Select]
<tr><td class="row2"><p align="center">{opci_encuestas}</td></tr>Where you wish that the form of the poll is visualized.

Code: [Select]
Save change.
11º) Open :lang/Your_language/admin.php

locate

Code: [Select]
?>
add before :
Code: [Select]
//-----------------------------------------------------
//------------------- Encuestas -----------------------
//-----------------------------------------------------
$lang['maximas_opciones'] = "10";
$lang['pregunta'] = "Name Poll :";
$lang['cerrar'] = "Close";
$lang['nueva_opcion'] = "new option";
$lang['nuevas_opciones'] = "new options";
$lang['cerrar_encuesta'] = "Close / Salve poll";
$lang['borrar_opciones'] = "erase options";
$lang['borrar_opcion'] = "To erase the ";
$lang['add_opciones'] = "Add new options";
$lang['config_opciones'] = "Config number of options";
$lang['actualizar_encuestas'] = "To update poll";
$lang['guardar_modificacion'] = "Save modification";
$lang['opcion'] = "Option";
$lang['control_encuestas'] = "Control of poll";
$lang['nombre_opcion'] = "Name of the option";
$lang['borrar_total'] = "Erase poll previus";
$lang['actualizar_pagina'] = "To update page";
$lang['texto_visitas'] = "<b>You have modified who can vote in the survey,,, please it updates the page  </b>";
$lang['texto_guardar_modificacion'] = "<b>You have modified the poll,,, please it updates the page  </b>";
$lang['texto_add_opcion'] = "<b>You have added new opciónes to the poll,,, please it updates the page  </b>";
$lang['texto_borrar_opciones'] = "<b>You have erased an option of the poll,,, please it updates the page  </b>";
$lang['texto_cerrar_encuestas'] = "<b>You have closed and save the poll,,, and the new one has been created,,
 please it updates the page </br><b><font color=\"FF0000\">They can vote </font></b> and <b><font color=\"FF0000\"> Time between votings </font>
</b>,,, please it updates the page  </b>";
$lang['texto_borrar_total'] = "<b>You have erased a previous poll of the record,,, please it updates the page  </b>";
$lang['texto_aviso'] = "<b><font color=\"FF0000\">It selects a minor quantity </font>A maximum has been config of".
"<font color=\"FF0000\">".$lang['maximas_opciones']."</font> optios </b>";
$lang['texto_aviso_minimo'] = "<b><font color=\"FF0000\">You cannot erase any more options,,,</font> In order that it is a poll,,, since minimum has to have two options .</b>";
$lang['texto_aviso_total'] = "<b><font color=\"FF0000\">You have to choose a poll .</font></b>";
$lang['texto_pregunta'] = "It inserts the name of the poll";
$lang['texto_opciones'] = "Inserts the option";
$lang['visitas'] = "They can vote :";
$lang['aceptar'] = "Accept";
$lang['tiempo_votos'] = "Time between votings";
$lang['hora'] = "Hour";
$lang['dia'] = "Day";
$lang['minutos'] = "Minutes";
$lang['semana'] = "Week";
$lang['semanas'] = "Weeks";
$lang['mes'] = "Month";

12º) Open lang/Your_language/main.php

locate

Code: [Select]
?>
add before :

Code: [Select]
//---------------------------------------------------------------------------
// ------------------------------- Encuestas --------------------------------
//---------------------------------------------------------------------------
$lang['hora'] = date("H:i");
$lang['dia_semana'] = array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
$lang['dia'] = date("j");
$lang['mes'] = array("December", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November");
$lang['anyo'] = date("Y");
$lang['fecha'] = $lang['dia_semana'][date('w')]." - ".$lang['dia']." of ".$lang['mes'][date("n")]." of ".$lang['anyo']." to them ".$lang['hora'];
$lang['autorizacion'] = "To be able to vote in the survey, you have that register first";
$lang['titulo'] = "Name poll :";
$lang['opciones'] = "Options";
$lang['recibido'] = "has received :";
$lang['cerrado'] = "And was closed :";
$lang['comienzo'] = "This poll began :";
$lang['anteriores'] = "Previous polls :";
$lang['visualizar'] = "To see polls";
$lang['puntuacion'] = "Punctuation";
$lang['porcentaje'] = "Percentage";
$lang['grafica'] = "Graph";
$lang['texto_opiniones'] = "Up today, the opinions are the following ones :";
$lang['texto_total'] = "They have answered a whole of ";
$lang['texto_pregunta'] = "To the question : ";
$lang['texto_titulo'] = "Polls - Opinions";
$lang['texto_titulo_anteriores'] = "Polls - Opinions - Previous";
$lang['maximas_opciones'] = 10;
$lang['usuarios'] = "users";
$lang['encuestas'] = "Polls";
$lang['opinar'] = "Opinion";
$lang['plazo_voto'] = "<p><b><font color=\"#FF0000\">Not</font> you can express another vote, have voted recently</b></p>";

OBSERVACIONES : This version is much more complete than the previous version, to the being mas complex I have met obliged to modify the table of the data base, before was sequential and now is linear to assume the record of the surveys, therefore the users who have the version 1.0, they will have to erase the previous table like that as the files that do not coincide with this version, having present that before erasing the information of the data base, from the panel of control to do a copy to hand of them result of the survey and to introduce it manually in the new version (they are not so many people either they are 5 options and 5 votings) .

Finally to execute install_encuestas.php,,,, To go later to the panel of control and to enter the information of the form of the surveys.

excitex2

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

Offline lachendepaul

  • Newbie
  • *
  • Posts: 40
    • View Profile
Re: [MOD] Poll v2.0 (with ACP integration) NEW VERSION!!!
« Reply #24 on: April 14, 2005, 12:01:45 PM »
This is very crazy, but if I try modify the poll in the admin this does not succeed.
If I want adapt on for example close and Save and I see changing nothing when i pressed on the close button.
In fact everything what I want change in the bottom table are not passed on and remain therefore unaltered.

And i dont see this sentences below when i change something:
$lang['texto_visitas'] = "<b>You have modified the one who can vote in the poll, please updates the page </b>";
$lang['texto_guardar_modificacion'] = "<b>You have modified the poll, please it updates the page </b>";
$lang['texto_add_opcion'] = "<b>You have added news opciónes to the poll, please it updates the page  </b>";
$lang['texto_borrar_opciones'] = "<b>You have erased an option of the poll, please it updates the page  </b>";
$lang['texto_cerrar_encuestas'] = "<b>You have closed and saved the poll, and new ones has been created </b>";

Offline ascanio

  • Hero Member
  • *****
  • Posts: 569
    • View Profile
    • http://www.surfourspace.net
Re: [MOD] Poll v2.0 (with ACP integration) NEW VERSION!!!
« Reply #25 on: April 14, 2005, 01:17:04 PM »
Hi, have you try after making a change press the buttom that says  Refresh page?

Offline lachendepaul

  • Newbie
  • *
  • Posts: 40
    • View Profile
Re: [MOD] Poll v2.0 (with ACP integration) NEW VERSION!!!
« Reply #26 on: April 14, 2005, 01:45:12 PM »
There is no button that refresh the page?
See the printscreen in my attachment!
(I have only change the language in dutch)

It is possible to vote.
But the votes are not registered in the database so all results remain on 0 (zero)

Offline ascanio

  • Hero Member
  • *****
  • Posts: 569
    • View Profile
    • http://www.surfourspace.net
Re: [MOD] Poll v2.0 (with ACP integration) NEW VERSION!!!
« Reply #27 on: April 14, 2005, 03:07:19 PM »
The buttom appears just when u make a change on the poll:


Offline lachendepaul

  • Newbie
  • *
  • Posts: 40
    • View Profile
Re: [MOD] Poll v2.0 (with ACP integration) NEW VERSION!!!
« Reply #28 on: April 14, 2005, 04:13:13 PM »
That button is not on my page  8O
But its also in script:

Code: [Select]
//////////////////////////////////////////////////////////////
// Rutina de borrado total de registros de la base de datos //
//////////////////////////////////////////////////////////////

if ($control == liquidar_encuesta) {

if ($borrado_total>=1){
$sql = "DELETE FROM ".ENCUESTAS_TABLE."
        WHERE orden = '$borrado_total'";
$site_db->query($sql);
echo <<<FINAL

<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
  <tr>
    <td width="50%" align="center">
        <form method="post" action="admin_encuestas.php">
      <p>$texto_borrar_total &nbsp;&nbsp;&nbsp; <input type="submit" value=" $actualizar_pagina " class="button">&nbsp;&nbsp;
      </p>
    </form>
    </td>
  </tr>
</table>
FINAL;
}
else
{
echo <<<AVISO_TOTAL
<p></p>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
  <tr>
    <td width="50%" align="center">
     <p>$texto_aviso_total</p>
    </td>
  </tr>
</table>
AVISO_TOTAL;
}

}

So what is the problem??
I have only change the language!

Offline ascanio

  • Hero Member
  • *****
  • Posts: 569
    • View Profile
    • http://www.surfourspace.net
Re: [MOD] Poll v2.0 (with ACP integration) NEW VERSION!!!
« Reply #29 on: April 14, 2005, 04:22:04 PM »
PM too excitex, he is the one who make this MOD