Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: Do2 on October 20, 2009, 06:05:57 PM

Title: Problems with installation
Post by: Do2 on October 20, 2009, 06:05:57 PM
Hi,

i have some problems with my package. I tried to install my package on 3 boards, but everytime the same problem.
I hope you can help me, because i'm become more and more crazy. :P

Thanks for help.
Title: Re: Problems with installation
Post by: Arantor on October 20, 2009, 06:19:09 PM
Because the blank lines you've put in your CDATA blocks are trying to be matched, and failing. Inside the package parser, linebreaks are significant (and no, there isn't a way around this without not using XML)

Example:
<search position="before">
<![CDATA[
'profile_remote_avatar' => array(false, 'profile', 'use_avatar'),
]]>
</search>


This must be specified as:
<search position="before">
<![CDATA[ 'profile_remote_avatar' => array(false, 'profile', 'use_avatar'),
]]>
</search>


This puts the end-of-line at the end of the search area so it's fine to use the code you already have for the add block.
Title: Re: Problems with installation
Post by: Do2 on October 20, 2009, 06:41:46 PM
I changed this line, but the error persists. Maybe i'm a bit silly. :'(

Edit: Ah, now i understand! O:) It works. Thanks Arantor.