6 of 12
6
EE Poll (Thread #2)
Posted: 23 January 2006 11:19 AM   [ Ignore ]   [ # 91 ]  
Lab Assistant
RankRank
Total Posts:  213
Joined  05-15-2004

If we can get a definitive answer that removing the name attribute will not adversely affect anyone, I would be happy to do it.  I just don’t like making changes I don’t fully understand.

 Signature 

Ed
King of Fools
Blogrescue.com

Profile
 
 
Posted: 23 January 2006 11:24 AM   [ Ignore ]   [ # 92 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  103
Joined  07-09-2002

Is it possible for me to do it on my current install? or is it something you have to modify on your builds?

 Signature 

It’s the strangest thing. Yesterday, it was hard, today, it is easy. Just a good night’s sleep, and yesterday’s mysteries are today’s masteries.

Profile
 
 
Posted: 23 January 2006 11:52 AM   [ Ignore ]   [ # 93 ]  
Lab Assistant
RankRank
Total Posts:  213
Joined  05-15-2004

Ok, I did a little more research and I figured out that 1. Im comfortable removing the tag and 2. I was forcing that tag in there (didn’t see that at first).  Try this:

EEPoll 1.63

 Signature 

Ed
King of Fools
Blogrescue.com

Profile
 
 
Posted: 23 January 2006 11:58 AM   [ Ignore ]   [ # 94 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  103
Joined  07-09-2002

Wow, you are fast! I will upgrade tonight and let you know.

 Signature 

It’s the strangest thing. Yesterday, it was hard, today, it is easy. Just a good night’s sleep, and yesterday’s mysteries are today’s masteries.

Profile
 
 
Posted: 23 January 2006 07:04 PM   [ Ignore ]   [ # 95 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  103
Joined  07-09-2002

Cool, that fixed worked, but..there is one more minor fix necessary before all is perfect,  as you can see below the bar img needs an alt tag. But that one is easy. Why didn’t I see this before? You may ask? Well I did not upload the pollimg.gif into the images folder ( Shame on Me).

 

This page is not Valid XHTML 1.0 Strict!
Below are the results of checking this document for XML well-formedness and validity.

Error Line 141, column 276: required attribute “alt” not specified .
...th:100px;background-color:#FF0000;’ /></span>
The attribute given above is required for an element that you’ve used, but you have omitted it. For instance, in most HTML and XHTML document types the “type” attribute is required on the “script” element and the “alt” attribute is required for the “img” element.
Typical values for type are type=“text/css” for <style> and type=“text/javascript” for <script>.
?

Error Line 143, column 239: required attribute “alt” not specified .
...dth:54px;background-color:#FF0000;’ /></span>
?

Error Line 145, column 244: required attribute “alt” not specified .
...dth:41px;background-color:#FF0000;’ /></span>

 Signature 

It’s the strangest thing. Yesterday, it was hard, today, it is easy. Just a good night’s sleep, and yesterday’s mysteries are today’s masteries.

Profile
 
 
Posted: 24 January 2006 05:51 PM   [ Ignore ]   [ # 96 ]  
Lab Assistant
RankRank
Total Posts:  213
Joined  05-15-2004

I tweaked the image so it has an alt tag but I didn’t bother upping the release.  Go ahead and redownload 1.63 above and let me know how it goes.

 Signature 

Ed
King of Fools
Blogrescue.com

Profile
 
 
Posted: 24 January 2006 07:25 PM   [ Ignore ]   [ # 97 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  103
Joined  07-09-2002

Perfection!!!

This Page Is Valid XHTML 1.0 Strict!

Do you have a Amazon Wishlist or are you strictly a Paypal? Let me know and I’‘ll take care of it early next week.

 Signature 

It’s the strangest thing. Yesterday, it was hard, today, it is easy. Just a good night’s sleep, and yesterday’s mysteries are today’s masteries.

Profile
 
 
Posted: 25 January 2006 03:55 AM   [ Ignore ]   [ # 98 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  432
Joined  08-03-2004

Hey Ed!

Mate. . . . bloody great work . . . I haven’t updated the module yet but looks like your are really squashing the bugs in what is already a top module!

“WE” (meaning you Ed / KOF ) have come a long way in just under 1 year.

Sorry it took so long but something from your wishlist is on the way to Texas “from” Tasmania!

Thanks mate smile

 Signature 


§ Dr. Thomas Moore § BSME, MSME, Ph.D. • Earth system scientist
Director, co-founder, editor • http://www.CoastView.com.auhttp://www.VirtualTasmania.comhttp://www.SurfTasmania.com
Photographer • http://www.DigitalTasmania.com

Profile
 
 
Posted: 08 February 2006 02:15 PM   [ Ignore ]   [ # 99 ]  
Grad Student
Rank
Total Posts:  84
Joined  04-17-2004

Thanks for the new version. I’m having a problem I still had with the old version. When trying to view a vote or cast a vote for a poll which is on the third page of my blog (i.e. not on the main page) it sends me back to the home page whereas I would expect to be sent to the original page/posting I was on. Is there any workaround/fix/suggestions for this?

 Signature 

Richard Byrom
Information Technology Consultant, Speaker and Author
Web: http://www.richardbyrom.com

Profile
 
 
Posted: 08 February 2006 04:18 PM   [ Ignore ]   [ # 100 ]  
Lab Assistant
RankRank
Total Posts:  213
Joined  05-15-2004

Returning to the same page is the normal behavior.  There is a target tag to allow you to specify where poll votes resolve to.  Perchance have you set target=’’ in your poll template?  That would always force it to the front page.

 Signature 

Ed
King of Fools
Blogrescue.com

Profile
 
 
Posted: 08 February 2006 04:28 PM   [ Ignore ]   [ # 101 ]  
Grad Student
Rank
Total Posts:  84
Joined  04-17-2004

Mmm.. I don’t think I have the target tag set, I’ll have to check that. Also, any new polls I conduct since the upgrade from 1.4 to 1.63 are not displaying. I have a custom field defined with a poll id - is there a change log I can have a look at to see what changed between these versions and might possibly be causing this problem?

 Signature 

Richard Byrom
Information Technology Consultant, Speaker and Author
Web: http://www.richardbyrom.com

Profile
 
 
Posted: 17 February 2006 06:36 PM   [ Ignore ]   [ # 102 ]  
Lab Assistant
RankRank
Total Posts:  213
Joined  05-15-2004

Richard, yes there is a change log at the start of mcp.eepoll.php.

—-

By the way, I had one bug and one new feature to add, and have another version ready for your polling pleasure.

EEPoll 1.7

What’s new?

There was a bug when viewing the results without voting and then pressing the vote button to go back.  Some sites were getting an error (depended on the PHP settings on the server).  In addition, there is a new template tag option:

{exp:eepoll poll_id=’{poll_id}’ start=‘result’}

If the start=‘result’ is present, then the default display mode of the poll will be the results instead of the poll form.  A vote button is also shown so it is possible to get to the poll form and cast your vote.

 Signature 

Ed
King of Fools
Blogrescue.com

Profile
 
 
Posted: 20 February 2006 01:13 AM   [ Ignore ]   [ # 103 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  242
Joined  05-24-2002

I just updated to v1.7 (thank you for that!) but I’m having a small problem: Since we have a dutch website I’ve tried to change the language from the voting buttons. Somehow the “View” button stops working when I change the value=“View” thing. I guess that’s normal, but I can’t change the name=“view” tag as it doesn’t have any effect at all. Is there a way to solve this?

This is what I’ve got in mod.eepoll.php:

// Add questions to output string
foreach($poll_question as $item) {
$data
.= $item;
}

$data
.= "</div>\n";

if(
$poll_email_mode == 'Y' && !$mbr) {
$data
.= "<div class='pollEmailBlock'>\n";
$data .= "Email: <input class='pollEmailInput' type='text' name='email' value='' />\n";
$data .= "</div>\n";
}

$data
.= "<div class='pollButtonBlock'>\n";
$data .= "<input class='pollButton' type='submit' name='submit' value='Stem' />\n";
if(
$poll_result_mode == 'A') {
$data
.= "<input class='pollButton' type='submit' name='view' value='View' />\n";
}
$data
.= "</div>\n";

$data .= "</div>\n";
$data .= "</div>\n";
$data .= "</form>\n";

 Signature 

You know me better than that, love. I don’t “do” anything. Things just happen.

Profile
 
 
Posted: 20 February 2006 01:51 AM   [ Ignore ]   [ # 104 ]  
Lab Assistant
RankRank
Total Posts:  213
Joined  05-15-2004

The issue is that the code checks the value of the submit button since there may be more than one on a poll.  Unfortunately, this does make it a bit difficult to change the displayed value.  I could make a language entry for the value - but if someone inadvertantly sets the View and Vote language values the same, the module will stop functioning.  Let me think about that for a day.

 Signature 

Ed
King of Fools
Blogrescue.com

Profile
 
 
Posted: 25 February 2006 02:11 PM   [ Ignore ]   [ # 105 ]  
Grad Student
Rank
Total Posts:  81
Joined  08-09-2005

I’m new to EE (and therefore to EEpoll). Having installed v 1.7, I spent all day getting to grips with it (so glad KoF took the time/effort to put it together).

Having seen this module in effect on some other sites, I have a couple of questions:

My results are displayed as follows:

Each ‘answer’ appears above its result. The result bar is followed (on the same line) by the percentage, then the number of votes cast, in brackets. However, the percentage is also displayed WITHIN the coloured bar. I have not seen this on any other site and assume that it should not be so.
When I reload the page, the poll briefly ‘flashes’ with a different style (the bars are not as high - which is how they are set in the CP)

Some sites have different colours for each bar. How do I do this?

I initially followed the setup instruction (per wiki) and created a custom field (pollid). However, after reading all the previous posts, I was confused as to why this was necessary. I have since deleted this custom field and apart from the above problems (which were the same even before I deleted the custom field), the poll seems to work ok. My template code is:
{exp:eepoll poll_id=“latest”}
{poll}
{/exp:eepoll}

Thanks in advance for any help,

Coober

 Signature 

Sorry if this question has been answered before, but as I’ve said in this post I am unable to search these forums.

Profile
 
 
Posted: 25 February 2006 02:54 PM   [ Ignore ]   [ # 106 ]  
Lab Assistant
RankRank
Total Posts:  213
Joined  05-15-2004
Coober - 25 February 2006 02:11 PM

Each ‘answer’ appears above its result. The result bar is followed (on the same line) by the percentage, then the number of votes cast, in brackets. However, the percentage is also displayed WITHIN the coloured bar. I have not seen this on any other site and assume that it should not be so.
When I reload the page, the poll briefly ‘flashes’ with a different style (the bars are not as high - which is how they are set in the CP)

I think this happens when the image is not installed in the right place.  The zip should contain the file: pollimg.gif.  This should be stored in /images on the domain.  (This is a hard coded path and should probably be in the configuration…something for the next release if I can remember it.)

Some sites have different colours for each bar. How do I do this?

You can set the colors up for all polls or also on an individual poll by poll basis.  The ‘Bar Color Configuration’ (global version is in configuration and there is also one for each poll) expects a list of html color codes separated by carriage returns.  Example: If you want your poll bars to be red, green and then blue, your color configuration should be #ff0000<enter>#00ff00<enter>#0000ff.  If you have more bars than colors, the colors simply repeat.

I initially followed the setup instruction (per wiki) and created a custom field (pollid). However, after reading all the previous posts, I was confused as to why this was necessary. I have since deleted this custom field and apart from the above problems (which were the same even before I deleted the custom field), the poll seems to work ok. My template code is:
{exp:eepoll poll_id=“latest”}
{poll}
{/exp:eepoll}

The wiki explains how to associate a poll with a particular entry.  Your template code is fine, as long as you only want to display the latest poll. As soon as you add another poll, that one will be gone forever.  (But if that is what you want, that works too.)

 Signature 

Ed
King of Fools
Blogrescue.com

Profile
 
 
Posted: 26 February 2006 12:33 AM   [ Ignore ]   [ # 107 ]  
Grad Student
Rank
Total Posts:  81
Joined  08-09-2005
Ok, so if I want to keep previous polls, or display other than the ‘latest’ poll, it’s necessary to create the custom field. Should the custom field be named “poll_id” or “pollid”? [quote author=“King of Fools” date=“1113448036”> Your template looks great.  To make it work, you need to have created a custom field on that weblog which has a field name of “pollid”.  Very important:  The field type must be Text Input and the default formatting must be set to None!
When you state “created a custom field on THAT weblog…”, which weblog should that be? I realise this is a very basic question, but as an EE newbie, I’m still getting to grips with field groups etc. The .gif image was missing (but you already knew that - right?) and the bars are now behaving themselves nicely, since the image was uploaded. Many thanks, Coober
 Signature 

Sorry if this question has been answered before, but as I’ve said in this post I am unable to search these forums.

Profile
 
 
Posted: 01 March 2006 08:49 AM   [ Ignore ]   [ # 108 ]  
Lab Assistant
RankRank
Total Posts:  213
Joined  05-15-2004

by ‘That Weblog’, I mean whichever weblog you want the polls to appear on.  My guess is most people use just one weblog.  I use three but two are just for sidebar purposes (blogroll and reading list).

 Signature 

Ed
King of Fools
Blogrescue.com

Profile
 
 
   
6 of 12
6
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64503 Total Logged-in Users: 36
Total Topics: 81060 Total Anonymous Users: 13
Total Replies: 436244 Total Guests: 158
Total Posts: 517304    
Members ( View Memberlist )