Add youtube support

This commit is contained in:
Travis Burtrum 2012-12-26 23:54:02 -05:00
parent 9683dc7928
commit dab6db478f
3 changed files with 14 additions and 1 deletions

3
README
View File

@ -22,6 +22,7 @@ Features:
8. Can sort by all meaningful table columns.
9. Uses MySQLi.
10. Search powered by the fast Sphinx Search Server.
11. Embedded Youtube support (if your forum bbcode parser supports it)
How to make it work:
----------------------
@ -77,5 +78,5 @@ tbszip.php : (LGPL) http://www.tinybutstrong.com/dl.php?f=tbszip.zip&s=2
TODO:
----------------------
1. Embedded youtube support?
1. Better database structure, 1 table for normal, banned, and toadd servers.
2. You suggest it! Or better yet send me a pull request or patch!

BIN
images/bbc/youtube.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 676 B

View File

@ -541,6 +541,18 @@ function echoForm($name, $ip, $port, $version, $message, $pic_url, $edit = false
Lime Green
</option>
</select><br/>
<a href="javascript:void(0);" onclick=
"surroundText('[youtube]', '[/youtube]', document.forms.postmodify.message); return false;"><img onmouseover=
"bbc_highlight(this, true);"
onmouseout="if (window.bbc_highlight) bbc_highlight(this, false);"
src=
"<?php echo $g_img_dir; ?>/bbc/youtube.gif"
width="23"
height="22"
alt="Youtube"
title="Youtube"
style=
"background-image: url(<?php echo $g_img_dir; ?>/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;"/></a>
<a href="javascript:void(0);" onclick=
"surroundText('[img]', '[/img]', document.forms.postmodify.message); return false;"><img onmouseover=
"bbc_highlight(this, true);"