Forums

RS-Linkify Thread is sticky

Quick find code: 261-262-33-65181208

Indecent Act

Indecent Act

Posts: 7,456 Rune Posts by user Forum Profile RuneMetrics Profile
Laughing right now, I'm not sure we are on the same page. It hard to see things from my end but I'll try to break this bit down.

Here's the scenario...

Two links are posted to polls...

htt ps://embed-dot-hlf-polls.appspot.com/#/polls/
3

h ttps://embed-dot-hlf-polls.appspot.com/#/polls/
4


Currently I get a message...

Object {height: 200, id: null}
Object {height: 455, id: null}

if the message was changed to this...

Object {height: 200, id:
3
}
<-- 3 being the number in the url
.../#/polls/
3

Object {height: 455, id:
4
}
<-- 4 being the number in the url
.../#/polls/
4


I can use the value from id to find the correct iframe. No url parameters needed.

Object {height: 200, id:
3
} =
htt ps://embed-dot-hlf-polls.appspot.com/#/polls/
3


Object {height: 200, id:
4
} =
htt ps://embed-dot-hlf-polls.appspot.com/#/polls/
4


Currently I don't know what height goes to what iframe. I just need something to match them. I have the url, and you have the url and the height. You don't have to call it "id", can name it anything that suits but I need those two bits of info.


I'm sorry if this just repeating myself, just I can't determine from your last post if you know where I'm coming from.

h ttps://embed-dot-hlf-polls.appspot.com/#/polls/
4

...................................................The id needs to be this ^

As for messaging to and fro, I think that's going to be counter productive and overly complicate things. But I'm sure if there is need to send other info to assist with embedding, we can do that.

20-Jun-2015 13:23:23 - Last edited on 20-Jun-2015 13:40:05 by Indecent Act

Blasty
Feb Member 2017

Blasty

Posts: 9,319 Rune Posts by user Forum Profile RuneMetrics Profile
Haha, the admins in my clan also tell me I misinterpret what they say too so you're not alone :P

I've changed it to {height: _, pollId: _}, where height is a positive number and pollId is either "create" or a non-negative number.

:)
Blasty
// @BlastytheBlue // Blasty#5167
| Co-owner of Mine Nation

20-Jun-2015 13:58:54 - Last edited on 20-Jun-2015 13:59:38 by Blasty

Indecent Act

Indecent Act

Posts: 7,456 Rune Posts by user Forum Profile RuneMetrics Profile
You are awesome Blasty :)

Just checked it and it's perfect.

Actually I don't entirely agree about you misinterpreting. Throughout this thread we've conveyed loads of information and it's felt effortless.

Anyway, I'll tidy up what I have written then push out an update so we can test it and see it working :)

Edit:
Update Version 3.1.8.46
Still just for testing polls but it's looking pretty good so far.

I need to get some sleep, but tomorrow I'll work on it some more. In the meantime if there is anything you can think of or wish to add let me know :)

20-Jun-2015 14:21:12 - Last edited on 20-Jun-2015 14:41:24 by Indecent Act

Blasty
Feb Member 2017

Blasty

Posts: 9,319 Rune Posts by user Forum Profile RuneMetrics Profile
Haha,

Looking great :)

At the moment it seems to require the height parameter to embed, although it shouldn't be necessary of the height automatically updates. Could you let it embed without any url parameters? :)

https://hlf-polls.appspot.com/#/polls/2

https://hlf-polls.appspot.com/#/polls/2?height=800
Blasty
// @BlastytheBlue // Blasty#5167
| Co-owner of Mine Nation

20-Jun-2015 17:46:19 - Last edited on 20-Jun-2015 17:49:02 by Blasty

Indecent Act

Indecent Act

Posts: 7,456 Rune Posts by user Forum Profile RuneMetrics Profile
I just had to change my regular expression for determining poll links.

Version 3.1.8.47 (live now) will embed poll links without URL parameters.

I remember in the past some people didn't use the embed link and just copied the URL from the address bar. I'm hoping this will work either way now.

I assume poll creation will work the same way as previously, by linking to poll creation page?

21-Jun-2015 03:00:00

Indecent Act

Indecent Act

Posts: 7,456 Rune Posts by user Forum Profile RuneMetrics Profile
Blasty, do you have any suggestions on where to put the poll creation link.

And do you have suggestions about the style of it.

My thinking is a button, maybe something like this. Can use a different image for the button too. So if you have any images you'd rather use let me know :)

http://i.imgur.com/LpIcxQp.png
Mouse over text would something like HLF Polls or Blasty's HLF Polls.

I want to keep it away from the navigation buttons, but I'm open to suggestions.

21-Jun-2015 05:15:13

Blasty
Feb Member 2017

Blasty

Posts: 9,319 Rune Posts by user Forum Profile RuneMetrics Profile
I like that placement and styling :D Just "HLF Polls" is fine, just so it matches the title on the page.

In forums with built-in poll features, polls are created as part of the thread creation options but I think it'd be better if we kept it simple and not go too far to try to integrate it :P

Sounds all good :)
Blasty
// @BlastytheBlue // Blasty#5167
| Co-owner of Mine Nation

21-Jun-2015 06:55:13

Quick find code: 261-262-33-65181208 Back to Top