New BBcode to show YouTube video in wapka site by riyad - TrickMela.com
Wednesday , September 19 2018
Home / Uncategorized / New BBcode to show YouTube video in wapka site by riyad

New BBcode to show YouTube video in wapka site by riyad

Hello guys, how are you? I think you’re well and fine.
Let’s discuss about the new bbcode. Somedays ago I thought about to show YouTube videos like Other newspaper site.
Whatever, from one of my great Friends discussed with the topic to do something. Thus I got inspiration from him and made the code and added to my site.

Let’s begin the tutorial:

Want to see a demo?

[youtube=UnSm9OLQECg]

First go to your sites [color=green]Forum footer[/color] and paste this code in [b]Wml/Xhtml[/b] box.
var msg=document.getElementsByName("riad"); var topic="0"; for(var i=0;i<msg.length;i++){var txt=document.getElementsByName("riad")[i].innerHTML; txt=txt.replace(/\[youtube=(.+?)]/ig,'

');document.getElementsByName("riad")[i].innerHTML=txt;}

and at last go to your message in forum 1st box and Find ::msg:: and replace it with this.
::msg::
Usage:[/color] use youtube video IDto show the video in the post.
Suppose your YouTube video link is [color=blue]http://m.youtube.com/watch?v=[b]hEyhJqNt2rk[/b][/color] then use: [*youtube=hEyhJqNt2rk] ( remove * )

Note: You can see that it’s a very small bbcode i shared. Even you can also think that it’s not a difficult task to make it. Yap! You’re right.

Check Also

মাসে ২০-৩০ হাজার টাকা ইনকাম করুন,,।।টাকা নিন বিকাশে বা প্লেক্সিলোডে,,

!!!শুরুতে সবাই আমার সালাম নিবেন !!! আজ আমি ! জাহিদ !  আপনাদের মাঝে হাজির হয়েছে …

One comment

  1. Are vai,,

    code deyar bb code eta na…

    Bb code ta holo:

    code

    Remove + from the code….

Leave a Reply