Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: Antechinus on August 30, 2015, 06:15:01 AM

Title: Fn Pacman is too stupid to know what it's doing.
Post by: Antechinus on August 30, 2015, 06:15:01 AM
Ok, so problem with Profile.template.php. There are two sections I need to edit. Both share identical markup/syntax where I need to edit them. Pacman is too dumb to edit one first, then edit the other one. It insists on trying to do the edit twice in the same place. :P

Ok, so there is a way around it. I need a way of having <![CDATA[ and ]]> in the edit in the XML, without it tripping the end of the operation tag.

IOW, I need the edit to insert some javascript into the PHP file, and of course that means it needs the CDATA tags for the js, but putting those tags into the XML screws it up.

Make sense? How to fix?
Title: Re: Fn Pacman is too stupid to know what it's doing.
Post by: Antechinus on August 30, 2015, 06:39:39 AM
MWAHAHAHA! Me smarter than Pacman! :D