4.x migration of Sexy Polling plugin - Or alternative polling plugin Topic is solved

This forum is for general questions about extensions for Joomla! 4.x.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Jefferson49
Joomla! Apprentice
Joomla! Apprentice
Posts: 42
Joined: Sun Sep 11, 2022 11:07 am

Re: 4.x migration of Sexy Polling plugin - Or alternative polling plugin

Post by Jefferson49 » Thu Dec 22, 2022 9:19 am

cappleby wrote:
Wed Dec 21, 2022 2:48 am
1. 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.

3. The result display only shows the last two of my three options, though all three appear while the animation is happening.
With the provided database tables, I could reproduce the issue. The root cause of issue Nr. 3 is that the "green" template was corrupted by issue Nr. 1 (e.g. css data was inserted without "#" etc.).

You can easily test this by switching to an alternative template. Issue Nr. 3 should not be observed with another (not corrupted) template.

To fix a corrupted template, the template entry in the "_sexy_templates" table needs to be restored from a backup or the template entry needs to be copied from a newly installed plugin table. I send you a database export of a working "green" table as a private message. You can delete your current "green" template and import the working template.

Jefferson49
Joomla! Apprentice
Joomla! Apprentice
Posts: 42
Joined: Sun Sep 11, 2022 11:07 am

Re: 4.x migration of Sexy Polling plugin - Or alternative polling plugin

Post by Jefferson49 » Thu Dec 22, 2022 9:35 am

cappleby wrote:
Thu Dec 22, 2022 12:37 am
Hi,

Do you want me to keep passing on minor issues I find? e.g. the 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.
Yes, I am interested in further issues. However, depending on the impact and effort, I will decide if I can fix it or not.

It would be nice to report further issues directly on Github:
https://github.com/Jefferson49/Joomla_plugin_sexypolling_reloaded/issues

Jefferson49
Joomla! Apprentice
Joomla! Apprentice
Posts: 42
Joined: Sun Sep 11, 2022 11:07 am

Re: 4.x migration of Sexy Polling plugin - Or alternative polling plugin

Post by Jefferson49 » Thu Dec 22, 2022 11:43 am

cappleby wrote:
Thu Dec 22, 2022 12:37 am
the 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.
It is also important to consider the "Voting Period". The default value is set to "24". This means that the next time you can vote is after 24 hours. If you set the voting period to a very small value (e.g. "0.0001"), you can vote again immidiately.

However, the allowance for further votes is only given, after you update the website. There is some problem in the JavaScript and Cookie behavior, which I could not resolve yet. If not updating the website, JavaScript will not allow you to vote again.

cappleby
Joomla! Intern
Joomla! Intern
Posts: 88
Joined: Fri Oct 10, 2008 5:18 am

Re: 4.x migration of Sexy Polling plugin - Or alternative polling plugin

Post by cappleby » Fri Dec 23, 2022 12:46 am

Thanks,

The change to the template worked. I didn't realise what the 24 meant. I thought it must have been the life of the poll. I've now changed that to allow a second person to vote straight away - and the ip address is working though I'm not sure their city database is up to date :) .
Chris A
Melbourne, Australia

Jefferson49
Joomla! Apprentice
Joomla! Apprentice
Posts: 42
Joined: Sun Sep 11, 2022 11:07 am

Re: 4.x migration of Sexy Polling plugin - Or alternative polling plugin

Post by Jefferson49 » Fri Dec 23, 2022 6:03 am

cappleby wrote:
Fri Dec 23, 2022 12:46 am
I didn't realise what the 24 meant. I thought it must have been the life of the poll.
Usually, an explanation for all the settings is shown as a tooltip if you hover over setting names. However, there was a bug that it was not shown in Joomla 4. I have also fixed this now.

Jefferson49
Joomla! Apprentice
Joomla! Apprentice
Posts: 42
Joined: Sun Sep 11, 2022 11:07 am

Re: 4.x migration of Sexy Polling plugin - Or alternative polling plugin

Post by Jefferson49 » Fri Dec 23, 2022 6:05 am

Thank you very much for the testing. The Joomla 4 plugin version improved a lot in the last days.

I have just released a new version 4.1.2, which contains all of the latest bugfixes.

You can update to the new version with the Joomla Update System.

cappleby
Joomla! Intern
Joomla! Intern
Posts: 88
Joined: Fri Oct 10, 2008 5:18 am

Re: 4.x migration of Sexy Polling plugin - Or alternative polling plugin

Post by cappleby » Sat Dec 24, 2022 1:28 am

