Hello every one,,,
MOD Poll this MOD was made by excitex2 in spanish I just translate the instructions and the
admin.php,
main.php language files.
v1.0 (March 17, 2005, 10:07)
-
First release 5 fixed options
Panel of control
Modification of the name, the options and the polls.
Visualization of results
Graph of results.
Poll and I return the index
v2.0 (March 31, 2005, 12:47)
-
Second release Personalizable
10 variable options
Panel of Control
Modify the options, title and votes.
Add new fields of options
Erase fields of options.
Save and to close poll
Record of polls
Erase previous polls
Visualization of results
Graph of results.
Poll and come back to the page of results
Menu of previous polls
Option to restrict the access to the poll to users not registered
Option to put term between votes.
Format multi-language
Annotations of minimal options.
Warn of errors.
DEMO:
http://www.girlsandgirls.tk/ MOD Poll v2.0 Files to edit : 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/<your templates>/encuestas.html
templates/<your templates>/encuestas_result.html
templates/<your templates>/encuestas_histo_result.html
Othes Files
Groups of images for the poll graph. Instalation : -
Easy, 10 minutes.1º) Download the files from here
<< Here >>2º) Unzip the file
3º) Upload these files to the root :
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 the images6º) Upload to
admin/pluginsadmin_encuestas.php Note: If you don't have a folder called plugings create one and put the files there Modifications : Important!! : Do Not execute install_encuestas.php until not having realized the changes and upload the new files.
7º) Open File :
admin/backup.phpFind:
COMMENTS_TABLE,
add
after ENCUESTAS_TABLE,
Save changes8º) Open Files :
includes/constants.phpFind:
define('COMMENTS_TABLE', $table_prefix.'comments');
Add
afterdefine('ENCUESTAS_TABLE', $table_prefix.'encuestas');
Save changes9º) Open :
index.phpFind
require(ROOT_PATH.'includes/sessions.php');
add
afterinclude(ROOT_PATH.'encuestas.php');
Save changes10º) Open
templates/<your templates>/home.htmlAdd
<tr><td class="row2"><p align="center">{opci_encuestas}</td></tr>
whereever you want to place the poll
Save changes11º) Open
lang/<your language>/admin.phpFind:
?>
add
before :
[
//-----------------------------------------------------
//------------------- Encuestas -----------------------
//-----------------------------------------------------
$lang['maximas_opciones'] = "10";
$lang['pregunta'] = "Name of the Poll :";
$lang['cerrar'] = "Close";
$lang['nueva_opcion'] = "New option";
$lang['nuevas_opciones'] = "new options";
$lang['cerrar_encuesta'] = "Close and Save";
$lang['borrar_opciones'] = "Delete options";
$lang['borrar_opcion'] = "Detete ";
$lang['add_opciones'] = "Add new optiones";
$lang['config_opciones'] = "Edit the number of options";
$lang['actualizar_encuestas'] = "Refresh Poll";
$lang['guardar_modificacion'] = "Save";
$lang['opcion'] = "Option";
$lang['control_encuestas'] = "Poll Control";
$lang['nombre_opcion'] = "Name of the option";
$lang['borrar_total'] = "Delete previous options";
$lang['actualizar_pagina'] = "Refresh page";
$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,
please check the section </br><b><font color=\"FF0000\">Can vote </font></b> y <b><font color=\"FF0000\"> Time between the votes </font>
</b>,,, update 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\">select an small quantity</font>It has been edit to".
"<font color=\"FF0000\">".$lang['maximas_opciones']."</font> options </b>";
$lang['texto_aviso_minimo'] = "<b><font color=\"FF0000\">You cannot erase any more options,</font> in order to be a poll, you have to have two options.</b>";
$lang['texto_aviso_total'] = "<b><font color=\"FF0000\">You have to choose a poll.</font></b>";
$lang['texto_pregunta'] = "Insert the name of the poll";
$lang['texto_opciones'] = "Insert the option";
$lang['visitas'] = "Can vote :";
$lang['aceptar'] = "Acept";
$lang['tiempo_votos'] = "Time between polls";
$lang['hora'] = "time";
$lang['dia'] = "day";
$lang['minutos'] = "minutes";
$lang['semana'] = "week";
$lang['semanas'] = "weeks";
$lang['mes'] = "month";
12º) Open
lang/<your language>/main.phpFinde
?>
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']." at ".$lang['hora'];
$lang['autorizacion'] = "To be able to vote in the poll, you have that register first";
$lang['titulo'] = "Poll name :";
$lang['opciones'] = "Options";
$lang['recibido'] = "has recived :";
$lang['cerrado'] = "and closed the :";
$lang['comienzo'] = "This poll began :";
$lang['anteriores'] = "Previous polls :";
$lang['visualizar'] = "See polls";
$lang['puntuacion'] = "Punctuation";
$lang['porcentaje'] = "Percentage";
$lang['grafica'] = "Graph";
$lang['texto_opiniones'] = "Today, the opinions are the following ones:";
$lang['texto_total'] = "have answered a total";
$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'] = "Vote";
$lang['plazo_voto'] = "<p><b><font color=\"#FF0000\">No</font> You cannot submit another vote, have voted recently</b></p>";
OBSERVATIONS : This version is much more completed than the previous version, on having been more complex I have turned out to be the table of the data base forced to remake themr, in the previvious version was sequential and now it is linear to assume the record of the polls, therefore the users who have the version 1.0, they will have to erase the previous table as well 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 result of the poll and to introduce it manually in the new version, (they are not so manyr, they are 5 options and 5 polls).
Finally execute the
install_encuestas.php , then go to the panel of control and to enter the information of the form of the polls.
excitex2