![]() |
Creating Custom MyCode - Printable Version +- MyBB Community Forums (https://community.mybb.com) +-- Forum: Resources (https://community.mybb.com/forum-8.html) +--- Forum: Tutorials (https://community.mybb.com/forum-38.html) +--- Thread: Creating Custom MyCode (/thread-12008.html) |
Creating Custom MyCode - Justin - 2006-09-06 Creating Custom MyCode is quite easy once you understand how it works. Here's a quick overview on how to make Custom MyCode: First, go to your Admin CP and then to the Message Filters, Custom MyCode, and to Add MyCode.
Note: If a user is to, for instance, not enter the title in the example above, the MyCode will not work - so if you would want something where users do not have to enter said details, then you should create multiple versions of the same thing, with/without the options. RE: Creating Custom MyCode - sunspark - 2006-09-06 Googling for "php perl compatible regular expressions" should provide lots of info, and various tutorials. The PHP manual also has a syntax list. A quick explanation, which should help making future BBCode additions make more sense:
RE: Creating Custom MyCode - Justin - 2006-09-06 sunspark Wrote:Googling for "php perl compatible regular expressions" should provide lots of info, and various tutorials. The PHP manual also has a syntax list.Thanks for pointing that out ![]() ![]() RE: Creating Custom MyCode - Snake - 2006-09-06 I saw the system during the beta, but didn't no how it worked thanks for clearing it up for me! ![]() RE: Creating Custom MyCode - asmilewyt - 2006-09-06 can you give an example to add mycode which play media in windowmediaplayer? RE: Creating Custom MyCode - Xniver - 2006-09-06 Try this : and<object width="320" height="290" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" id="mediaplayer1"> <param name="Filename" value="$1"> <param name="AutoStart" value="True"> <param name="ShowControls" value="True"> <param name="ShowStatusBar" value="False"> <param name="ShowDisplay" value="False"> <param name="AutoRewind" value="True"> <embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/" width="320" height="290" src="$2" filename="$1" autostart="True" showcontrols="True" showstatusbar="False" showdisplay="False" autorewind="True"> </embed> </object> (sry for no code[code and php not show $1,$2 vars]) Example use: [media filename=test.avi]http://example.com/movies/test.avi[/media] I'm not tested it . (from http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_15777) RE: Creating Custom MyCode - asmilewyt - 2006-09-06 hello,my forum before uprgrade to 1.2 use the code [wmp]link[/wmp] show window media player for mp3.video and [flash]link[/flash] for flash file can you tell me how to recreate them in mycode admin instruct every steps please,i'm just a newbie thanks everyone....mybb best forum and free! RE: Creating Custom MyCode - Xniver - 2006-09-06 asmilewyt Wrote:hello,my forum before uprgrade to 1.2 use the code [wmp]link[/wmp] show window media player for mp3.video and [flash]link[/flash] for flash fileCheck this: WMP Tag MyCode Title WindowsMediaPlayer (you can use other) MyCode Desc WMP player (you can use other) Regular Expression Replacement<OBJECT id="VIDEO" width="320" height="240" style="position:absolute; left:0;top:0;" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject"> <PARAM NAME="URL" VALUE="$1"> <PARAM NAME="SendPlayStateChangeEvents" VALUE="True"> <PARAM NAME="AutoStart" VALUE="True"> <PARAM name="uiMode" value="full"> <PARAM name="PlayCount" value="1"> </OBJECT> Flash Tag MyCode Title Flash BBCode(you can use other) MyCode Desc Opening a flash file(you can use other) Regular Expression Replacement<object width="320" height="240"> <param name="movie" value="$1"> <embed src="$1" width="320" height="240"> </embed> </object> RE: Creating Custom MyCode - asmilewyt - 2006-09-06 thanks a lot.you're so kind!! RE: Creating Custom MyCode - asmilewyt - 2006-09-06 oh it doesn't work.just show the blank in the post |