The Arcive of vBulletin Modifications Site. |
|
Details »»
|
|||||||||||||||||||||||||
Hiyis
I have the active topics hack on board - I did have them displayed only on my nonVB main site page, but I decided I wanted them on my forum index as well -- except now, whenever anyone sends a PM, instead of the set subject, the subject is replaced by the title of the last topic displayed by the parsed PHP. At first I thought it might have been because I have multiple parse groups (ie, : Code:
require("review20.php");
$reviews = ob_get_contents();
ob_end_clean();
But I cut it down to just one, and it still caused problems... Any ideas? Am i going about having active topics on a vB completely arse-about-tit? Help ![]() Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
You forgot to start output buffering:
Code:
ob_start();
require("review20.php");
$reviews = ob_get_contents();
ob_end_clean();
|
|
#3
|
||||
|
||||
|
Sorry - I pasted incorrectly. Each block of code had ob_start(); as required...
Any other ideas? ![]() Thanks for the reply
|
|
#4
|
||||
|
||||
|
Ok, I'm guessing there's a variable in the new script that's called $title or something like that, and because the PHP include template is parsed before anything else in vBulletin but after the form, the variable is set a bad value.
Annnnyway, can you attach the hack file here?Or just give the link to the thread.
|
|
#5
|
||||
|
||||
|
Spot on! There was a $title variable in the include files
changed it, and now it works fine ![]() Thanks yet again You rock!
|
|
#6
|
||||
|
||||
|
My pure pleasure.
![]() BTW, this might not be the end of it. Go through the script and make sure there are no variables that might interfere with vBulletin... like $message, $userid, etc. |
|
#7
|
||||
|
||||
|
Err...
![]() Here's one of the files, in case you want to take a look
|
|
#8
|
||||
|
||||
|
Umm ok, I just skimmed through it and I think it's fine.
|
|
#9
|
||||
|
||||
|
Actually, there was one problem - the include files had '$query' specified, which was causing search to come up with no results! doh!
![]() Changes it to $query1 and now all is working Huzzah!
|
![]() |
|
|