Hi Jefferson, one more minor annoyance. When the answer is entered with spaces the spaces are deleted. In your examples that didn't happen apart from the last answer but I can't see why not.
Happy Christmas!
Chris A
Melbourne, Australia

Jefferson49
Joomla! Apprentice
Joomla! Apprentice
Posts: 42
Joined: Sun Sep 11, 2022 11:07 am

Re: 4.x migration of Sexy Polling plugin - Or alternative polling plugin

Post by Jefferson49 » Sun Dec 25, 2022 6:04 am

cappleby wrote:
Sat Dec 24, 2022 1:28 am
one more minor annoyance. When the answer is entered with spaces the spaces are deleted. In your examples that didn't happen apart from the last answer but I can't see why not.
Hi Chris,

thank you for reporting. This is really ugly. I created a bugfix and released a new version, which is available with the Joomla Update System.

Merry Christmas!

cappleby
Joomla! Intern
Joomla! Intern
Posts: 88
Joined: Fri Oct 10, 2008 5:18 am

Re: 4.x migration of Sexy Polling plugin - Or alternative polling plugin

Post by cappleby » Sun Dec 25, 2022 7:16 am

Well done and so quickly. Thanks
Chris A
Melbourne, Australia

cappleby
Joomla! Intern
Joomla! Intern
Posts: 88
Joined: Fri Oct 10, 2008 5:18 am

Re: 4.x migration of Sexy Polling plugin - Or alternative polling plugin

Post by cappleby » Mon Jan 23, 2023 11:52 pm

Hi Jefferson,

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.

Chris A
Chris A
Melbourne, Australia

Jefferson49
Joomla! Apprentice
Joomla! Apprentice
Posts: 42
Joined: Sun Sep 11, 2022 11:07 am

Re: 4.x migration of Sexy Polling plugin - Or alternative polling plugin

Post by Jefferson49 » Tue Jan 24, 2023 7:14 pm

Hello Chris,

thank you for the proposal. I added it as an enhancement issue to the Github repository:
https://github.com/Jefferson49/Joomla_p ... ded/issues

At the moment, I am hesitating and do not know if I will implement this feature. One reason is that it would need an extension of the database tables (in order to set a limit or yes/no option). Until now, I tried to keep the database as it was in the former Sexy Polling plugin for compatibility reasons.

cappleby
Joomla! Intern
Joomla! Intern
Posts: 88
Joined: Fri Oct 10, 2008 5:18 am

Re: 4.x migration of Sexy Polling plugin - Or alternative polling plugin

Post by cappleby » Tue Jan 24, 2023 9:27 pm

I thought you could check the data table to see if the username is there already and if so not allow it and send the same message as you do if the ip address limit has been exceeded.
Chris A
Melbourne, Australia

Jefferson49
Joomla! Apprentice
Joomla! Apprentice
Posts: 42
Joined: Sun Sep 11, 2022 11:07 am

Re: 4.x migration of Sexy Polling plugin - Or alternative polling plugin

Post by Jefferson49 » Thu Jan 26, 2023 11:41 am

cappleby wrote:
Tue Jan 24, 2023 9:27 pm
I thought you could check the data table to see if the username is there already and if so not allow it and send the same message as you do if the ip address limit has been exceeded.
I agree that this kind of behavior could be implemented. My point was more about the vote settings in the Joomla administration backend. If an additional setting was needed, the database would need to be extended to store the setting.

At the moment, there are 2 options, which can be selected in the backend:
  1. Set the voting permission to public: In this case, the IP is checked
  2. Restrict the voting permission to a certain Joomla user group: In this case, the Joomla user ID is checked
Therefore, you could already activate the proposed behavior for logged in users by choosing option 2. However, this would exclude any public voters, who are not logged in.

At the moment, I am thinking about modifying the code of option 2 and also use it in case a user is logged in but the option to "restrict voting to a certain user group" is not activated. I have to cross-check if this could have any un-wanted side effects. If not, it could be implemented with low effort.

sarky098
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Thu Jan 26, 2023 4:42 pm

Re: 4.x migration of Sexy Polling plugin - Or alternative polling plugin

Post by sarky098 » Thu Jan 26, 2023 4:52 pm

It appears that the "Sexy Polling" plugin that you are currently using is no longer being maintained or updated by its developer, 2GLux, as their website states that their business is permanently closed. This means that there will not be any updates or support available for the plugin, including a 4.x migration.

It is likely that the old 3.x version of the plugin will not be compatible with Joomla 4.x and may fail to function properly.

If a 4.x migration is not feasible, it may be necessary to look for an alternative extension with similar features. Some recommendations could be:

