YesNoOk
avatar

Test test (Read 3466 times)

Started by Dr. Deejay, October 07, 2011, 17:35:18
0 Members and 1 Guest are viewing this.
Share this topic:
#1
Test test |
October 07, 2011, 17:35:18
Spoiler, click to toggle visibilty

     Posted: October 07, 2011, 17:35:29
My reply
2 Like It 
#2
Re: Test test |
August 08, 2012, 09:03:01
[center]Center bbcode not working[/center]

[right]Right bbcode not working[/right]

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.


Last Edit: August 08, 2012, 09:08:22 by bodyan
#3
Re: Test test |
August 08, 2012, 09:09:35
[center]Center bbc code not working[/center]

[right]Right bbc code not working[/right]
They are not working because they do no longer exist.
it's now:

[align=left], [align=right], [align=justify]

One bbcode instead of three (= faster)

Quite a lot of SMF bb codes were removed, but there is a plugin that can add them back for full BBCode compatibility with SMF.
__
Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to a single instruction that doesn't work.
My SMF-based forum fork
1 Useful  | 1 Thank You 
#4
Re: Test test |
August 08, 2012, 10:53:59
Understood, but why when i press centered button i recieve [center] but not a
Code:
 [align=center]
?

So question - is this possile manually replace in code [center] with
Code:
 [align=center]
?
Last Edit: August 08, 2012, 10:55:44 by bodyan
#5
Re: Test test |
August 08, 2012, 15:57:58
Most of the BBCode changes have not (yet) made it into the editor. This is also true for new bbc tags like [css] and all the [h] tags.

The editor needs a big overhaul and I'm considering using something completely different, like this one.
__
Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to a single instruction that doesn't work.
My SMF-based forum fork
#6
Re: Test test |
August 09, 2012, 14:16:07
Solved this problem with replacing in Sources\lib\Subs.php:

Code:
array(
'tag' => 'align',
'type' => 'unparsed_equals',
'before' => '<div style="text-align:$1;">',
'after' => '</div>',
'test' => '(left|right|center|justify)\]',
'block_level' => true,
),

with:

Code:
			array(
'tag' => 'center',
'before' => '<div align="center">',
'after' => '</div>',
'block_level' => true,
),
array(
'tag' => 'right',
'before' => '<div style="text-align: right;">',
'after' => '</div>',
'block_level' => true,
),
array(
'tag' => 'left',
'before' => '<div style="text-align: left;">',
'after' => '</div>',
'block_level' => true,
),