Adding a YouTube tag to phpBB3
Bayard Randal was using the open source online forum software application phpBB3, and decided to create a hack to allow users to easily embed YouTube videos in their forum posts.
Click the link to see his walkthrough.
Using phpBB3 Release Candidate 4 - released 28 July 2007.
1. Log in to the Administrative Control Panel (ACP), and click the Posting tab.
2. Click the Add a new BBCode button in the bottom right hand corner.
phpbb3_1.png
3. Enter the following under BBCode Usage:
[youtube:3j1smmkf]{TEXT}[/youtube:3j1smmkf]
4. Enter the following under HTML replacement:
<embed src="http://www.youtube.com/v/{TEXT}" wmode="transparent" style="width:400px; height:326px;" id="VideoPlayback" type="application/x-shockwave-flash" flashvars="">
5. (Optional) Enter the following under Help line:
Use the ID of the youtube video.
6. Ensure that Display on posting page is checked.
7. Click Submit
You should now have a YouTube button available from your posting interface.
phpbb3_2.png
To use it, simply enter the ID of the YouYube video between the BBCode.
Example:
If your youtube URIL is: [url="http://www.youtube.com/watch?v=areyUfCNFxY"]http://www.youtube.com/watch?v=areyUfCNFxY[/url]
your BBCode in your post would appear:
[youtube:3j1smmkf]areyUfCNFxY[/youtube:3j1smmkf]
Thanks for the tip, Bayard!
Bookmarks