Poll Hack by xillibit

Kunena-Version: 1.0.11
version: 0.1.6.1
________________________________________________________________________________________

Attention! It overrides the following files:

components/com_kunena/template/default/post.php
components/com_kunena/template/default/fb_write.html.php
components/com_kunena/template/default_ex/view.php
components/com_kunena/kunena.php
components/com_kunena/class.kunena.php
components/com_kunena/lib/kunena.config.class.php
administrator/components/com_kunena/admin.kunena.html.php
administrator/components/com_kunena/admin.kunena.php
administrator/components/com_kunena/Kunena_config.php

_________________________________________________________________________________________

This hack need to create new tables in the database, make sure before to use this hack to load the file polltables.sql and change if need the prefix if our tables don't start by jos_.
_________________________________________________________________________________________

You need an additional language string for display new srtings. If you have translations for others languages tell me.

Insert it here:

administrator/components/com_kunena/language/kunena.YOURLANGUAGE.php

For English :

DEFINE('_KUNENA_POLL_ADD', 'Add a new poll');
DEFINE('_KUNENA_POLL_TITLE', 'Poll title');
DEFINE('_KUNENA_POLL_ADD_OPTION', 'Add a new option');
DEFINE('_KUNENA_POLL_REM_OPTION', 'Remove a option');
DEFINE('_KUNENA_POLL_OPTION_NAME', 'Option');
DEFINE('_KUNENA_POLL_BUTTON_VOTE', 'Vote');
DEFINE('_KUNENA_POLL_BUTTON_RESULT', 'View results');
DEFINE('_KUNENA_POLL_NO_VOTE', 'No vote');
DEFINE('_KUNENA_POLL_VOTERS_TOTAL', 'Total number of voters : ');
DEFINE('_KUNENA_POLL_HITS_OPTIONS', 'Number of people who voted for this');
DEFINE('_KUNENA_A_HACK_POLL_TITLE', 'Hack poll');
DEFINE('_KUNENA_A_POLL_NUMBER_OPTIONS', 'Number of options for the polls');
DEFINE('_KUNENA_A_POLL_NUMBER_OPTIONS_DESC', 'Set the number maximum allowed for the field options for the polls when the users create a new post');
DEFINE('_KUNENA_POLL_SAVE_ALERT_OK', 'Your vote has been saved with succes');
DEFINE('_KUNENA_POLL_SAVE_ALERT_ERROR', 'A problem has prevented to save your vote');
DEFINE('_KUNENA_POLL_SAVE_VOTE_ALREADY', 'You have already voted for this poll !!');
DEFINE('_KUNENA_A_POLL_ALLOW_ONE_VOTE', 'Allow user to vote one time for a poll');
DEFINE('_KUNENA_A_POLL_ALLOW_ONE_VOTE_DESC', 'Allow user to vote only one time for a poll');
DEFINE('_KUNENA_POLL_NUMBER_OPTIONS_MAX_NOW', 'The maximum options numbers is reach');
DEFINE('_KUNENA_POLL_SAVE_ALERT_ERROR_NOT_CHECK', 'You must check a box for vote to this poll!!');
DEFINE('_KUNENA_A_POLL_ENABLED', 'Enabled');
DEFINE('_KUNENA_A_ENABLED_DESC', 'Allow to enable or disable the hack poll');
DEFINE('_KUNENA_POLL_NAME', 'Poll : ');
DEFINE('_KUNENA_POLL_OPTIONS', 'Poll options');
DEFINE('_KUNENA_ADMIN_POLLS', 'Polls Settings');
DEFINE('_KUNENA_POLL_NAME_URL_RESULT', 'Return to the topic');

For French :

