pricediscrimination:
I wish but it isn't yet. Before moving to C-PAnel hosting (the onset of this iframe debacle) there were already hundreds of products listed with the iframe code. Now those are not editable unless the videos are removed and code readded to the database manually (or using the old object code).
Are you familiar with phpmyadmin at all? It wouldn't be difficult to do a SQL search/replace to update all the iframes to objects or embeds.
pricediscrimination:
Also, I'd like to keep it all the same ie: hundreds with iframe,
The thing is, since GoDaddy are disallowing the iframe in the custom $_POST variable you really don't have much choice in the matter. It has nothing to do with cPanel. It is something that Godaddy has explicitly disallowed, and to be perfectly honest I don't dissaprove of this particular restriction. It is possibly one of the few good things they've done.
pricediscrimination:
keep it all iframe especially since that seems to be what youtube is supporting most moving forward.
Did you not read all of my previous message?... Youtube aren't moving forward to using iframes, they are taking a step backwards.
There is no need for you to follow their idiocy. If you want to move forward rather than backwards you should ignore their code examples and do things the more modern way.
pricediscrimination:
I could try the idea of just adding the URL as a variable
Or better yet... just the video IDs (as per lhungil's suggestion/method)
pricediscrimination:
and making the code use that variable within a set iframe code
Please don't. You aren't doing yourself any favours at all by using iframes, even if that is what youtube provide for their cut n paste code.
Ask yourself.... Why have godaddy placed a restriction on the iframe, but not the other methods? Who has it 'wrong' GoDaddy or Youtube?
Although not something you'll hear every day, but in this case its Godaddy that are doing it 'right' and youtube that have got it 'wrong'.
pricediscrimination:
but frankly I don't even know where to start.
This is a little tough because you have 3 options available to you.
- Find another host that isn't as 'protective' as Godaddy so you can carry on as you have been.
- Using phpmyadmin (or similar SQL tool) and globally replace all of the iframes with the object or embed methods
- Using phpmyadmin and globally deleting everything except the VideoID's and adding the iframe/object/embed into the relevant places in your template file(s).
pricediscrimination:
I was able to get the custom field working with posts from here, but I don't know how to make the input of that field into a variable used by a code to display the videos. Also this would mean going back and redoing all of the existing iframes...
Other than changing hosts, you have no other option but to redo all of the existing iframes (using options #2 or #3) above.
Although your best solution (IMO) would be option#3 I think your easiest solution (assuming you wish to stay with GD) would be option#2
Cheers
RodG