Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

PHP

Name: Sup 2011-05-21 19:15

Could anyone give me a hand, I want to drop the dropdown select and set it automaticly to Youtube. I would appreciate the help.

http://pastebin.com/QfDvnxkg

Name: Anonymous 2011-05-21 19:17

and with dropping it I mean I don't want the dropdown select at all.

Name: Anonymous 2011-05-21 19:21

{$embed.name = Youtube}

Doesn't work either (this is DWOO)

Name: Anonymous 2011-05-21 19:23

<input type="hidden" name="embed" value="youtube">

This replaces the whole {foreach} structure.

Name: Anonymous 2011-05-21 19:31

... and the <select> tag around it. Confound you, Heisenberg.

Name: Anonymous 2011-05-21 19:32

Thanks, Anon.

I'm trying:
                                <input type="hidden" name="embedtype" value="Youtube" />

With no avail, unfortunately.

Name: Anonymous 2011-05-21 19:40

"youtube" should be in lower case, and the input tag's name was "embed", not "embedtype", like the select tag's was. Otherwise you're writing code that isn't compatible with the HTML you pastebinned.

Name: Anonymous 2011-05-21 19:43

Hi, Anon.

Embed is the URL, we need the embedtype and I already tried youtube in lower case.

Name: Anonymous 2011-05-21 19:47

>>8
Sorry; misread. I can't do anything further without more context.

Name: Anonymous 2011-05-21 19:55

Sorry about that, I'll provide more info.

So, this is what we want to get working:
http://pastebin.com/raw.php?i=nYYxTF7G

Here's the original:
http://pastebin.com/raw.php?i=d3uQ38qn

Basically, I don't want there to be a drop down menu showing just one value (Youtube), I want Youtube to be automatically selected as the type.

A screenshot: http://i.imgur.com/DqTt8.png

Name: Anonymous 2011-05-21 20:19

>>10
The only possible explanation I can give is that the embedtype needs have a value other than the string "youtube". There's no way the code could not work, unless it's being parsed by some js that's looking for a select tag... but if the dropdown displays "YouTube", then that can't be wrong. You'd need to share what happens on the other end.

Name: Anonymous 2011-05-21 20:22

Awesome, works now.

Thanks for the suggestion Anonymous, worked perfect.

Don't change these.
Name: Email:
Entire Thread Thread List