3
thanks catswolf,
I tried this:
switch($format){
case "S":
case "Show":
$maintext = str_replace($body, "", $maintext);
$maintext = $myts->makeTareaData4Show($maintext,$html,$smiley,$xcodes,0,0);
and this:
$body = '/\/i';
$maintext = str_replace($body, "", $maintext);
$maintext = $myts->makeTareaData4Show($maintext,$html,$smiley,$xcodes,0,0);
but no change I am afraid. I tried it in both the wfsarticle.files I have one for wysiwyg submit also. This does not work for the oridinary XOOPS editor submit either which I have no extra code in
I have put the file on my server
Here
It uses a stripped down version of the admin article submit, and has some bits of code I have been trying from elsewhere like:
var $nobr=1; /add
var $enaamp=0; // add
that does not work anyway (just in case you are wondering where its from}
If you manage to fix this I will marry you..
thanks for pointing me in another direction, I will struggle on, this is my last hurdle
I am regularly attending the "Xoops text sanitizer hate group", helps with my anger management..
I tried this:
switch($format){
case "S":
case "Show":
$maintext = str_replace($body, "", $maintext);
$maintext = $myts->makeTareaData4Show($maintext,$html,$smiley,$xcodes,0,0);
and this:
$body = '/\/i';
$maintext = str_replace($body, "", $maintext);
$maintext = $myts->makeTareaData4Show($maintext,$html,$smiley,$xcodes,0,0);
but no change I am afraid. I tried it in both the wfsarticle.files I have one for wysiwyg submit also. This does not work for the oridinary XOOPS editor submit either which I have no extra code in
I have put the file on my server
Here
It uses a stripped down version of the admin article submit, and has some bits of code I have been trying from elsewhere like:
var $nobr=1; /add
var $enaamp=0; // add
that does not work anyway (just in case you are wondering where its from}
If you manage to fix this I will marry you..
thanks for pointing me in another direction, I will struggle on, this is my last hurdle
I am regularly attending the "Xoops text sanitizer hate group", helps with my anger management..
4
this works..
Edit: when a user submits with xfsections using spaw its displaying the html code rather than the wysiwyg result, back to the drawing board.
Edit: Looks like a problem in xfsections, admins can submit and output is correct, ordinary users submit and output is HTML code with autoaprove activated, this happens using the Xooops editor?
anyway this is not your area of concern..
I tried it in a fresh Xfsections to see if it was the mix-match I was using, working fine.
With Xf-sections users can edit their own articles, so this might do my friend. Edit: not with this HTML problem for ord users
But I will upload a fresh Wfsections and try it with that and let you know the results
thanks again.. (my hero)
Edit: when a user submits with xfsections using spaw its displaying the html code rather than the wysiwyg result, back to the drawing board.
Edit: Looks like a problem in xfsections, admins can submit and output is correct, ordinary users submit and output is HTML code with autoaprove activated, this happens using the Xooops editor?
anyway this is not your area of concern..
I tried it in a fresh Xfsections to see if it was the mix-match I was using, working fine.
With Xf-sections users can edit their own articles, so this might do my friend. Edit: not with this HTML problem for ord users
But I will upload a fresh Wfsections and try it with that and let you know the results
thanks again.. (my hero)
5
WOW! what a gentleman...
This may seem like a fairly trivial help-out amongst developers, BUT NO, this is what the spirit of XOOPS is all about ... unselfish co-operation at it's very best.
I'm impressed
Richard
This may seem like a fairly trivial help-out amongst developers, BUT NO, this is what the spirit of XOOPS is all about ... unselfish co-operation at it's very best.
I'm impressed
Richard
6
what else do you expect from Scots Carnuke..
Catswolf Update:
I managed to get your code working with the admin backend editor that comes with wfsection, so users can use that and --it bypasses the sanitizor using your code. The only problem is the tables dont work in that editor, it look for a "Addtable.htm" file.
trying to get it to work with spaw now..
regards
Catswolf Update:
I managed to get your code working with the admin backend editor that comes with wfsection, so users can use that and --it bypasses the sanitizor using your code. The only problem is the tables dont work in that editor, it look for a "Addtable.htm" file.
trying to get it to work with spaw now..
regards
7
Success..:)
It is now bypassing the sanitizor, no unwanted linebreaks..
I now have a wfsections where users can use "Spaw" and edit/delete/manage their own articles.
Looks pretty good actually, users can upload images directly, or even drag images from explorer, drag smileys in from the XOOPS smileys folder etc.
I am very pleased with the results, and learned a lot more about XOOPS in the process, (and lost some hair)
A bit of tidying up to do, but I will make it available for anyone who wants it asap.
This is also a bugfix appled wfsections, with your own fixes and other forum fixes applied from around..
Thanks Catswolf, if you were a girl I would kiss you..:)
Cheers
It is now bypassing the sanitizor, no unwanted linebreaks..
I now have a wfsections where users can use "Spaw" and edit/delete/manage their own articles.
Looks pretty good actually, users can upload images directly, or even drag images from explorer, drag smileys in from the XOOPS smileys folder etc.
I am very pleased with the results, and learned a lot more about XOOPS in the process, (and lost some hair)
A bit of tidying up to do, but I will make it available for anyone who wants it asap.
This is also a bugfix appled wfsections, with your own fixes and other forum fixes applied from around..
Thanks Catswolf, if you were a girl I would kiss you..:)
Cheers
8
Another problem
plain text with HTML disabled shows no linebreaks? In Netscape when the ordinary XOOPS editor takes over--also no linebreaks?
hmmmmm, what to do?
plain text with HTML disabled shows no linebreaks? In Netscape when the ordinary XOOPS editor takes over--also no linebreaks?
hmmmmm, what to do?