DEFINE('_KUNENA_POLL_ADD', 'Ajouter un sondage');
DEFINE('_KUNENA_POLL_TITLE', 'Titre du sondage');
DEFINE('_KUNENA_POLL_ADD_OPTION', 'Ajouter une option');
DEFINE('_KUNENA_POLL_REM_OPTION', 'Supprimer une option');
DEFINE('_KUNENA_POLL_OPTION_NAME', 'Option');
DEFINE('_KUNENA_POLL_BUTTON_VOTE', 'Voter');
DEFINE('_KUNENA_POLL_BUTTON_RESULT', 'Voir les rsultats');
DEFINE('_KUNENA_POLL_NO_VOTE', 'Aucun vote');
DEFINE('_KUNENA_POLL_VOTERS_TOTAL', 'Nombre total de votants : ');
DEFINE('_KUNENA_POLL_HITS_OPTIONS', 'Nombre de personnes ayant vots pour ceci');
DEFINE('_KUNENA_A_HACK_POLL_TITLE', 'Hack poll');
DEFINE('_KUNENA_A_POLL_NUMBER_OPTIONS', 'Nombre d\'options pour les sondages');
DEFINE('_KUNENA_A_POLL_NUMBER_OPTIONS_DESC', 'Dfinir le nombre maximal d\'options autoriss pour les champs des sondages lors de la cration d\'un post');
DEFINE('_KUNENA_POLL_SAVE_ALERT_OK', 'Votre vote a t enregistr avec succs');
DEFINE('_KUNENA_POLL_SAVE_ALERT_ERROR', 'Un problme a empch de sauver votre votre');
DEFINE('_KUNENA_POLL_SAVE_VOTE_ALREADY', 'Vous avez dj vot pour ce sondage !!');
DEFINE('_KUNENA_A_POLL_ALLOW_ONE_VOTE', 'Autoriser l\'utilisateur a voter une seule fois');
DEFINE('_KUNENA_A_POLL_ALLOW_ONE_VOTE_DESC', 'Autoriser l\'utilisateur a vot seulement un fois au sondage');
DEFINE('_KUNENA_POLL_NUMBER_OPTIONS_MAX_NOW', 'Le nombre maximal d\'options est atteint');
DEFINE('_KUNENA_POLL_SAVE_ALERT_ERROR_NOT_CHECK', 'Vous devez cocher une case pour voter  ce sondage !!');
DEFINE('_KUNENA_A_POLL_ENABLED', 'Activ');
DEFINE('_KUNENA_A_ENABLED_DESC', 'Permet d'activer ou dsactiver l'hack poll');
DEFINE('_KUNENA_POLL_NAME', 'Sondage : ');
DEFINE('_KUNENA_POLL_OPTIONS', 'Options du sondage');
DEFINE('_KUNENA_ADMIN_POLLS', 'Paramtres des sondages');
DEFINE('_KUNENA_POLL_NAME_URL_RESULT', 'Retournez au sujet');

For Italian :

DEFINE('_KUNENA_POLL_ADD', 'Aggiungi sondaggio');
DEFINE('_KUNENA_POLL_TITLE', 'Titolo sondaggio');
DEFINE('_KUNENA_POLL_ADD_OPTION', '+ opzione');
DEFINE('_KUNENA_POLL_REM_OPTION', '- opzione');
DEFINE('_KUNENA_POLL_OPTION_NAME', 'Opzione');
DEFINE('_KUNENA_POLL_BUTTON_VOTE', 'Vota');
DEFINE('_KUNENA_POLL_BUTTON_RESULT', 'Vedi risultati');
DEFINE('_KUNENA_POLL_NO_VOTE', 'Nessun voto');
DEFINE('_KUNENA_POLL_VOTERS_TOTAL', 'Numero totale di votanti : ');
DEFINE('_KUNENA_POLL_HITS_OPTIONS', 'Numero votanti');
DEFINE('_KUNENA_A_HACK_POLL_TITLE', 'Hack sondaggi');
DEFINE('_KUNENA_A_POLL_NUMBER_OPTIONS', 'Numero delle opzioni per i sondaggi');
DEFINE('_KUNENA_A_POLL_NUMBER_OPTIONS_DESC', 'Numero massimo delle opzioni disponibili quando un utente crea un nuovo sondaggio');
DEFINE('_KUNENA_POLL_SAVE_ALERT_OK', 'Il tuo voto  stato registrato.');
DEFINE('_KUNENA_POLL_SAVE_ALERT_ERROR', 'Un problema ha impedito il salvataggio del tuo voto');
DEFINE('_KUNENA_POLL_SAVE_VOTE_ALREADY', 'Hai gi votato per questo sondaggio !!');
DEFINE('_KUNENA_A_POLL_ALLOW_ONE_VOTE', 'permetti agli utenti di dare un solo voto');
DEFINE('_KUNENA_A_POLL_ALLOW_ONE_VOTE_DESC', 'Permetti di votare una sola volta');
DEFINE('_KUNENA_POLL_NUMBER_OPTIONS_MAX_NOW', 'Hai raggiunto il numero massimo di opzioni consentite');
DEFINE('_KUNENA_POLL_SAVE_ALERT_ERROR_NOT_CHECK', 'per votare in questo sondaggio devi selezionare una casella!');
DEFINE('_KUNENA_A_POLL_ENABLED', 'Abilitato');
DEFINE('_KUNENA_A_ENABLED_DESC', 'Permetti di abilitare e disabilitare i sondaggi');
DEFINE('_KUNENA_POLL_NAME', 'Sondaggio : ');
DEFINE('_KUNENA_POLL_OPTIONS', 'esprimi la tua opinione!');

