Loading...
 
Skip to main content

Development


Tikiwiki 1.10 remove XML

Hello!

I am using tikiwiki 1.10 in two sites, http://wwww.ParkouAveiro.netQuestion and in my personal http:://www.Casainho.netQuestion.

Why tikiwiki "eat" XML code?? 🙁 🙁

I would like to have playlists XSPF for media players as http://www.jeroenwijering.com/Question or http://flowplayer.sourceforge.net/Question, and use the functionality of wiki pages, permitting that a group of people could edit the playlists and have history of changes, option to rollback, etc...

I already made a few scripts, one of them, read a HTML page, extract the playlist and send to the web flash player.

I am using tikiwiki plugins, and If I do echo in PHP script of a XSPF XML playlist, tikiwiki automatically remove the XML tags, so I get no playlist back to me 😢 😢

I already changed marks <> for | with success in tikiwiki page, but after processing in PHP and change for <>, I can't still echo to make player see the XSPF playlist... 😢 😢

Looking at http://demo.opensourcecms.com/tiki/tiki-index.php?page=HomePageQuestion, Tikiwiki 1.9.7 does not remove <>.

Anyone have some idea?? How can I disable XML markup language auto-remove from tikiwiki? How can I do some hack?? What are the files??

Thanks in advance.

JPCasainho from Portugal

Well, I got that and now I understand better Tikiwiki - Tikiwiki is my friend 🎅

In tiki-preview.tpl, we have this reference: _/div>{$parsed}_/div>, If we delete that, preview text don't appear. LOL, I had to write _/div>{$parsed}_/div> because here in this forum, the same problem happen and that would be removed 😛

After I went looking for the $parsed and I did discover that was coming from tiki-editpage.php. There, I did discover this:
// apply the optional post edit filters before preview
if(isset($_REQUEST%22preview%22) || ($wiki_spellcheck 'y' && isset($_REQUEST%22spellcheck%22) &&$_REQUEST%22spellcheck%22 'on')) {
//$parsed = $tikilib->apply_postedit_handlers($edit_data);
//$parsed = $tikilib->parse_data($parsed,$is_html);
} else {
$parsed = "";
}

I just commented that 2 lines of code and add this one 😀
$parsed=$edit_data;

So, EDIT_DATA will not be parsed 😀 - maybe I will know a better way to do this hack, in a cleaner way 🎅

LOL - after some problems and after a quick analyses of the PARSE function in tikilib.php, I did understand that my problem was the HTML in wikipages turned on!! - with HTML turned of, all works ok 😊 😊

Now Its working as I wanted, here is an example o vídeo player, with playlist in the same page 😊

http://www.parkouraveiro.net/tiki-index.php?page=Sin-clan_-_next_genQuestion

I will share the plugin code in my page, after some testes.