This extension is quite essential to my Esperanto forum. Because many of my users are not able to directly type the Esperanto accented characters (ĉ, Ä, Ä¥, ĵ, Å and Å), I use Transmogrifier to allow them to type alternative character pairs, which get automatically changed to the appropriate accented letter. It works like a charm, and the users *really* like it.
The latest upgrade of the "Post Preview" extension makes it also fully compatible with Transmogrifier, which makes it a bonus! :-)
Ever since I installed it, though, there has been a couple of problems with Transmogrifier, which I keep on hoping will eventually be solved:
1) Transmogrifier does not apply its 'magic' to the titles of discussions - so when users start a new discussion, if the title has an accented character, I must go in as 'admin' and manually change the title directly. It would, of course, be fantastic if Transmogrifier could also transmogrify those titles.
2) Transmogrifier does not apply its magic to the content of pages created with the "Page Manager" add on. Again, that would be a wonderful addition to this already excellent extension to Vanilla!
Please, Bergamot, keep up the good work! - It is very, very much appreciated! :-)
You can see its magic at work in our forum here. To see how I've got it setup, have a look at the FAQs, under "Typing Esperanto Accents".
Hi,
I've just added the following to my config.txt file:
[cut] == <font color="red"><strike>
[/cut] == </font></strike>
and I've recieved the following error:
Warning: preg_replace(): Unknown modifier 'c' in /home/xxx/public_html/xxxxxxxx/forums/extensions/Transmogrifier/default.php on line 56
Everything works fine without this latest piece of custom code I added. Any way to correct this?
Thanks
I know this isn't a solution to this problem, but you can get this using [s][/s] in BBCodeParser and then just add this to vanilla.css:del {color:red !important;}
I thought I might also add that the following works..
+s+ == <strike>
+\s+ == </strike>
However, +/s+ does not.
There seems to be some sort of rejection for the / character
@vaz - this isn't what you posted about, and i doubt it's related to the problem, but in the original example, you closed the font/strike tags in the wrong order. sorry, i'm a validation nerd :)
@guazy
[cut] == <font color="red"><strike>
[/cut] == </font></strike>
Let's even try that then.
It pops up an error unless you change [/cut] into [\cut]
:D
@vaz: I think guazy was suggesting you try THIS:
[cut] == <font color="red"><strike>
[/cut] == </strike></font>
Properly formed XML should be nested: "<outertag><innertag></innertag></outertag>"...
It would be very difficult for me! I don't really code PHP (or JS) I just hack other people's skilled work around. Someone like Mark, SirNot or Dinoboff may be able to help on those two point. They are certainly very good ideas.
Very impressive stuff!
And it would be great if this magic could support and replace the 2-byte languages, such as Chinese, Japanese and Korean.
I mean I would like to replace any specific word(s) of 2-byte lang with icons.
Could you possibly support these languages?
Trying to make Google Talk-like emoticons, but I can't get this to work:
:) == <span style="color:#0000ff; font-weight:bold">:)</span>
It just displays ":)" (unaltered). Any ideas?
@KimC Since Transmogrifier will be skip any line that contain '#'. You have two ways to fix it. The easiest way, just change '#0000FF' to 'blue' ==> == The second way, change line 39 in default.php if($line == "" || $line == "\n" || strstr($line,"#")) by if($line == "" || $line == "\n" || strstr($line,"##")) and add more '#' in the config.txt 's comment (or just remove any comment :P).
@kaon just change line 45 in default.php: $this->token[$counter] = '/'.preg_quote($value[0]).'/'; to $this->token[$counter] = '/'.preg_quote($value[0]).'/i';
Comments
The latest upgrade of the "Post Preview" extension makes it also fully compatible with Transmogrifier, which makes it a bonus! :-)
Ever since I installed it, though, there has been a couple of problems with Transmogrifier, which I keep on hoping will eventually be solved:
1) Transmogrifier does not apply its 'magic' to the titles of discussions - so when users start a new discussion, if the title has an accented character, I must go in as 'admin' and manually change the title directly. It would, of course, be fantastic if Transmogrifier could also transmogrify those titles.
2) Transmogrifier does not apply its magic to the content of pages created with the "Page Manager" add on. Again, that would be a wonderful addition to this already excellent extension to Vanilla!
Please, Bergamot, keep up the good work! - It is very, very much appreciated! :-)
You can see its magic at work in our forum here. To see how I've got it setup, have a look at the FAQs, under "Typing Esperanto Accents".
del {color:red !important;}
Transmogrifier & PreviewPost Extension # 3
Transmogrifier & PreviewPost Extension # 7
Do you know if it would be very difficult to change it, to fix the 2 problems mentioned in the above comment?
hrm, doing the same thing on my install. not sure why.
use that
Since Transmogrifier will be skip any line that contain '#'.
You have two ways to fix it.
The easiest way, just change '#0000FF' to 'blue' ==>
The second way, change line 39 in default.php
if($line == "" || $line == "\n" || strstr($line,"#"))
byif($line == "" || $line == "\n" || strstr($line,"##"))
and add more '#' in the config.txt 's comment (or just remove any comment :P).@kaon
just change line 45 in default.php:
$this->token[$counter] = '/'.preg_quote($value[0]).'/';
to$this->token[$counter] = '/'.preg_quote($value[0]).'/i';