Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 02:57 pm EDT

Geeklog Forums

How do I add weather block as standard PHP?


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.
 Quote

pfaustino

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

pfaustino

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



I thought it was something this simple. LOL.
 Quote

pfaustino

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

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

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.
 Quote

All times are EDT. The time is now 02:57 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content