?

Log in

No account? Create an account

Previous Entry | Next Entry

SOLVED: Embedded Videos not working?

  • Oct. 23rd, 2006 at 1:47 AM
I've just noticed that if I embed a youtube video in a post that it can't be seen.

Example entry in my style
same entry in ?format=light

I've checked through the bugs and known issues here, but couldn't see anything about it. I assume it's something left over from the vox codes that is hiding the video, does anyone know what I need to amend to get them to show?

ETA: Apparently it was my own fault. Thanks to camomiletea for the solution.

Comments

( 3 comments — Leave a comment )
camomiletea
Oct. 23rd, 2006 02:01 pm (UTC)
It because of your theme layer which uses $e.text. In order for video, phoneposts and other restricted content to display correctly, you must adjust your code to use $e->print_text(); in those cases, and do whatever you wish with the text on other entries that don't contain any restricted content.

Something like this:

if ($e.text_must_print_trusted) {
$e->print_text();
} else {
#whatever you are doing with $e.text here
}
camomiletea
Oct. 23rd, 2006 02:01 pm (UTC)
If you need help, let me know.
japewierd
Oct. 23rd, 2006 08:04 pm (UTC)
It worked. Thank you so much!

I'd amended that part because I used this tutorial for adding smilies and couldn't get it to compile using the $e->print_text. I'll just have to remember not to have smilies and videos in the same post.

Thanks again.
( 3 comments — Leave a comment )

Latest Month

March 2016
S M T W T F S
  12345
6789101112
13141516171819
20212223242526
2728293031  

S2 Help Communities

Tags

Powered by LiveJournal.com
Designed by chasethestars