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?
First go to your sites Forum footer and paste this code in Wml/Xhtml box.
Code: copy by quote ↓↓
<script language="JavaScript">var msg=document.getelementsByname("sackbd"); var topic="0"; for(var i=0;i<msg.length;i++){var txt=document.getelementsByname("sackbd")[i].innerHTML; txt=txt.replace(/
and at last go to your message in forum 1st box and Find ::msg:: and replace it with this.
Code: copy by quote ↓↓
<x name="sackbd">::msg::</x>
Usage: use youtube video ID to show the video in the post.Suppose your YouTube video link is http://m.youtube.com/watch?v=hEyhJqNt2rkthen 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.Your Coding Petnar.
0 Comments