Forums / Addon Sideboxes / Poll Manager Support Thread

Poll Manager Support Thread

Views: 68,495

Results 1 to 20 of 149
06 Jun 2010, 07:37
#1
boudewijn avatar

boudewijn

Zen Follower

Join Date:
Jun 2009
Posts:
207
Plugin Contributions:
0

Poll Manager Support Thread

This is the support thread for the Poll Manager sidebox addon. Please leave your comments, questions, requests and compliments here!

22 Jun 2010, 10:39
#2
lj20272 avatar

lj20272

New Zenner

Join Date:
Jul 2007
Posts:
57
Plugin Contributions:
0

Re: Poll Manager Support Thread

Hi,

Just wanted to thank you for a great add on. I just successfully installed it with no problems. Thanks for the clear and easy to understand install instructions.

I have just one very minor problem. The text size of the choosable (if that's a word) options in the poll box is tiny. The rest of it such as the question displays fine. Is there a specific file to change this, as all my other sideboxes are displaying correctly.

Oh, I'm using version 1.3.8a and other than this small text size issue, the add on works perfect.

Thanks in advance.

Amanda

22 Jun 2010, 13:52
#3
boudewijn avatar

boudewijn

Zen Follower

Join Date:
Jun 2009
Posts:
207
Plugin Contributions:
0

Re: Poll Manager Support Thread

Hi Amanda,

Thanks for your positive feedback!

The problem you encounter is just the thing I was not able to test, as I have only one ZC-site with one theme. In my template, I have to set the font-size to small to make it fit with the rest of the website. I guess it is different for your theme.

What we can try first is to remove the small font indication. For this you have to change a line in one file, which will affect the question- as well as the result box:

in includes/templates/<your template>/sideboxes/tpl_poll_box.php on line 105:

change: $content .= '<div id="' . $boxname . '" style="font-size:small;">';

into: $content .= '<div id="' . $boxname . '">';

Please let me know if this fixes your problem.

Thanks, Boudewijn

22 Jun 2010, 14:18
#4
boudewijn avatar

boudewijn

Zen Follower

Join Date:
Jun 2009
Posts:
207
Plugin Contributions:
0

Re: Poll Manager Support Thread

To add to the above (can't find out how to edit my post):

I think the standard style class for sideboxes is 'sideBoxContent'. So the new line as mentioned should be changed into:

$content .= '<div id="' . $boxname . '" class="sideBoxContent">';

This also worked for my template and I suspect it will be a general solution for all.

Please let me know the results, if ok I will incorporate this in the next beta.

03 Jul 2010, 16:41
#5
boudewijn avatar

boudewijn

Zen Follower

Join Date:
Jun 2009
Posts:
207
Plugin Contributions:
0

Re: Poll Manager Support Thread

A new version of the poll box, with the fix mentioned above and some others, is available from the add on section.

08 Jul 2010, 18:01
#6
decostyle avatar

decostyle

Zen Follower

Join Date:
Mar 2008
Posts:
336
Plugin Contributions:
0

Re: Poll Manager Support Thread

Hello!

Tried it on v 1.3.9d. The side box came out ok however, the options were blank. I could see the box where the customer can check and vote but the words next to it are not there. Any ideas why?

Also I noticed that once the person votes, the side box disappears. Is that normal? On other polls I have seen, once the person has voted the side box will just show results but it won't disappear. Is that possible to do?

Thanks, it's a great contribution btw!

08 Jul 2010, 19:01
#7
boudewijn avatar

boudewijn

Zen Follower

Join Date:
Jun 2009
Posts:
207
Plugin Contributions:
0

Re: Poll Manager Support Thread

Hi,

A person (=IP) can only vote once. His/her IP will be stored together with his/her vote for a specific poll, so the person won't get the same poll again after voting.

After voting, a person should get the results so far. This takes a second, because the vote must be send to the server, and the results must be sent back.

I guess the text won't show up because of the style applied. Can you give me a link to where I can see what's happening?

Thanks, Boudewijn

08 Jul 2010, 19:26
#8
decostyle avatar

decostyle

Zen Follower

Join Date:
Mar 2008
Posts:
336
Plugin Contributions:
0

Re: Poll Manager Support Thread

I was initially testing it on the local host when I encountered some other problems. At one point when I was trying the poll, it would get my vote and how the results, disappear but on the admin end, no votes will be registered. Then when I go back and refresh the front end, the vote box appeared again. It went into this loop several times before I changed the options from multiple to single then it worked.

Transferring the module to a test site online, the option text suddenly appeared! Then I was getting Internal server errors and also getting the loop where the vote was registered but not on the admin end.

See it here.

Let me know what you make of it? Thanks!

09 Jul 2010, 06:14
#9
boudewijn avatar

boudewijn

Zen Follower

Join Date:
Jun 2009
Posts:
207
Plugin Contributions:
0

Re: Poll Manager Support Thread

Hi,

I voted on your test server, and I think one of the main issues may be speed. After the vote, it takes a long time before the results get there. Also the 'loading' image doesn't appear. For the latter I will include a fix in the next release, making the poll box preload the image, so it will display from the browser cache immediately.

Furthermore, there is a small bug in the admin interface: it will always show the number of voters as 1. Also this will be fixed in the next release.

I have no idea about not registering votes or not displaying the texts. I tried this on my test server but all seems to function well. Can you reproduce this behaviour and elaborate some more about poll settings and content?

About the 500 server error: this happens almost on any PHP error. Do you have error logging enabled? It should log the errors in the cache folder, provided that the web account has R/W rights there.

Thanks, Boudewijn

09 Jul 2010, 17:51
#10
decostyle avatar

decostyle

Zen Follower

Join Date:
Mar 2008
Posts:
336
Plugin Contributions:
0

Re: Poll Manager Support Thread

hi boudewijn,

Thanks for checking! I tried voting on my test site and now it accepts it. The problem of looping where the vote is not registered happened on the local host server and first time I installed it on the test server. It maybe a cache thing, probably related to the browser? I'm using firefox 3.6.6.

As to the text disappearing. This happened on my local host site. I have attached the picture here for you to see. It maybe a template thing? I'm not sure... The text disappeared as you see on my picture using the cherry zen template. The text appears fine on the test server site using cold steel template.

Perhaps somebody else can test on their site and see if it is template specific.

Looking forward to your revisions! I think this poll will be a fun and engaging thing for customers. Keep it up!

10 Jul 2010, 06:25
#11
boudewijn avatar

boudewijn

Zen Follower

Join Date:
Jun 2009
Posts:
207
Plugin Contributions:
0

Re: Poll Manager Support Thread

Hi,

Browser and localhost issues are a nightmare for a programmer, and I have seen many problems with it. So quite a few can have their cause there.

The disappearing text issue won't be hard to fix. If you display the page without text, and view the page source in your browser, you will probably discover there that the texts are present, but invisible. This could very well be a CSS issue, where the style for the text is redefined in that specific template. The style for the poll box is 'sideBoxContent'. If the site is accessible from outside, I can also have a look for you.

28 Jul 2010, 15:29
#12
cecsy avatar

cecsy

New Zenner

Join Date:
Jul 2010
Posts:
9
Plugin Contributions:
0

Re: Poll Manager Support Thread

Hi!

My poll has the same problem as Amanda. The text is supertiny. Just installed it, with the changes you refer to.

29 Jul 2010, 03:49
#13
lj20272 avatar

lj20272

New Zenner

Join Date:
Jul 2007
Posts:
57
Plugin Contributions:
0

Re: Poll Manager Support Thread

Hi,

I did finally get to making the change you suggested ie - replacing line 104 with: $content .= '<div id="' . $boxname . '" class="sideBoxContent">';

It hasn't fixed it unfortunately. The font is still super tiny.

Thanks

Amanda

29 Jul 2010, 12:47
#14
cecsy avatar

cecsy

New Zenner

Join Date:
Jul 2010
Posts:
9
Plugin Contributions:
0

Re: Poll Manager Support Thread

lj20272:

Hi,

I did finally get to making the change you suggested ie - replacing line 104 with: $content .= '<div id="' . $boxname . '" class="sideBoxContent">';

It hasn't fixed it unfortunately. The font is still super tiny.

Thanks

Amanda

I guess you have changed line 105, Amanda!? Either way, it does not work ...

10 Aug 2010, 02:10
#15
lj20272 avatar

lj20272

New Zenner

Join Date:
Jul 2007
Posts:
57
Plugin Contributions:
0

Re: Poll Manager Support Thread

Woops, yes, I meant line 105.

I also tried installing all the updated files with no success.

You're quite welcome to have a look... http://www.pregnancyshop.com.au

Front page - bottom left hand side.

Thanks'

14 Aug 2010, 07:46
#16
boudewijn avatar

boudewijn

Zen Follower

Join Date:
Jun 2009
Posts:
207
Plugin Contributions:
0

Re: Poll Manager Support Thread

The style clearBoth in your template also sets the font size to 2 pixels, causing the text to be so tiny. I'm not sure how to fix this permanently yet, but a workaround is to change, in includes/templates/<YOUR TEMPLATE>/sideboxes/tpl_poll_box.php, line 113:

from: $content .= '<div style="width:99%;" class="clearBoth">';

to: $content .= '<div style="width:99%; clear:both; font-weight:normal; overflow:hidden;">';

This should, in your template, prevent changing the font size and weight and cause the text to display correctly.

Please let me know how this works out.

14 Aug 2010, 07:48
#17
boudewijn avatar

boudewijn

Zen Follower

Join Date:
Jun 2009
Posts:
207
Plugin Contributions:
0

Re: Poll Manager Support Thread

@cecsy:

The fix above may work for Amanda's template, but not for yours. Please try the fix above and let me know the results. If not ok, please post an URL where I can see what happens.

14 Aug 2010, 19:12
#18
cecsy avatar

cecsy

New Zenner

Join Date:
Jul 2010
Posts:
9
Plugin Contributions:
0

Re: Poll Manager Support Thread

boudewijn:

... includes/templates/<YOUR TEMPLATE>/sideboxes/tpl_poll_box.php, line 113:

from: $content .= '<div style="width:99%;" class="clearBoth">';

to: $content .= '<div style="width:99%; clear:both; font-weight:normal; overflow:hidden;">';

...

This worked! Thank you, so much! :clap:

17 Aug 2010, 02:37
#19
lj20272 avatar

lj20272

New Zenner

Join Date:
Jul 2007
Posts:
57
Plugin Contributions:
0

Re: Poll Manager Support Thread

Awesome stuff..... that fixed it. :D

Thank you so much for your continued support and fixes.

Cheers

Amanda

26 Aug 2010, 04:33
#20
tim_ware avatar

tim_ware

New Zenner

Join Date:
Dec 2007
Posts:
25
Plugin Contributions:
0

Re: Poll Manager Support Thread

Hi Great Mod, i just tried to use it on Zen Cart v1.3.8a and it doesn't store any data in the database when you click send..

Is there any way to get this mod to work with Zen Cart v1.3.8a?