For Spanish :

DEFINE('_KUNENA_POLL_ADD', 'Aadir nueva encuesta');
DEFINE('_KUNENA_POLL_TITLE', 'Ttulo de la encuesta');
DEFINE('_KUNENA_POLL_ADD_OPTION', 'Aadir nueva opcin');
DEFINE('_KUNENA_POLL_REM_OPTION', 'Eliminar opcin');
DEFINE('_KUNENA_POLL_OPTION_NAME', 'Opcin');
DEFINE('_KUNENA_POLL_BUTTON_VOTE', 'Votar');
DEFINE('_KUNENA_POLL_BUTTON_RESULT', 'Ver resultados');
DEFINE('_KUNENA_POLL_NO_VOTE', 'No hay votos');
DEFINE('_KUNENA_POLL_VOTERS_TOTAL', 'Nmero total de votos: ');
DEFINE('_KUNENA_POLL_HITS_OPTIONS', 'Nmero de personas que han votado');
DEFINE('_KUNENA_A_HACK_POLL_TITLE', 'Hack poll');
DEFINE('_KUNENA_A_POLL_NUMBER_OPTIONS', 'Nmero de opciones para esta encuesta');
DEFINE('_KUNENA_A_POLL_NUMBER_OPTIONS_DESC', 'Nmero mximo de opciones por encuesta');
DEFINE('_KUNENA_POLL_SAVE_ALERT_OK', 'Tu voto ha sido enviado');
DEFINE('_KUNENA_POLL_SAVE_ALERT_ERROR', 'Un problema ha impedido guardar tu voto');
DEFINE('_KUNENA_POLL_SAVE_VOTE_ALREADY', 'Ya has votado en esta encuesta!');
DEFINE('_KUNENA_A_POLL_ALLOW_ONE_VOTE', 'Un voto por encuesta');
DEFINE('_KUNENA_A_POLL_ALLOW_ONE_VOTE_DESC', 'Restringir el voto a uno por usuario');
DEFINE('_KUNENA_POLL_NUMBER_OPTIONS_MAX_NOW', 'Has alcanzado el nmero mximo de votos');
DEFINE('_KUNENA_POLL_SAVE_ALERT_ERROR_NOT_CHECK', 'Debes seleccionar una opcin para votar!');
DEFINE('_KUNENA_A_POLL_ENABLED', 'Activado');
DEFINE('_KUNENA_A_ENABLED_DESC', 'Permite desactivar o activar el hack');
DEFINE('_KUNENA_POLL_NAME', 'Encuesta: ');
DEFINE('_KUNENA_POLL_OPTIONS', 'Opciones de la encuesta');

For Dutch  :

DEFINE('_KUNENA_POLL_ADD', 'Nieuwe peiling toevoegen');
DEFINE('_KUNENA_POLL_TITLE', 'Peiling titel');
DEFINE('_KUNENA_POLL_ADD_OPTION', 'Voeg nieuwe optie toe');
DEFINE('_KUNENA_POLL_REM_OPTION', 'Verwijder een optie');
DEFINE('_KUNENA_POLL_OPTION_NAME', 'Optie');
DEFINE('_KUNENA_POLL_BUTTON_VOTE', 'Stem');
DEFINE('_KUNENA_POLL_BUTTON_RESULT', 'Bekijk resultaten');
DEFINE('_KUNENA_POLL_NO_VOTE', 'Geen stem');
DEFINE('_KUNENA_POLL_VOTERS_TOTAL', 'Totaal aantal stemmen : ');
DEFINE('_KUNENA_POLL_HITS_OPTIONS', 'Aantal mensen die hiervoor hebben gestemd');
DEFINE('_KUNENA_A_HACK_POLL_TITLE', 'Hack peiling');
DEFINE('_KUNENA_A_POLL_NUMBER_OPTIONS', 'Aantal opties voor de peiling');
DEFINE('_KUNENA_A_POLL_NUMBER_OPTIONS_DESC', 'Stel het maximum aantal opties in dat men mag gebruiken bij het aanmaken van een nieuwe peiling');
DEFINE('_KUNENA_POLL_SAVE_ALERT_OK', 'Je stem is succesvol opgeslagen');
DEFINE('_KUNENA_POLL_SAVE_ALERT_ERROR', 'Een probleem voorkwam dat je stem werd opgeslagen');
DEFINE('_KUNENA_POLL_SAVE_VOTE_ALREADY', 'Je hebt al gestemd op de peiling !!');
DEFINE('_KUNENA_A_POLL_ALLOW_ONE_VOTE', 'Sta gebruiker toe n maal te stemmen op in een peiling');
DEFINE('_KUNENA_A_POLL_ALLOW_ONE_VOTE_DESC', 'Sta gebruiker toe slecht nmaal te stemmin in een peiling');
DEFINE('_KUNENA_POLL_NUMBER_OPTIONS_MAX_NOW', 'Het maximum aantal opties is bereikt');
DEFINE('_KUNENA_POLL_SAVE_ALERT_ERROR_NOT_CHECK', 'Je moet een optie aanvinken om te stemmen in deze peiling!!');
DEFINE('_KUNENA_A_POLL_ENABLED', 'Ingeschakeld');
DEFINE('_KUNENA_A_ENABLED_DESC', 'Sta toe om in en uit te schakelen van de hack peiling');
DEFINE('_KUNENA_POLL_NAME', 'Peiling : ');
DEFINE('_KUNENA_POLL_OPTIONS', 'Peiling opties');
DEFINE('_KUNENA_ADMIN_POLLS', 'Peiling instellingen');
DEFINE('_KUNENA_POLL_NAME_URL_RESULT', 'Terug naar de post');

