New BBcode to show YouTube video in wapka site by riyad - TrickMela.com
Saturday , May 26 2018
Home / Airtel Free Net / 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

বর্তমান সময়ের শ্রেষ্ঠ আর্নিং সাইট। বিনা ইনভেস্টে Daily ইনকাম ১০০- ২০০ টাকা। ( Payment পাবেন Bikash , Rocket, Payza) না দেখলে মিস করবেন।

বিসমিল্লাহির রাহমানির রাহীম। আমি আজ এমন একটা সাইট নিয়ে কথা বলব যাতে আজীবন কাজ করতে …

One comment

  1. Are vai,,

    code deyar bb code eta na…

    Bb code ta holo:

    code

    Remove + from the code….

Leave a Reply