pooker
07-12-2008, 06:26 AM
I have an online manga reader I was trying to incorporate into vbulletin and everything went fine except for this problem.
When a script was called it used include() to incorporate a previous script since it used drop down menus.
This worked perfectly fine on my other site. I found a good writeup on using plugins for vbulltin so I used this one
ob_start();
include('./chapter.php');
$includedphp1 = ob_get_contents();
ob_end_clean();
The main problem is, from my understanding is it is not clearing the buffer. So when another page is invoked it doubles what was in the dropdown menu
like lets say someone chose
naruto it would display
354 chapters
when they choose the chapters and the next script comes up it would display two of everything , i,e, chapter 1, chapter 1 , chapter 2, chapter 2 etc. I thought ob_end_clean() cleared out all previous information but I guess not?
It uses the readdir to get information from the server and an array to display the chapters if that is of any help.
When a script was called it used include() to incorporate a previous script since it used drop down menus.
This worked perfectly fine on my other site. I found a good writeup on using plugins for vbulltin so I used this one
ob_start();
include('./chapter.php');
$includedphp1 = ob_get_contents();
ob_end_clean();
The main problem is, from my understanding is it is not clearing the buffer. So when another page is invoked it doubles what was in the dropdown menu
like lets say someone chose
naruto it would display
354 chapters
when they choose the chapters and the next script comes up it would display two of everything , i,e, chapter 1, chapter 1 , chapter 2, chapter 2 etc. I thought ob_end_clean() cleared out all previous information but I guess not?
It uses the readdir to get information from the server and an array to display the chapters if that is of any help.