Hi Copiermad.
QUOTE:
Is there a way to get this component to transfer the content "as is", so I do not have to edit the content the other end? I am happy to make changes to the code and will even attempt to re-write the component if necessary.
Just as a matter of course, would the whole issue of encoding go away if you just _base_64 encoded the whole lot before putting it in the _xml_ file. Then _base_64 decode the whole lot on extraction?
I have been thinking about by passing the XML by writing all the data to a separate file that may be executed after the install process this would do away with the whole issue of trying to parse characters via XML.
The only thing is finding the time as I'm very busy with another large paying project.
If you want to give it a go by all feel free and please post back here so it can be shared with the rest of the community.
Your idea about base_64 encoding may be the way to go for you at the moment to get out of trouble the only issue is that it will make the upload size larger and therefore restrict how much can be moved at one time other than that I see no problem with it.
If you want to give it a go the best way to go about it would be to change:
administrator/components/com_export_content/convert_img.php
| Code: |
function numeric_html($text){}
|
to do the encoding.
And in /administrator/components/com_export_content/admin.export_content.
About line 2000 you will see:
| Code: |
function multiSectionSave( $option, $cid) {}
|
This is where after the content has been installed and you want to transfer by sections.
As you scroll down you will see that there is a decoding function this is where you could do the base_64 decoding:
| Code: |
$sect_title = decode_entities($sect->title);
|
The decode_entities() function is about line 2500 of /administrator/components/com_export_content/convert_img.php
One other thing I would remove everything in the high_order function as instructed earlier in this thread.
| Code: |
function high_order($text){
return $text;
}
|
Please post back with any questions.
