|
293932
![]()
If you need to just output data stored in DB as pure html, you can do so by just echoing the content.
so changing the line echo makeTareaData4Show($content); to echo $content; will allow you to just ouput your content in pure html format, bypassing the new line conversions in textsanitizer. However, this will also skip the smileys and xoopscodes conversions, and the allowed html tags checking routine.
293933
![]()
I ran into this same problem. I used NSections and needed to somehow bypass textsanitizer in some way from replacing my line breaks into
tags. What I did was include a new field in the database called "ignoreCR" (ignore carriage returns). This is either 0 or 1. The article view function detects this value. If it's 1 then you want to bypass the line break replace. What I do is include this line: $content = preg_replace("/(\015\012)|(\015)|(\012)/","",$content); to replace all line breaks. Now everytime you view your article it will replace all your line breaks so that none exist. Your content will be a glob of code with no line breaks. Therefore textsanitizer can't insert any line breaks when it runs. It also only does this on view, so your code in the database still looks line break formatted. You'll also need to add , ,
293934
![]()
Hi,
don't get me wrong, i am not unsatisfied with Xoops, in the contrary, I like a lot, i think that is far better than PHP nuke and others. If I reported what seemed to me a problem is just to contribute to its evolution. I am confident that a solution will come that will solve the problem and allow me to publish my hometown local newspaper in the net. Regards, Daniel
293935
![]()
Quote: Currently, once a user had created an account, he could change his/her email address to anything without any verifications. In the waiting for this useful fix, I've skipped this problem by removing the option to change the email by XOOPS users (RC2-only hack) Just look at the edituser.php file at line 43: |