Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
YouTube MyCode
#1
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:

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.
Reply
#2
Is there a way to make it use the full youtube.com link instead of the video id?
Reply
#3
Not with a simple mycode since you'd have to do Php replacement.
You would need a plugin for this.
Forum Admin
Reply
#4
Ah, alright. Thanks.
Reply
#5
(06-12-2009, 06:40 PM)Lennart Wrote: Not with a simple mycode since you'd have to do Php replacement.
You would need a plugin for this.

Or, you could look here:

http://mybbsource.com/thread-2252.html

;D
Reply
Register (for free) to hide the ads.
#6
[youtube]y319xPXDDtk[/youtube]
Reply
#7
I didn't add this mycode here, sorry.
Forum Admin
Reply
#8
It works. I've tested it. PM me I'll give you the link to the working forum I have it installed on.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)