PDA


View Full Version : Problem when copying a template into module file


tomshawk
06-05-2005, 09:18 PM
Hello Brian, first off, thank you for the fix on the last module problem ;) Kuddos.

Well, I found another problem.

When I backup a module into a .module file that is purely template based, but, a wierd template :p

The output when I restore is, is not quite right.

Here is a snippet of the template I am referring to

This is what it is supposed to be

<img src=\"http://www.tech-unity.com/forums/images/misc/news.gif\ (http://www.tech-unity.com/forums/images/misc/news.gif/)" align=\"left\" height=\"31\" width=\"250\" border=\"0\" alt=\"Tech-unity News\"></a><strong>


This is what comes out when a restore is done


<img src="http://www.tech-unity.com/forums/images/misc/news.gif" align="left" height="31" width="250" border="0" alt="Tech-unity News"></a><strong>


You'll notice all of the \ slashes are missing from the code

Thanks in advance for any help

Brian
06-06-2005, 11:44 AM
What's the point of having the slashes in a template like that? :confused:

tomshawk
06-06-2005, 02:27 PM
What's the point of having the slashes in a template like that? :confused:

The snippet I posted was only a portion of the code.

The code as a whole is a script for providing a dropdown menu, it requires the \ slashes

tomshawk
06-07-2005, 07:03 PM
Any luck Brian?

Brian
06-07-2005, 07:07 PM
I don't think I've ever seen a case where the slashes have to be included like that. The code is going to have to add and strip slashes during the process though, so I'm not sure if there's going to be a good way around that.