UBB.Dev
Posted By: Gizmo [7.3+] Custom Tag - Indent - 02/27/2009 10:35 PM
Tag - Indent
Usage -
Code
[indent]text to be indented[/indent]

Code -
Code
<?php
$export_tags = array (
0 =>
array (
'tag' => 'indent',
'descrip' => 'Indent',
'prompt' => 'Enter the text to be indented.',
'regex' => '(.+?)',
'markup' => '<div style="text-indent: 30pt;">\\\\1</div>',
),
);
?>

Install Instructions - Copy the above custom tag to a notepad document, then import this to your forum's Custom Tag panel (CP -> Tools and Info -> Content Rebuilder -> Custom Tag Editor)
Posted By: Gary Dean Re: [7.3+] Custom Tag - Indent - 02/28/2009 9:21 AM
I've tried this out, but it doesn't work for me.

import works fine, and it's listed in the custom tag list. but when i try using it in a message on my board, [indent] is not recognised.

is there something else that needs to be done?
Posted By: Gary Dean Re: [7.3+] Custom Tag - Indent - 02/28/2009 9:27 AM
ah, i've got it: after you import, you have to edit the tag and click on the "Enabled?" tick box!
Posted By: Gizmo Re: [7.3+] Custom Tag - Indent - 03/01/2009 12:25 AM
Lol was about to ask if it was Enabled... Theres also an option to show it in the Custom Tags menu in the full text editor.
Posted By: AllenAyres Re: [7.3+] Custom Tag - Indent - 03/03/2009 8:07 PM
Thanks Gizzy, this indents the first line or every line inside the [indent] [/indent] tags?
Posted By: Gizmo Re: [7.3+] Custom Tag - Indent - 03/03/2009 11:30 PM
Just the first line; I'd recommend if you want to indent every line to just encase each paragraph with an indent tag
© UBB.Developers