Well, I have a completely new (but spectacular) issue with this great little scrap of code that calls out the next 5 events.
First, it works,
However, I'm changing things over to a PostNuke front page and content pages for a site, with VB as the workhorse forum and community.
I need the little events script to run in a standard php block for PostNuke. The PostNuke is in a separate mySQL database from the vBulletin.
Now, I did get it to run. BUT, it seems to *clobber* the living daylights out of a couple (but not all) other modules that are used with PostNuke.
So the page loads, the events are listed, but the moment you try to go to one of the affected modules, it starts spitting out:
Warning: Supplied argument is not a valid MySQL result resource
and goes on to give the path of the php file, which I won't bore you with here. There's a few warnings like this. It's really quite spectacular all over the screen.
First, let me say I know enough about php and mySQL to be dangerous. But I follow directions very well!
I have a suspicion that after the events query is made, the rest of the page gets confused about what database it is in. But why this only happens with some modules and not others is a mystery to me.
I might be all wrong.
Whatever is happening, it isn't pretty, and I'd really like to be able to include the events on the front page.
I don't know how to fix it, whether it is what I think it is or not, though. :|
Would someone please explain to me what could be going on, and how to fix it? I can point you to specific files and examples if needed, but I'll bet you vBulletin and php gurus would know what to do in your sleep with your hands tied and your computer off! It seems like some sort of obvious error condition like that to me.
Halp Mr. Wizard!
-deb