[3.2][3.3][BETA] Advanced Polls

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Ideas Centre
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
jasolo
Registered User
Posts: 130
Joined: Sat Jan 20, 2018 9:17 pm

Re: [3.2][BETA] Advanced Polls

Post by jasolo »

the Jabberwock wrote: Tue May 22, 2018 4:35 am Thank you for your reply. However, when I vote on a poll which I have set up to hide results, what I am seeing looks like the "User View After Voting" screenshot you posted above, NOT the "Moderator Internal View" screenshot. I am both Admin and Moderator on the forum. If I am looking at the Poll/Topic and I select the MCP button, it takes me to the Moderator page for that topic, but it doesn't show the poll at all. Any ideas?
Check the permission "Can view poll voters". More info about the permissions of this extension here.
the Jabberwock wrote: Tue May 22, 2018 4:35 am Different question: if I set a poll to end at a specific date and time, what timezone is being used? My personal forum control panel has UTC -6:00 setup for my local time zone, however, does the advanced poll "time to end" match my personal time zone for the polls I create? Or does it match some other time on the forum?
It uses the time zone of the user who creates the poll when the "until" option is checked, but once published it shows that poll end date according to the time zone of each user.
User avatar
Galixte de EzCom
Registered User
Posts: 1106
Joined: Mon Oct 04, 2004 11:14 pm
Location: France
Name: Raphaël M.
Contact:

Re: [3.2][BETA] Advanced Polls

Post by Galixte de EzCom »

It’s indicated to phpBB 3.1.x in the composer: https://github.com/jasoloz/advancedpoll ... r.json#L38
Communau EzCom
📖 « Traductions d’extensions & styles pour phpBB 3.2.x & 3.3.x ».
📋 Lists of all extensions identified for phpBB 3.1.x & 3.2.x.
📋 Lists of all styles identified for phpBB 3.1.x & 3.2.x.
Image Tu as un forum et tu veux aussi un site web ? Regarde par ici.
User avatar
jasolo
Registered User
Posts: 130
Joined: Sat Jan 20, 2018 9:17 pm

Re: [3.2][BETA] Advanced Polls

Post by jasolo »

Thanks for the warning, I'll change it this weekend. ;)
User avatar
Galixte de EzCom
Registered User
Posts: 1106
Joined: Mon Oct 04, 2004 11:14 pm
Location: France
Name: Raphaël M.
Contact:

Re: [3.2][BETA] Advanced Polls

Post by Galixte de EzCom »

Any news about this? Is usable?
Communau EzCom
📖 « Traductions d’extensions & styles pour phpBB 3.2.x & 3.3.x ».
📋 Lists of all extensions identified for phpBB 3.1.x & 3.2.x.
📋 Lists of all styles identified for phpBB 3.1.x & 3.2.x.
Image Tu as un forum et tu veux aussi un site web ? Regarde par ici.
User avatar
jasolo
Registered User
Posts: 130
Joined: Sat Jan 20, 2018 9:17 pm

Re: [3.2][BETA] Advanced Polls

Post by jasolo »

I'm using the extension in two sites, but recently no time to improve it :cry:
cachete
Registered User
Posts: 7
Joined: Sat Nov 10, 2018 3:22 pm

Re: [3.2][BETA] Advanced Polls

Post by cachete »

jasolo wrote: Fri Aug 10, 2018 10:11 am I'm using the extension in two sites, but recently no time to improve it :cry:
Hi jasolo, i´m giving up trying to change the settings to calculate another type of information for "votes". Instead of showing "percent" i need to change it to an "average" for each question. For Example:

In this picture Image , in the first question (Classic Creation) "Jane Doe" voted (5), imagine another use (John Doe) voted (3). Instead showing the percent for the result i need to show "4" (5+3 / 2 ) im explaining myself correctly?.

So, the question is: What i need to change in the code to do this "new calculation" ? I really need your help
User avatar
jasolo
Registered User
Posts: 130
Joined: Sat Jan 20, 2018 9:17 pm

Re: [3.2][BETA] Advanced Polls

Post by jasolo »

The following code should work. ;) In core/advancedpolls.php, before the comment "// Okay, lets push some of this information to the template", insert this:

Code: Select all

for ($i = 0; $i < $poll_options_count; $i++)
{
   $poll_options_template_data[$i]['POLL_OPTION_PERCENT'] = $poll_options_template_data[$i]['POLL_OPTION_RESULT'] / strtr($poll_options_template_data[$i]['AP_VOTERS'], array('(' => '', ')' => ''));
}
cachete
Registered User
Posts: 7
Joined: Sat Nov 10, 2018 3:22 pm

Re: [3.2][BETA] Advanced Polls

Post by cachete »

jasolo wrote: Sat Nov 10, 2018 7:23 pm The following code should work. ;) In core/advancedpolls.php, before the comment "// Okay, lets push some of this information to the template", insert this:

Code: Select all

for ($i = 0; $i < $poll_options_count; $i++)
{
   $poll_options_template_data[$i]['POLL_OPTION_PERCENT'] = $poll_options_template_data[$i]['POLL_OPTION_RESULT'] / strtr($poll_options_template_data[$i]['AP_VOTERS'], array('(' => '', ')' => ''));
}
Thank you jasolo for you answer!! it work fine, but it possible show that information on the resultbar ("average")?? actually before click on Information bottom (first view) resulbar still show me the count votes for they answers. I need in the first view show the average result, please help me if you can.
User avatar
jasolo
Registered User
Posts: 130
Joined: Sat Jan 20, 2018 9:17 pm

Re: [3.2][BETA] Advanced Polls

Post by jasolo »

I'm not sure what you want. Can you post an image?
cachete
Registered User
Posts: 7
Joined: Sat Nov 10, 2018 3:22 pm

Re: [3.2][BETA] Advanced Polls

Post by cachete »

jasolo wrote: Mon Nov 12, 2018 6:14 pm I'm not sure what you want. Can you post an image?
Hi this is screenshot of what i need. Thank you !

Image
BlackGirl
Registered User
Posts: 32
Joined: Thu Feb 24, 2011 9:52 pm

Re: [3.2][BETA] Advanced Polls

Post by BlackGirl »

How do the names of the deleted users appear?
User avatar
jasolo
Registered User
Posts: 130
Joined: Sat Jan 20, 2018 9:17 pm

Re: [3.2][BETA] Advanced Polls

Post by jasolo »

BlackGirl wrote: Tue Nov 13, 2018 7:25 pm How do the names of the deleted users appear?
I think deleted users appear as "Guest"
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: [3.2][BETA] Advanced Polls

Post by 3Di »

jasolo wrote: Tue Nov 13, 2018 8:57 pm
BlackGirl wrote: Tue Nov 13, 2018 7:25 pm How do the names of the deleted users appear?
I think deleted users appear as "Guest"
We discussed this already, same question and user ;)
viewtopic.php?p=14666226#p14666226
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
jasolo
Registered User
Posts: 130
Joined: Sat Jan 20, 2018 9:17 pm

Re: [3.2][BETA] Advanced Polls

Post by jasolo »

Thanks 3Di for the link. ;)
cachete
Registered User
Posts: 7
Joined: Sat Nov 10, 2018 3:22 pm

Re: [3.2][BETA] Advanced Polls

Post by cachete »

Hey jasolo, can you please tell me where can i find the "variable" for "counting the number of voters".
Image
Post Reply

Return to “Extensions in Development”