OK, I think I figured out at least a temporary fix for this. To eliminate the 'header already sent' error, I placed the call to global.php before any <html> code. So it's now working without giving that error...
However, I still feel this* is a fairly ugly way of coding this solution. E.g. When looking at "Who's online", there's an entry:
Quote:
Unknown Location
/forum/upcomingevents.php
|
* Since I guess I shouldn't attach my code (since it is only a partial modification of the vb index.php file, I'll briefly explain what I did - as follows:
- With the index.php file I cut out all the main script except for that which compiles the upcoming events output. (I left the top section with calls to global.php etc...)
- I added in echo $upcomingevents (to directly output that rather than pass it through any other print_output function which would also add template info etc...)
- I added a few other cosmetic changes etc, but that was basically it.