# Poll OneBoxing - Improvement Request

**URL:** https://meta.discourse.org/t/poll-oneboxing-improvement-request/33002
**Category:** Feature
**Created:** [September 7, 2015, 9:05pm UTC](https://meta.discourse.org/t/poll-oneboxing-improvement-request/33002 "2015-09-07T21:05:02Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![BCHK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bchk/32/3268_2.png) [@BCHK](https://meta.discourse.org/u/BCHK)
#### Post date: [September 7, 2015, 9:05pm UTC](https://meta.discourse.org/t/poll-oneboxing-improvement-request/33002/1 "2015-09-07T21:05:02Z")

</div>

There is a great opportunity to improve the Poll oneboxing. It would be ideal if it oneboxed the entire poll so people could easily vote and see results.

My users really like the poll feature and use it often - and it has some really good information in it sometimes that we’d like to share with many other users via linking/referrals - but the current oneboxing really doesn’t do it justice, or make it easy.

Please add the entire poll format to the onebox so it has the voting options. (I’m assumign this is possible without too much trouble).

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [September 7, 2015, 9:08pm UTC](https://meta.discourse.org/t/poll-oneboxing-improvement-request/33002/2 "2015-09-07T21:08:36Z")

</div>

The idea is that people vote on the original post, not a copy or linked version of it…

---

<div class="post-metadata">

### Author: ![BCHK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bchk/32/3268_2.png) [@BCHK](https://meta.discourse.org/u/BCHK)
#### Post date: [September 7, 2015, 9:49pm UTC](https://meta.discourse.org/t/poll-oneboxing-improvement-request/33002/3 "2015-09-07T21:49:41Z")

</div>

Yes - understood.

But there is some really good information in some our polls that I can anticipate using for a long time - i.e. years (e.g. how effective a given medication is for people) - and it helps a lot to be able to direct people to these polls in a way that is visually appealing. Right now we can’t do that - and it really limits the value of the polls.

The current Poll oneboxing is not very visually appealing - so we can’t use it as much as we would like.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [September 7, 2015, 10:40pm UTC](https://meta.discourse.org/t/poll-oneboxing-improvement-request/33002/4 "2015-09-07T22:40:12Z")

</div>

Sure the post one box could handle display of polls better.

---

<div class="post-metadata">

### Author: ![nawthor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nawthor/32/71115_2.png) [@nawthor](https://meta.discourse.org/u/nawthor)
#### Post date: [September 9, 2017, 9:40am UTC](https://meta.discourse.org/t/poll-oneboxing-improvement-request/33002/5 "2017-09-09T09:40:14Z")

</div>

Are there any plans to revisit this?

(Sorry for necroing)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [September 9, 2017, 9:51am UTC](https://meta.discourse.org/t/poll-oneboxing-improvement-request/33002/6 "2017-09-09T09:51:14Z")

</div>

For what purpose? Can you describe the use case with an example or two?

---

<div class="post-metadata">

### Author: ![nawthor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nawthor/32/71115_2.png) [@nawthor](https://meta.discourse.org/u/nawthor)
#### Post date: [September 9, 2017, 10:57am UTC](https://meta.discourse.org/t/poll-oneboxing-improvement-request/33002/7 "2017-09-09T10:57:08Z")

</div>

The thing I want is just to be able to link or quote polls in a visually appealing way. I don’t think users necessarily should be able to vote in oneboxed polls, unlike the OP.

We are currently running weekly polls with discussions, and have a topic where users can find links to past and present polls. If the oneboxes were better we could use the links to give people a glance at the results before they enter the topic.  
It would also be useful when we get around to designing our next big thing, and we could keep a topic where we could have all the relevant polls linked so that we don’t have to open multiple topics to get the results.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [September 9, 2017, 11:12am UTC](https://meta.discourse.org/t/poll-oneboxing-improvement-request/33002/8 "2017-09-09T11:12:01Z")

</div>

> [@nawthor](#):
>
> I don’t think users necessarily should be able to vote in oneboxed polls, unlike the OP.

Well that certainly makes it much easier, and I can agree 100%!

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [September 25, 2017, 5:34am UTC](https://meta.discourse.org/t/poll-oneboxing-improvement-request/33002/9 "2017-09-25T05:34:21Z")

</div>

Hmmm … so testing this out here… just to confirm current behavior

_Poll ([view on site](https://meta.discourse.org/t/poll-oneboxing-improvement-request/33002/9))_

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [September 25, 2017, 5:34am UTC](https://meta.discourse.org/t/poll-oneboxing-improvement-request/33002/10 "2017-09-25T05:34:36Z")

</div>

I have a poll here:

> [@Poll OneBoxing - Improvement Request](https://meta.discourse.org/t/poll-oneboxing-improvement-request/33002/9):
>
> Hmmm … so testing this out here… just to confirm current behavior [poll](https://meta.discourse.org/t/poll-oneboxing-improvement-request/33002/9)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [September 25, 2017, 5:35am UTC](https://meta.discourse.org/t/poll-oneboxing-improvement-request/33002/11 "2017-09-25T05:35:10Z")

</div>

> [@codinghorror](#):
>
> Well that certainly makes it much easier, and I can agree 100%!

This appears to be what is happening now, so I am not sure what change is being proposed.

There may be some edge case around “full post quote” that is about all I can see.

---

<div class="post-metadata">

### Author: ![nawthor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nawthor/32/71115_2.png) [@nawthor](https://meta.discourse.org/u/nawthor)
#### Post date: [October 4, 2017, 2:41pm UTC](https://meta.discourse.org/t/poll-oneboxing-improvement-request/33002/12 "2017-10-04T14:41:50Z")

</div>

The current onebox shows there being 0 voters and shows no results, regardless of what the results were when the quote was created or what it is at the time of viewing.  
This is currently my main issue. I would like it to show the latest results. Considering that an expanded quote will show any updates to the quoted post I would assume this to be possible.

With my first post, the thing I wanted was that the “I am a poll 0 voters Show results” that the quote shows when not expanded be replaced with something “more visually appealing”, be it the oneboxed poll or something else entirely. I now see that I phrased this really poorly.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [October 4, 2017, 3:14pm UTC](https://meta.discourse.org/t/poll-oneboxing-improvement-request/33002/13 "2017-10-04T15:14:18Z")

</div>

We should definitely improve this. Maybe you can add it to your list @gerhard?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [May 13, 2019, 5:05am UTC](https://meta.discourse.org/t/poll-oneboxing-improvement-request/33002/14 "2019-05-13T05:05:45Z")

</div>

@nbianca can you improve the oneboxing for polls maybe instead of:

> [@Poll OneBoxing - Improvement Request](https://meta.discourse.org/t/poll-oneboxing-improvement-request/33002/9):
>
> Hmmm … so testing this out here… just to confirm current behavior [poll](https://meta.discourse.org/t/poll-oneboxing-improvement-request/33002/9)

> Hmmm… so testing this out here… just to confirm current behavior
> 
> - I am
> - a poll

Or even if we are feeling a bit out-of-space

> Hmmm… so testing this out here… just to confirm current behavior [poll]

Maybe go with the second one for now cause we don’t like multiline in our onebox, also test on topic onebox (which has slightly diff format)

---

<div class="post-metadata">

### Author: ![nbianca](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nbianca/32/157984_2.png) [@nbianca](https://meta.discourse.org/u/nbianca)
#### Post date: [May 14, 2019, 6:22am UTC](https://meta.discourse.org/t/poll-oneboxing-improvement-request/33002/16 "2019-05-14T06:22:55Z")

</div>

I implemented this in

[https://github.com/discourse/discourse/pull/7539](https://github.com/discourse/discourse/pull/7539)

Here is how it looks:

 ![18](https://global.discourse-cdn.com/meta/original/3X/e/f/ef0eb60674d142d651a883009f430acef80fcf30.png)

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [May 14, 2019, 2:09pm UTC](https://meta.discourse.org/t/poll-oneboxing-improvement-request/33002/17 "2019-05-14T14:09:27Z")

</div>

> [@sam](#):
>
> Maybe go with the second one for now cause we don’t like multiline in our onebox, also test on topic onebox (which has slightly diff format)

I kinda agree with @sam here. Polls might contain lots of items and that will be really hard to display correctly in a onebox. I think the easiest way would be to replace the poll with a link.

---

<div class="post-metadata">

### Author: ![nbianca](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nbianca/32/157984_2.png) [@nbianca](https://meta.discourse.org/u/nbianca)
#### Post date: [May 14, 2019, 3:37pm UTC](https://meta.discourse.org/t/poll-oneboxing-improvement-request/33002/18 "2019-05-14T15:37:50Z")

</div>

Oh, I updated my PR. It was a small change:

 ![28](https://global.discourse-cdn.com/meta/original/3X/4/8/4800efc0643c163e7aab4bf3c584ecd73ccebb8a.png)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [May 14, 2019, 3:40pm UTC](https://meta.discourse.org/t/poll-oneboxing-improvement-request/33002/19 "2019-05-14T15:40:03Z")

</div>

Much safer, easier too, looks excellent!

---

<div class="post-metadata">

### Author: ![nbianca](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nbianca/32/157984_2.png) [@nbianca](https://meta.discourse.org/u/nbianca)
#### Post date: [June 6, 2019, 12:22pm UTC](https://meta.discourse.org/t/poll-oneboxing-improvement-request/33002/20 "2019-06-06T12:22:47Z")

</div>


