jefferson49 / joomla_plugin_sexypolling_reloaded Goto Github PK
View Code? Open in Web Editor NEWMigration of the joomla plugin "Sexy Polling" to joomla 4.x
License: GNU General Public License v3.0
Migration of the joomla plugin "Sexy Polling" to joomla 4.x
License: GNU General Public License v3.0
Observed with v4.1.0
When I tried to modify one of the template background colours it saved the colour to the database but didn't include the # before the hex code.
Observed with Joomla 4.2.6 and plugin version 4.1.1
Default value for "Max votes per IP" is shown as empty if creating a new poll. After saving the new poll, the value is 0. Value of 0 should be shown already when opening the new poll for the first time.
Hello,
the function insert votes doesn't work for me when i fill a number and press save i get this error:
An error has occurred.
1364 Field 'country' doesn't have a default value
Im on the latest J4 version
Regards
Observed with Joomla 4.2.6 and plugin version v4.1.0
After uninstalling the plugin, a warning message is shown: Table 'joomla.jos_sexy_polls' does not exist
However, the plugin code and the database tables are removed and the uninstall routine seems to be sucessfull.
Maybe, the uninstall routine tries to delete the "_sexy_polls" table twice.
Using the sexy polls module to display polls is not loading the css correctly.
Instead when using the shortcodes the css is loaded corectly.
Observed with Joomla 4.2.6 and plugin version v4.1.0
An error has occurred.
0 version_compare(): Argument #3 ($operator) must be a valid comparison operator
Hey guys, it seems that I have an ussie with the plugin when enabled gives me an error on every frontend page:
0 Class "IntlTimeZone" not found.
I suspect this is an issue with the PHP version, I currently use PHP8
Can someone help, please?
`; com_sexypolling
; Copyright (C) 2010 - 2015 2GLux. All rights reserved.
; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php
; Note : All ini files need to be saved as UTF-8
COM_SEXYPOLLING_WORD_1="Ψήφοι"
COM_SEXYPOLLING_WORD_2="Σύνολο ψήφων"
COM_SEXYPOLLING_WORD_3="Πρώτη ψήφος"
COM_SEXYPOLLING_WORD_4="Τελευταία ψήφος"
COM_SEXYPOLLING_WORD_5="Προβολή χρονολογίου"
COM_SEXYPOLLING_WORD_6="Απόκρυψη χρονολογίου"
COM_SEXYPOLLING_WORD_7="Ψήφισε"
COM_SEXYPOLLING_WORD_8="Αποτελέσματα"
COM_SEXYPOLLING_WORD_9="Επιλέξτε απάντηση"
COM_SEXYPOLLING_WORD_10="Έχεις ήδη ψηφίσει μια φορά"
COM_SEXYPOLLING_WORD_11="Προσθήκη νέας απάντησης"
COM_SEXYPOLLING_WORD_12="Πρόσθεσε μια απάντηση..."
COM_SEXYPOLLING_WORD_13="Προσθήκη"
COM_SEXYPOLLING_WORD_14="Η απάντησή σου θα εμφανιστεί μετά από έλεγχο"
COM_SEXYPOLLING_WORD_15="Κλίμακας"
COM_SEXYPOLLING_WORD_16="Relative"
COM_SEXYPOLLING_WORD_17="Absolute"
COM_SEXYPOLLING_WORD_18="Ημερομηνία έναρξης δημοσκόπησης "
COM_SEXYPOLLING_WORD_19="Ημερομηνία λήξης δημοσκόπησης "
COM_SEXYPOLLING_WORD_20="Πισω στις απαντήσεις"
COM_SEXYPOLLING_WORD_21="Μπορείς να ψηφίσεις ξανά σε..."
COM_SEXYPOLLING_WORD_22="OK"
COM_SEXYPOLLING_WORD_23="Εναπομένων χρόνος ..."
COM_SEXYPOLLING_WORD_24="Επιτρεπόμενος αριθμός επιλογών είναι"
COM_SEXYPOLLING_WORD_25="Δεν μπορείς να ψηφίσεις!"
COM_SEXYPOLLING_WORD_26="Η ψήφος καταχωρήθηκε"
COM_SEXYPOLLING_POWERED_BY="Powered by"`
Hi,
I'm interested in translating the frontend part of Sexy Polling to Turkish. As you can see in the screenshots, there is no string for translating the month's names when you debug the language. I searched through the files of the plugin and found the month names in file highstock.js (\com_sexypolling\admin\assets\js\highstock.js) in line 29. But even when I modify this file it affects nothing.
Is there a way to tranlate them, is it an issue or am I missing something?
Observed with version 4.1.1
Limit of votes from an ip address doesn't seem to make difference. It still only allows 1 even though I've set it higher.
Hello, when i want to run your program with php 8.1. I get the error as shown above. With php 8.0. everything is fine.
Best regards!
Helmut
I just upgrade from Joomla 3.10 to 4 / php 8.0 thinking I will lose this extension and was amazed to find that you "reload" it, thanks.
The install was fine and the admin works (all my polls stay there), but as soon I try to load a module Joomla crash with the above message:
Attempted to load class "IntlTimeZone" from the global namespace.
Did you forget a "use" statement?
Exceptions 2 / Stack Traces 2
Symfony\Component\ErrorHandler\Error
ClassNotFoundError
in D:\Shorted\ServerJ4\www\components\com_sexypolling\helpers\helper.php (line 171)
//load language and timezone
$lang = JFactory::getLanguage();
$lang->load('com_sexypolling');
$lang_tag = $lang->getTag();
$iterator = new ArrayIterator(iterator_to_array(IntlTimeZone::createEnumeration(substr($lang_tag, -2))));
$iterator->rewind();
$time_zone = $iterator->current();
setcookie("sexy_poll_lang_tag", $lang_tag, time()+36060, '/');
setcookie("sexy_poll_time_zone", $time_zone, time()+36060, '/');
Any idea to solve that?
Observed with Joomla 3.10 and sexy polling v4.1.7rc
In certain situations, a newly added answer is counted with 0 votes if shown for the first time. After reloading the website, the correct number of 1 vote is shown.
This seems to happen if the vote is the first vote of the day and only happens if multiple answers are deactivated. In vote.php, the incoming max_date seems to be from an earlier date. Therefore, votes of the current date are not counted.
Observed with version 4.1.3 and Joomla 4.2.6.
PHP error log on server contains PHP Warning:
PHP Warning: Undefined variable $styles_ in /volume1/web/joomla/components/com_sexypolling/generate.css.php on line 86
PHP Warning: foreach() argument must be of type array|object, null given in /volume1/web/joomla/components/com_sexypolling/generate.css.php on line 86
Observed with Joomla 4.3.4, PHP 8.2.5, plugin v4.1.7
Message should be translated.
Code:
\com_sexypolling\site\helpers\helper.php
Line 727: echo 'Sexy Polling: there is nothing to show!';
Receiving Error when installing joomla_plugin_sexypolling_reloaded_v4.1.7.zip into Joomla 4.3.0
BLOB, TEXT, GEOMETRY or JSON column 'country' can't have a default value
While trying from Maintenance: Global Check-in to check in to aju65_sexy_polls table i recieve the error
Field 'checked_out' doesn't have a default value
It looks like the "Show Add Answer Icon" switch does not work. Even if it's switched off I see the option to add a custom answer. All other switches like "Show Scale Icon" or "Show Back Icon" working as expected. (version 4.1.6)
Observed with Joomla 4.3.4, PHP 8.2.5, module v4.1.7
Text in footer:
developed and designed by 2GLux.com. extended by Jefferson49
Observed with v4.1.0
The result display only shows the last two of my three options, though all three appear while the animation is happening
Saludo cordial, en mi caso el componente funciona correctamente en Joomla 4.3 (migrado hace 1 año desde J3.10) - php8 - plantilla Helix Ultimate.
Quisiera proponer que en la opción de respuestas por ejemplo, sea posible subir imágenes en vez de apuntarlas a enlaces externos, por ejemplo: si hago una encuesta con los mejores jugadores de fútbol, que la respuesta permita subir la imagen del jugador y al terminar la encuesta eliminarla sin dejar basura.
Gracias por tenerlo presente, por lo demás, excelente complemento de encuestas para nuestro amado Joomla 4.
Feature request from a user: "Another useful mod would be to allow only one vote per username. At the moment we can set the number of votes per ip address to 1 but that stops couples or people who share a house from both voting."
Hi PFA my translation in Dutch nl_NL for frontend purposes.
observed with version 4.1.4 and Joomla 4.2.6
It works with Joomla 3
Good morning,
During the installation of Sexy polling reloaded, everything goes well until the display of this message: BLOB 'country' cannot have a default value.
The installation is stopped with a message. I couldn't find a table indicating any country.
Thanks for your feedback,
Pascal
Bonjour,
Lors de l'installation de Sexy polling reloaded, tout se passe bien jusqu'à l'affichage de ce message : BLOB 'country' ne peut avoir de valeur par defaut.
L'installation est stoppée avec un message. Je n'ai pas trouvé de table indiquant un quelconque pays.
Merci pour votre retour,
Pascal
Hi, Thank you for the amazing Sexy Polling Joomla Extension, it's just fab.
I am having issues with Right to Left text appearing as left to right.
Thank you
Observed with version 4.1.6.
If editing an answer and entering code in "Embed Code", the code is not included properly and executed in the front end. Example: If entering "<tag>text<\tag>", the tags are removed and only "text" is included in the answer shown.
This is already the case in the original plugin in Joomla 3.
Observed with Joomla 4.1.9 and sexy polling v4.1.7rc
If debugging is activated and an answer is deleted in the backend, Joomla throws an exception. If debugging is not activated, the exception is caught somewhere and does not show up.
The exception seems to be related to administrator/components/com_sexypolling/sexypolling.php(45), see stack trace.
Only occurs with Joomla 4
FatalError
Error: Uncaught UnexpectedValueException: Dispatcher not set in Joomla\CMS\MVC\Model\BaseDatabaseModel in /volume1/web/joomla/libraries/vendor/joomla/event/src/DispatcherAwareTrait.php:41
Stack trace:
#0 /volume1/web/joomla/libraries/src/MVC/Model/BaseDatabaseModel.php(343): Joomla\CMS\MVC\Model\BaseDatabaseModel->getDispatcher()
#1 /volume1/web/joomla/libraries/src/MVC/Model/BaseDatabaseModel.php(314): Joomla\CMS\MVC\Model\BaseDatabaseModel->dispatchEvent(Object(Joomla\Event\Event))
#2 /volume1/web/joomla/libraries/src/MVC/Model/AdminModel.php(923): Joomla\CMS\MVC\Model\BaseDatabaseModel->cleanCache()
#3 /volume1/web/joomla/libraries/src/MVC/Controller/AdminController.php(143): Joomla\CMS\MVC\Model\AdminModel->delete(Array)
#4 /volume1/web/joomla/libraries/src/MVC/Controller/BaseController.php(672): Joomla\CMS\MVC\Controller\AdminController->delete()
#5 /volume1/web/joomla/administrator/components/com_sexypolling/sexypolling.php(45): Joomla\CMS\MVC\Controller\BaseController->execute('delete')
#6 /volume1/web/joomla/libraries/src/Dispatcher/LegacyComponentDispatcher.php(71): require_once('/volume1/web/jo...')
#7 /volume1/web/joomla/libraries/src/Dispatcher/LegacyComponentDispatcher.php(73): Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}('/volume1/web/jo...')
#8 /volume1/web/joomla/libraries/src/Component/ComponentHelper.php(355): Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch()
#9 /volume1/web/joomla/libraries/src/Application/AdministratorApplication.php(143): Joomla\CMS\Component\ComponentHelper::renderComponent('com_sexypolling')
#10 /volume1/web/joomla/libraries/src/Application/AdministratorApplication.php(186): Joomla\CMS\Application\AdministratorApplication->dispatch()
#11 /volume1/web/joomla/libraries/src/Application/CMSApplication.php(294): Joomla\CMS\Application\AdministratorApplication->doExecute()
#12 /volume1/web/joomla/administrator/includes/app.php(61): Joomla\CMS\Application\CMSApplication->execute()
#13 /volume1/web/joomla/administrator/index.php(32): require_once('/volume1/web/jo...')
#14 {main}
thrown
For some reason on mobile view there is some blank space to the right side that causes page to overflow
Observed with version 4.1.4 and joomla 3.10
Probably, simular error/reason like #15
Trying to use Sexy Polling Reloaded for board elections.
Voters must select 5 out of 9 'answers' but can currently vote with minimum of 1 selected.
Can this parameter be added please?
Observed with Joomla 4 and 4.1.6beta
If multi answers is activated and after adding a new answer and selecting this answer for voting, 2 votes are stored to the _sexy_votes table in the database. One of the votes has the right answer ID. The other one has an answer ID of "0".
Observed with Joomla 4 and 4.1.6beta
If multi answers is activated and after adding a new answer and selecting this answer for voting, the voting fails.
The error occurs in vote.php, line 226. Missing default value
Another error occurs in vote.php, line 235. The following SQL command is not accepted:
"INSERT INTO #__sexy_votes
(id_answer
,id_user
,ip
,date
,country
,city
,region
,countrycode
) VALUES ('35','0',192.168.178.40','2023-04-06 20:27:10','-','-','-','-')"
Hello
thank you for your extension which seems interesting to me
I have just installed your extension under joomla 4.2.6 / php 8.1.3
I have this error message.
I'm interested in the fact that any member can launch a poll, even a simple one like https://framadate.org/
Is this possible?
Regards
When publishing the module in any page, I get the error "Class "IntlTimeZone" not found".
Using sexypolling_reloaded_v4.1.6 in Joomla 3.10.11.
Congrats and thanks for the latest version.
I would like to suggest an option to export the votes to csv or xls format for further editing and analyse.
Keep up the good work!
Observed with v4.1.0
geoip.php throws a 500 error (seen in the console). I assume this might be becuase it needs a maxmind licence key like rsfirewall but I can't see how to add one.
Observed with Joomla 4.3.4, PHP 8.2, and plugin version v4.1.7 or v4.1.6
If the plugin is used with PHP 8.2, deprecation messages are shown in the backend and in the frontend.
Backend:
Deprecated: Creation of dynamic property plgSystemSexypolling::$_plugin is deprecated in /volume1/web/joomla/plugins/system/sexypolling/sexypolling.php on line 30 Deprecated: Creation of dynamic property plgSystemSexypolling::$_params is deprecated in /volume1/web/joomla/plugins/system/sexypolling/sexypolling.php on line 31
Frontend:
Deprecated: Creation of dynamic property SexypollingHelper::$id_poll is deprecated in /volume1/web/joomla/modules/mod_sexypolling/mod_sexypolling.php on line 27 Deprecated: Creation of dynamic property SexypollingHelper::$id_category is deprecated in /volume1/web/joomla/modules/mod_sexypolling/mod_sexypolling.php on line 29 Deprecated: Creation of dynamic property SexypollingHelper::$module_id is deprecated in /volume1/web/joomla/modules/mod_sexypolling/mod_sexypolling.php on line 30 Deprecated: Creation of dynamic property SexypollingHelper::$type is deprecated in /volume1/web/joomla/modules/mod_sexypolling/mod_sexypolling.php on line 31 Deprecated: Creation of dynamic property SexypollingHelper::$class_suffix is deprecated in /volume1/web/joomla/modules/mod_sexypolling/mod_sexypolling.php on line 32 Deprecated: Creation of dynamic property SexypollingHelper::$_data is deprecated in /volume1/web/joomla/components/com_sexypolling/helpers/helper.php on line 144
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.