pfaustino

Anonymous
I have had to create my own static pages with its own left navigation. The static page uses PHP.

Is there a way to display the weather block in my own custom PHP code? I'm using the static page plugin to create a page.

pfaustino

Anonymous
please, I really need help here. Can anyone help?

pfaustino

Anonymous
Never mind, I figured it out... Here's the code...



I thought it was something this simple. LOL.

pfaustino

Anonymous
woops. the code was being blanked. Here it is in text mode

<? $theweather = phpblock_getweather(); echo $theweather; ?>

amch

Anonymous
...and if you wanted it to be wrapped in a block style header with title just like it would appear in the left/right column, just use COM_startBlock(title) and COM_endBlock.