[opgelost][vraag+antwoord]bbcode toevoegen aan microtiny
Posted: Sat Jun 16, 2012 9:07 pm
hoe kan ik de module bbcode toevoegen aan microtiny
zodat ik die codes kan gebruiken in mijn pagina's (voornamelijk de youtube code)
alle andere youtube codes werken niet krijg geen filmpjes op de site
hier het hulp bestand
mischien dat je daar wat aan heb
hoop dat iemand mij kan helpen
alvast bedankt !!
Link - text
Image - [img]url[/img]
Center - [center]text[/center]
YouTube Video - [youtube]video URL[/youtube]
Change text color - text
How do I use it?
There are two available actions: 'toolbar' and 'parse'. The toolbar action displays a BBCode toolbar that can be associated with a textarea element, and the parse action replaces all supported BBCode tags in a string with their respective HTML tags, then outputs the result.
Usage examples:
{BBCode action='toolbar' input='some_textarea_id'}
{BBCode action='parse' input='this is bold'}
Additionally, you can use the parse function in your own UDTs or modules like so:
global $gCms;
$db = &$gCms->db;
$text = $params['text'];
$bbcode =& $gCms->modules['BBCode']['object'];
$output = $bbcode->BBCParse($text);
echo $output;
Support
You can find the project on the CMSMS forge at http://dev.cmsmadesimple.org/projects/bbcode. Feature requests and bug reports should also be directed there.
Alternatively, you can PM me directly on the forums (my username is Ricko97).
Copyright and License
Copyright © 2010 Ricko Mann http://www.rickomann.me.uk/.
This module has been released under the GNU Public License. You must agree to this license before using the module.
Parameters
(optional) lang="en_US" -
action="toolbar" - Name of the action to perform ("toolbar" or "parse"). Required.
input="content" - Applicable to both actions. With the toolbar action: ID of the textarea to integrate the BBCode Toolbar with. With the parse action: the string to parse and output. Required.[/code]
zodat ik die codes kan gebruiken in mijn pagina's (voornamelijk de youtube code)
alle andere youtube codes werken niet krijg geen filmpjes op de site
hier het hulp bestand
mischien dat je daar wat aan heb
hoop dat iemand mij kan helpen
alvast bedankt !!
Code: Select all
What is BBCode Tools?
This module aims to provide a set of basic BBCode-related tools including a BBCode toolbar and parsing functionality. At current, it supports the following tags:
Bold - [b]text[/b]
Italic - [i]text[/i]
Underline - [u]text[/u]
Strikethrough - [s]text[/s]
Unordered List - [list][*]text[/*][/list]
Ordered List - [list=1][*]text[/*][/list]
Quote - [quote]text[/quote]
Code - [code]text
Image - [img]url[/img]
Center - [center]text[/center]
YouTube Video - [youtube]video URL[/youtube]
Change text color - text
How do I use it?
There are two available actions: 'toolbar' and 'parse'. The toolbar action displays a BBCode toolbar that can be associated with a textarea element, and the parse action replaces all supported BBCode tags in a string with their respective HTML tags, then outputs the result.
Usage examples:
{BBCode action='toolbar' input='some_textarea_id'}
{BBCode action='parse' input='this is bold'}
Additionally, you can use the parse function in your own UDTs or modules like so:
global $gCms;
$db = &$gCms->db;
$text = $params['text'];
$bbcode =& $gCms->modules['BBCode']['object'];
$output = $bbcode->BBCParse($text);
echo $output;
Support
You can find the project on the CMSMS forge at http://dev.cmsmadesimple.org/projects/bbcode. Feature requests and bug reports should also be directed there.
Alternatively, you can PM me directly on the forums (my username is Ricko97).
Copyright and License
Copyright © 2010 Ricko Mann http://www.rickomann.me.uk/.
This module has been released under the GNU Public License. You must agree to this license before using the module.
Parameters
(optional) lang="en_US" -
action="toolbar" - Name of the action to perform ("toolbar" or "parse"). Required.
input="content" - Applicable to both actions. With the toolbar action: ID of the textarea to integrate the BBCode Toolbar with. With the parse action: the string to parse and output. Required.[/code]