06-11-2009, 11:59 PM
This MyCode makes it possible to display YouTube video on your forum board, in threads and so on.
Add the following to a new "Custom MyCode" in the ACP:
MyCode title: YouTube
Regular expression:
Replacement:
You are not allowed to see php code.
Then simply put the "video id" in between the [youtube][/youtube] tags and it will display in the page.
For example, this video: http://www.youtube.com/watch?v=qj9KgUtdQVc
has the "video id": qj9KgUtdQVc (the bit after the watch?v= )
So you would use: [youtube]qj9KgUtdQVc[/youtube] to show it.
Add the following to a new "Custom MyCode" in the ACP:
MyCode title: YouTube
Regular expression:
Quote:\[youtube\](.*?)\[/youtube\]
Replacement:
You are not allowed to see php code.
Then simply put the "video id" in between the [youtube][/youtube] tags and it will display in the page.
For example, this video: http://www.youtube.com/watch?v=qj9KgUtdQVc
has the "video id": qj9KgUtdQVc (the bit after the watch?v= )
So you would use: [youtube]qj9KgUtdQVc[/youtube] to show it.