I got this to work on the Forum Blocks thanks to
simonhind who posted up a block template on another thread, and of course to the developer of this one for his code.
First create a block template:
1. Go to Admin CP > Styles & Templates > Style Manager > Add New Template
2. Name your template whatever you want. I named mine "youtube_search" -- just remember what you called it.
3. Paste in the following code into the template:
Code:
<li>
<div class="block smaller">
<div class="blocksubhead">
<a class="collapse" id="collapse_block_title" href="#top"><img alt="" src="{vb:stylevar imgdir_button}/collapse_40b.png" id="collapseimg_title"/></a>
<span class="blocktitle"><img src="{vb:stylevar imgdir_cms}/widget-forum.png" title="{vb:raw blockinfo.title}" alt="" /> {vb:raw blockinfo.title}</span>
</div>
<div id="block_title" class="blockbody floatcontainer">
<div class="blockrow">{vb:raw content}</div>
</div>
</div>
<div class="underblock"></div>
</li>
Now create your Forum Block:
1. Go to Admin CP > Forums & Moderators > Forum Blocks Manager > Add Block > Select Block Type > Custom HTML/PHP
2. Give your Forum Block a name like "YouTube Search" for example, a short description if you wish, and for Content Type select HTML.
3. Paste in the follow code in the big Content box underneath:
Code:
<center>
<img src="[Replace This Image Path]/youtube.gif" height="66" width="150"><br />
<br />
<form id="vb_yt_search-form" action="http://www.youtube.com/results" method="get" target="_blank">
<input id="vb_yt_search-term" name="search_query" type="text" maxlength="128" />
<select id="vb_yt_searcg-type" name="search_type">
<option value="">Videos</option>
<option value="search_users">Channels</option>
</select>
<input type="submit" value="Search" />
</form></center>
4.
Important - Make sure for "Template to Use" that you put in the name of that template you created above. For example: youtube_search
That should do the trick. I'm not a coder, but I figure I'd share my results in case it helps someone else. I have attached the YouTube logo I'm using which is a transparent GIF which should work on most light themed forums.