Display YouTube thumbs in my admin

2 posts by 2 authors in: Forums > CMS Builder
Last Post: October 22, 2010   (RSS)

Hello,
I wonder how to call / print a variable in a field in CMS Builder admin.
Here is what i want to acheive.

I made a simple editor to record Youtube videos.
I know how to display the video thumbs automaticaly on my website, what i want to do is to display the thumbs also in my admin

Exemple if my video code is "l1xpDLNXhzY" it is simple to call the thumb this way http://i1.ytimg.com/vi/l1xpDLNXhzY/default.jpg.

So my idea is to have a "textfield" call "thumb", wich will be autofill as this <iframe src="http://i1.ytimg.com/vi/l1xpDLNXhzY/default.jpg" width="120" height="90" frameborder="0"></iframe>

I've tryed to set my textfield default value calling my variable as this

<?php echo $record['youtube_code'] ?>

Here is what i get in the field : Notice: Undefined variable: record in /var/www/vhosts/......../lib/common.php(432) : eval()'d code on line 1


Could some body help me please?