For German :
DEFINE('_KUNENA_POLL_ADD', 'Neue Umfrage');
DEFINE('_KUNENA_POLL_TITLE', 'Umfragetitel');
DEFINE('_KUNENA_POLL_ADD_OPTION', 'Neue Antwort');
DEFINE('_KUNENA_POLL_REM_OPTION', 'Antwort l&ouml;schen');
DEFINE('_KUNENA_POLL_OPTION_NAME', 'Antwort');
DEFINE('_KUNENA_POLL_BUTTON_VOTE', 'Abstimmen');
DEFINE('_KUNENA_POLL_BUTTON_RESULT', 'Ergebnis');
DEFINE('_KUNENA_POLL_NO_VOTE', 'Nicht Abstimmen');
DEFINE('_KUNENA_POLL_VOTERS_TOTAL', 'Gesamtzahl Abstimmungen : ');
DEFINE('_KUNENA_POLL_HITS_OPTIONS', 'Anzahl d. Personen die abgest. haben');
DEFINE('_KUNENA_A_HACK_POLL_TITLE', 'Umfrage');
DEFINE('_KUNENA_A_POLL_NUMBER_OPTIONS', 'Antwortm&ouml;glichkeiten');
DEFINE('_KUNENA_A_POLL_NUMBER_OPTIONS_DESC', 'Beschr&auml;nkt die Anzahl der maximalen Antwortm&ouml;glichkeiten, die f&uml;r eine neue Umfrage eingestellt werden k&ouml;nnen');
DEFINE('_KUNENA_POLL_SAVE_ALERT_OK', 'Deine Umfrage wurde erfolgreich gespeichert');
DEFINE('_KUNENA_POLL_SAVE_ALERT_ERROR', 'Beim Speichern deiner Umfrage trat ein Fehler auf');
DEFINE('_KUNENA_POLL_SAVE_VOTE_ALREADY', 'Du hast schon abgestimmt !!');
DEFINE('_KUNENA_A_POLL_ALLOW_ONE_VOTE', 'Nur einmal abstimmen');
DEFINE('_KUNENA_A_POLL_ALLOW_ONE_VOTE_DESC', 'Benutzer d&uml;rfen nur einmal pro Umfrage abstimmen');
DEFINE('_KUNENA_POLL_NUMBER_OPTIONS_MAX_NOW', 'Das Maxium an Antwortm&ouml;glichkeiten wurde erreicht');
DEFINE('_KUNENA_POLL_SAVE_ALERT_ERROR_NOT_CHECK', 'Du must eine Antwort ausw&auml;hlen um abzustimmen!!');
DEFINE('_KUNENA_A_POLL_ENABLED', 'Aktiviert');
DEFINE('_KUNENA_A_ENABLED_DESC', 'Umfragen aktiveren / deaktivieren');
DEFINE('_KUNENA_POLL_NAME', 'Umfrage : ');
DEFINE('_KUNENA_POLL_OPTIONS', 'Antwortm&ouml;glichkeiten');
DEFINE('_KUNENA_ADMIN_POLLS', 'Einstellungen');
DEFINE('_KUNENA_POLL_NAME_URL_RESULT', 'Zur&uml;ck zum Thema');
