1

Topic: PunBB + Dotclear + AllowHTML : help

Hello,
I'm using dotclear to manage my blog, every news contains some html and are transfered directly on punbb.
I'm using this script : http://www.punres.org/desc.php?pid=121
to allow html
but I just want 1 thing, I want to delete all <br /> during the transfer from dotclear to punbb tables
can you help me ?
thanks a lot

Re: PunBB + Dotclear + AllowHTML : help

str_replace?

3

Re: PunBB + Dotclear + AllowHTML : help

I just delete :
// Deal with newlines, tabs and multiple spaces
    $pattern = array("\n", "\t", '  ', '  ');
    $replace = array('<br />', '    ', '  ', '  ');
    $text = str_replace($pattern, $replace, $text);

it worked

Re: PunBB + Dotclear + AllowHTML : help

Except that breaks the output for regular PunBB usage.

5

Re: PunBB + Dotclear + AllowHTML : help

so what's the best code to modify/include?

Re: PunBB + Dotclear + AllowHTML : help

Just do a str_replace in your code for outputting the PunBB content in Dotclear

7

Re: PunBB + Dotclear + AllowHTML : help

sorry I'm not a pro in php smile
in what file? and the correct code
thnks

Re: PunBB + Dotclear + AllowHTML : help

I have no idea, I've never used Dotclear. You would do a str_replace (http://us.php.net/str_replace) and replace the <br /> with "\n"

9

Re: PunBB + Dotclear + AllowHTML : help

ok I'll try to do my best smile

Re: PunBB + Dotclear + AllowHTML : help

it exists :
- Plugin for DotClear permits to display anything you need from punbb on dotclear 1.2.x
- PunSAPI  which is a toolbox to play with punBB wink and provide some ready-to-use methods

11 (edited by ba2 2007-09-12 17:41)

Re: PunBB + Dotclear + AllowHTML : help

foxmask wrote:

it exists :
- Plugin for DotClear permits to display anything you need from punbb on dotclear 1.2.x

* yeah you can't mix dc+punbb with it. the real method is here :
http://www.ps3camp.info/punbb/viewtopic.php?id=15
and it works great see : http://forums.sbwu.net

* for my html problems, I found in your toolbox, xhtml_to_bbcode, but I dont know where to include the code...

Re: PunBB + Dotclear + AllowHTML : help

ba2 wrote:
foxmask wrote:

it exists :
- Plugin for DotClear permits to display anything you need from punbb on dotclear 1.2.x

* yeah you can't mix dc+punbb with it. the real method is here :

why cant you ?
this is the main goal of this plugin to use DC and then display infos from punbb on it.

13

Re: PunBB + Dotclear + AllowHTML : help

yeah sorry you can, but it's not for newbie, the method I used is simple coz you have the code and that's all.
now I'll try to convert html to bbcode