Ray
Active member
Hello, everyone!
I would like to add a custom bbcode. When entering the following bbcode:
[video] video id [/video]
I should see the video player plus a message "ID: video id" under the player.
I know I have to edit the Base.php file, but don't really know what code I should use.
i.e.
As you can see, the first {$id} displays the player and the second {$id} outputs the ID in plain text.
See screenshot
thanks
I would like to add a custom bbcode. When entering the following bbcode:
[video] video id [/video]
I should see the video player plus a message "ID: video id" under the player.
I know I have to edit the Base.php file, but don't really know what code I should use.
i.e.
PHP:
<embed src="http://----.com/?v={$id}"></embed>
<br />
<b>ID: {$id}</b>
As you can see, the first {$id} displays the player and the second {$id} outputs the ID in plain text.
See screenshot
thanks