Output Buffer user friendly [message #31674] |
Thu, 11 May 2006 18:46 |
damien
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?
|
|
|
|
|
|