Inserting PHP inside block

Permalink
I'm trying to insert the following php code but it's not appearing (nor is ANY php code). I downloaded the Simple PHP Block as well but it's a no go. Is there a method?

<!--START WEATHER WIDGET-->
<?php 
include '/home4/customdv/public_html/bestbeachguide/weather/settings.php';
include '/home4/customdv/public_html/bestbeachguide/weather/functions.php';
?>
<!--start jQuery   javascripts  files - if you have in your pages any of these libraries, DON'T include in here-->
<script type="text/javascript" src="http://www.bestbeachguide.com/weather/js/jquery.js"></script>
<!--end jQuery   javascripts  files-->
<!--start style css files  for weather-->
<link rel="stylesheet" href="http://www.bestbeachguide.com/weather/css/plugins.css" />
<!--end style css files  for weather-->
<?php 
$forDays = 10;//how many forecast days want to show 
$pluginCity = '33.6646,-117.9643';// city name
?>

chai714
 
Ekko replied on at Permalink Reply
Ekko
You could just use an html widget instead, and add it with html block if you dont get an answer. Google html weather widget, and there's a 100 to choose from.

http://www.weather.com/services/oap/weather-widgets.html...
chai714 replied on at Permalink Reply
chai714
Thanks but I prefer having the ability to style my own widgets. Here is the sample page that I would like to include on the concrete side:

http://www.bestbeachguide.com/weathertest.php...
jordanlev replied on at Permalink Reply
jordanlev
The problem is probably with your script and CSS, not php. First, remove the reference to jquery -- c5 always includes jquery already on every page so if you include it too they will conflict. Also, I do not think you can include a style sheet from in the middle of your page -- I believe it needs to be in the <head> (but I could be wrong about this).
JohntheFish replied on at Permalink Reply
JohntheFish
With jQuery.UI theme roller you have the option to generate a theme that is constrained by a specified id.

So if the content of your page you want to style your own ui widgets for is <div id="my_content_area">, then you can theme-roller a set of ui css that is constrained to only apply within #my_content_area.

You can then load the C5 copies of jQuery.js and jQuery.ui.js, but your own jQuery.ui.my_content_area.css file.

Any ui widgets you then use in the front end of your site will then follow your rolled ui theme.