FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Suggestions » Output Buffer user friendly
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Output Buffer user friendly [message #31674] Thu, 11 May 2006 18:46 Go to next message
damien is currently offline  damien   Canada
Messages: 3
Registered: May 2006
Karma: 0
Junior Member
Hi

We are currently integrating fudforum into Mambo/Joomla, and we encountered some conflict with the templating.

Within the templating system, the produced script include those lines :

while (ob_get_level() > 0) {
ob_end_flush();
}

which make fudforum empty all its output buffers.

Now, we are also using the output buffers to captures the forum before sending it to the user and with the above line, we only get an error. If we move the condition to
while (ob_get_level() > 2) {
ob_end_flush();
}
it's working again, but it is not a good solution to modify the produced PHP scripts.

Unless there is another solution I missed, I think that if Fud Forum could collect the OB level first, then use it to limit it's buffer cleaning, it could solve this problem. Or may be make it a configuration directive?
Re: Output Buffer user friendly [message #31675 is a reply to message #31674] Thu, 11 May 2006 21:10 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
This code was changed because ob_get_level() is not reliable Sad

So the forum does: while (@ob_end_flush());, only 3 files have it so it is a very easy tweak to remove this bit of code.


FUDforum Core Developer
Re: Output Buffer user friendly [message #31693 is a reply to message #31675] Fri, 12 May 2006 12:59 Go to previous messageGo to next message
damien is currently offline  damien   Canada
Messages: 3
Registered: May 2006
Karma: 0
Junior Member
Hi

OK. Sad Your suggestion is to change fudforum's code then? I'd rather have the producing code changed than the produced code. I found those 4 scripts :

src/login.php.t:
src/msg.php.t:
src/thread.php.t:
src/threadt.php.t:

Re: Output Buffer user friendly [message #31706 is a reply to message #31693] Sun, 14 May 2006 14:50 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
yes, these are the 4 files you will need to adjust.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Grand moderator?
Next Topic: encrypted messagefiles
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 30 02:44:37 GMT 2024

Total time taken to generate the page: 0.04196 seconds