Miscellaneous ⇒ Chit-Chat ⇒ Possible bug with maketip ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum IndexChit-Chat

Possible bug with maketip Reply to topic


Hello,

i notice that when having a string containing an escaped quote (') loaded from l10n that is displayed with maketip the escaping is not applied to maketip.

Movix

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/Apache/MySQL 5.1.49/PHP 5.3.6/ DF 9.3.2.0


Try to double or triple your escaping.

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS


Thank you for your reply Nano.

Yes a triple escape did the tric but as the same string is used for the maketip and the label of the control i now have a \ in the label.
This issue concerns the "member options" in the admin section

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/Apache/MySQL 5.1.49/PHP 5.3.6/ DF 9.3.2.0


It's not an issue, It's a matter of double or triple escapeing depending on the context. Try to play with it a little and if you still have issues past here some code so we can have a look at it.

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS


Simple:
if you don't escape '\foo' it might work.
yet '\new' creates a new line + 'ew'.
'\\new' doesn't create a new line.

it becomes more complicated with regular expressions:

'\\n' is a new line character
'\\\\' is a single \

Hail to the PHP namespace (NOT)

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Fedora 25 / Apache 2.4.27 / MariaDB 10.1.26 / PHP 7.1.10 / Mercurial


Sorry but i did not be clear enough.

first in french tasnlations i often have some quote that must be displayed. example :

'Utiliser l\'activation par mail?'

in your_account.php, ADMINISTRATION SECTION are some strings that are used at two places. once as the label for the "Yes/No" Control and second as the string displayed with athe JS function maketip on hovering.

When having only escaped one the JS function runs into an error. I verified, maketip gets the string

'Utiliser l'activation par mail?' where escaping has disapeared.

On the other hand when tripple escaping maketip works fine but the label of the "yas/no control displays

Utiliser l\\'activation par mail?

In the situation where maketip is affected the issue is that while hovering over the yes/no controls makes them hide and the do not show again.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/Apache/MySQL 5.1.49/PHP 5.3.6/ DF 9.3.2.0

All times are UTC


Jump to: