16
Hi, all:
Two things. The first one is that after putting the correct code, I still had the message about some problem in the file. So I went and found this line:
return preg_replace(array("/>/i", "/", "<", "\"", "'"), $text);I pondered a bit, and then changed it to:
return preg_replace(array("/>/i", "/\"/i", "/'/i"), array(">", "<", "\"", "'"), $text);(notice the extra backslash)
... and I got rid of the error message and indeed the story part of the module worked allright.
The second thing is I tried the additional hacks for the story titles. And here are two issues. The first one is that even though the field in the database is 255 characters long, the form fills much faster, so I need to change the maximum number in the form creator (haven't done it yet).
The second issue is that even with short titles, the display has problems...
For instance. In the title field I write:
[spanish]Ejemplo de noticia[/spanish] [english]Sample news item[/english]Then I go to my site and use the selector to choose Spanish. The idea is I should get:
Ejemplo de noticiabut instead I get:
Ejemplo de noticia [engli...When I change to English, I should get:
Sample news itembut instead I get:
[engli...I don't know if adding the backslash in the function &undoHtmlSpecialChars is affecting my results. What do you think?
LATE NIGHT EDITION: Here's another riddle: how to extend this hack to the main menu tags so that they also change with the language switch...