Page 2 of 6

Re: [3.2][BETA] Advanced Polls

Posted: Tue May 22, 2018 6:54 am
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.

Re: [3.2][BETA] Advanced Polls

Posted: Wed Jun 20, 2018 4:27 pm
by Galixte de EzCom
It’s indicated to phpBB 3.1.x in the composer: https://github.com/jasoloz/advancedpoll ... r.json#L38

Re: [3.2][BETA] Advanced Polls

Posted: Thu Jun 21, 2018 6:33 pm
by jasolo
Thanks for the warning, I'll change it this weekend. ;)

Re: [3.2][BETA] Advanced Polls

Posted: Tue Aug 07, 2018 5:02 pm
by Galixte de EzCom
Any news about this? Is usable?

Re: [3.2][BETA] Advanced Polls

Posted: Fri Aug 10, 2018 10:11 am
by jasolo
I'm using the extension in two sites, but recently no time to improve it :cry:

Re: [3.2][BETA] Advanced Polls

Posted: Sat Nov 10, 2018 3:36 pm
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

Re: [3.2][BETA] Advanced Polls

Posted: Sat Nov 10, 2018 7:23 pm
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('(' => '', ')' => ''));
}

Re: [3.2][BETA] Advanced Polls

Posted: Mon Nov 12, 2018 12:58 pm
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.

Re: [3.2][BETA] Advanced Polls

Posted: Mon Nov 12, 2018 6:14 pm
by jasolo
I'm not sure what you want. Can you post an image?

Re: [3.2][BETA] Advanced Polls

Posted: Mon Nov 12, 2018 8:06 pm
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

Re: [3.2][BETA] Advanced Polls

Posted: Tue Nov 13, 2018 7:25 pm
by BlackGirl
How do the names of the deleted users appear?

Re: [3.2][BETA] Advanced Polls

Posted: Tue Nov 13, 2018 8:57 pm
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"

Re: [3.2][BETA] Advanced Polls

Posted: Wed Nov 14, 2018 5:59 am
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

Re: [3.2][BETA] Advanced Polls

Posted: Wed Nov 14, 2018 7:34 am
by jasolo
Thanks 3Di for the link. ;)

Re: [3.2][BETA] Advanced Polls

Posted: Wed Nov 14, 2018 8:53 pm
by cachete
Hey jasolo, can you please tell me where can i find the "variable" for "counting the number of voters".
Image