- "RSForm!" - a popular form and survey extension for Joomla
- "Joomla Surveys" - a flexible survey extension with a variety of question types and options
- "Simple Poll" - a lightweight and easy to use poll extension for Joomla

It is important to thoroughly research and test different extensions to find the one that best fits your needs and requirements. Additionally, you can check the JED (Joomla Extension Directory) for other alternatives and read the reviews, as this can be an useful resource to find the best alternative for your project.
Last edited by pe7er on Thu Jan 26, 2023 7:30 pm, edited 1 time in total.
Reason: removed manual signature

cappleby
Joomla! Intern
Joomla! Intern
Posts: 88
Joined: Fri Oct 10, 2008 5:18 am

Re: 4.x migration of Sexy Polling plugin - Or alternative polling plugin

Post by cappleby » Thu Jan 26, 2023 10:25 pm

Hi Jefferson,

I’ve now restricted voting to registered users by only showing the voting module to those who are registered so that overcomes one issue. I guess I can deal with the question of users possibly voting twice by downloading the datatable and checking for duplicates - not too hard to do.
Chris A
Melbourne, Australia

Jefferson49
Joomla! Apprentice
Joomla! Apprentice
Posts: 42
Joined: Sun Sep 11, 2022 11:07 am

Re: 4.x migration of Sexy Polling plugin - Or alternative polling plugin

Post by Jefferson49 » Fri Jan 27, 2023 5:14 am

sarky098 wrote:
Thu Jan 26, 2023 4:52 pm
It appears that the "Sexy Polling" plugin that you are currently using is no longer being maintained or updated by its developer, 2GLux, as their website states that their business is permanently closed. This means that there will not be any updates or support available for the plugin, including a 4.x migration.

It is likely that the old 3.x version of the plugin will not be compatible with Joomla 4.x and may fail to function properly.
Yes, the former "Sexy Polling" plugin is not updated and supported any more. In the mean time, I was able to create a fork and migrate the code to Joomla 4; also still running with Joomla 3. I provided the migrated plugin as "Sexy Polling Reloaded" on Github and also in the Joomla extension directory:
https://github.com/Jefferson49/Joomla_p ... g_reloaded
https://extensions.joomla.org/extension ... -reloaded/

Jefferson49
Joomla! Apprentice
Joomla! Apprentice
Posts: 42
Joined: Sun Sep 11, 2022 11:07 am

Re: 4.x migration of Sexy Polling plugin - Or alternative polling plugin

Post by Jefferson49 » Fri Jan 27, 2023 5:24 am

cappleby wrote:
Thu Jan 26, 2023 10:25 pm
Hi Jefferson,

I’ve now restricted voting to registered users by only showing the voting module to those who are registered so that overcomes one issue. I guess I can deal with the question of users possibly voting twice by downloading the datatable and checking for duplicates - not too hard to do.
This sounds like a good compromise. If you restrict the voting permission to a certain Joomla user group, the plugin should already check the user IDs (instead of IP check) and reject double voting. At least, this is what I can see in the code.

I have already started to extend this code by some more lines to include the case, where public voting is allowed and a user is logged in. At the moment, it looks promising; will need to test in more detail.

Jefferson49
Joomla! Apprentice
Joomla! Apprentice
Posts: 42
Joined: Sun Sep 11, 2022 11:07 am

Re: 4.x migration of Sexy Polling plugin - Or alternative polling plugin

Post by Jefferson49 » Sat Jan 28, 2023 7:27 am

Jefferson49 wrote:
Fri Jan 27, 2023 5:24 am
I have already started to extend this code by some more lines to include the case, where public voting is allowed and a user is logged in. At the moment, it looks promising; will need to test in more detail.
Hi Chris,

my test of the added user ID check was successful and I sent you a test version as PM.

Jfruiz
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Fri Aug 20, 2021 9:35 pm

Re: 4.x migration of Sexy Polling plugin - Or alternative polling plugin

Post by Jfruiz » Mon Feb 06, 2023 7:50 am

When I migrate to J4 one of my main concerns was to loose Sexy Polling, but it is back and working as always. Thanks for your great work

Jfruiz
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Fri Aug 20, 2021 9:35 pm

Re: 4.x migration of Sexy Polling plugin - Or alternative polling plugin

Post by Jfruiz » Mon Feb 06, 2023 8:01 am

It there a way to assign color of one answer?
I'm trying to implement a poll that is like a trafic light and colors should look like, but I don't find how...
Ex:

Ready = green
On the way = yellow / orange
Closed = red

Thanks in advance


Forget the question. I found than you can match the color you want changing the order of the answers


Post Reply

Return to “Extensions for Joomla! 4.x”