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.php4º) Upload to
templates/your_templates :encuestas.html
encuestas_result.html
encuestas_histo_result.html5º)Upload to
templates/your_templates/imagesAll 36 images6º)Upload to
admin/pluginsadmin_encuestas.phpNOTICES: 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.phplocate
COMMENTS_TABLE,
add later
ENCUESTAS_TABLE,
Save change8º) Open :
includes/constants.phplocate
define('COMMENTS_TABLE', $table_prefix.'comments');
add later
define('ENCUESTAS_TABLE', $table_prefix.'encuestas');
Save change9º) Open :
index.phplocate
require(ROOT_PATH.'includes/sessions.php');
add later
include(ROOT_PATH.'encuestas.php');
Save change10º) Open
templates/your_templates/home.htmlAdd
<tr><td class="row2"><p align="center">{opci_encuestas}</td></tr>
Where you wish that the form of the poll is visualized.
Save change.
11º) Open :
lang/Your_language/admin.phplocate
?>
add before :
//-----------------------------------------------------
//------------------- 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.phplocate
?>
add before :
//---------------------------------------------------------------------------
// ------------------------------- 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