Weather by You!

Templates and Projects support => Php templates => Topic started by: Steve Bannister on May 25, 2016, 09:28:56 PM

Title: Just CANNOT get this to work
Post by: Steve Bannister on May 25, 2016, 09:28:56 PM
I have downloaded Weather Blues 2 and followed all the instructions, uploaded files, had to do a FULL computer search to find the wt_data files and have uploaded them, and STILL the correct template does not show up on our website, Frustrated with that, I even downloaded another template to see if that helped. It didn't. All I get it text on my page, and only links to different pages appear at the bottom, but do not work. They just keep reloading the same page.

Please help.

http://calingirips.com.au/weather-station/

Steve
Title: Re: Just CANNOT get this to work
Post by: Andy9164 on May 26, 2016, 01:57:17 AM
Hi Steve,
I noted your other post as well. Did you implement the html version or php version of the template and which version (number i.e. 1.2 or 2.2).

This is all in the i-frame as well, correct?

It looks like its not picking up the style sheet weatherstyle.css and also the images.

I suggest making sure that the location specified for the style sheet in the head of the page relates to its location. Also then make sure the location of the images specified in the stylesheet is correct for where the images are located.

Andy


Title: Re: Just CANNOT get this to work
Post by: Andy9164 on May 26, 2016, 07:37:46 AM
Hi Steve,
I took a look at your site and also downloaded the Weather Blues 1.2. I assumed that you are using he html version of the template.

One thing I noticed, in your index file the style sheet is set as follows
<link href="weatherstyle.css" rel="stylesheet" type="text/css" />

when I look at the files that are downloaded in the Zip folder from this site, the style sheet is called styles. css. Take a look at what your style sheet is called and if its styles, try renaming in to weatherstyle and see if that makes a difference.

Unfortunately I am running Cumulus MX and a php template so cant totally test this but its something around here I am sure where the issue is that its not picking up the styles / images correctly

Let me know.

Andy.

Title: Re: Just CANNOT get this to work
Post by: Andy9164 on May 26, 2016, 08:30:19 AM
Hi Steve,
And just another comment.... or two.

I managed to "fudge" (as we say in England) the index page referring it to a renamed css file as my previous post. This adds a bit of colour and also allows the links at the bottom of the page to work.

I looked at the source code on your index.html page. There are no DIV's it is just tables and text. This is why the website doesn't work correctly and you don't get the images, backgrounds, buttons etc. because all these nice bits are part of the css file for each div.

It therefore appears that the wrong files are being sent to your website and that the files that come with the template are not being uploaded either correctly or the wrong files are being uploaded.

Let me know if you want any further help

Andy
Title: Re: Just CANNOT get this to work
Post by: Andy9164 on May 26, 2016, 08:44:31 AM
I am beginning to feel like I am stalking you but just trying to do my good deed for the day ( I am an ex-Boy Scout)

I just had a light bulb moment and an oversight possibly on my part as you mentioned looking for wt_data_inc files. If this is the case then you are using the php version which means that the template you have uploaded to your server is incorrect because your website is pointing to html files and not php files. So you are using a mix of templates.

So back to my first post Did you implement the html version or php version of the template and which version (number i.e. 1.2 or 2.2). Let me know which you want to use I will try and advise. I prefer PHP so when I change something on my website I dont have to change every page.

http://www.midlifedad.me.uk/weather/index.php (http://www.midlifedad.me.uk/weather/index.php)

Andy
Title: Re: Just CANNOT get this to work
Post by: Steve Bannister on June 04, 2016, 03:25:45 AM
I am beginning to feel like I am stalking you but just trying to do my good deed for the day ( I am an ex-Boy Scout)

I just had a light bulb moment and an oversight possibly on my part as you mentioned looking for wt_data_inc files. If this is the case then you are using the php version which means that the template you have uploaded to your server is incorrect because your website is pointing to html files and not php files. So you are using a mix of templates.

So back to my first post Did you implement the html version or php version of the template and which version (number i.e. 1.2 or 2.2). Let me know which you want to use I will try and advise. I prefer PHP so when I change something on my website I dont have to change every page.

http://www.midlifedad.me.uk/weather/index.php (http://www.midlifedad.me.uk/weather/index.php)

Andy

Hi Andy, thanks for your replies, and sorry for not seeing these sooner.

Yes, I did install weather blues v2, which is the PHP version. I have had a nightmare from the start, with little help from this site. The documentation leaves a lot to be desired, and could be a LOT better. No disrespect.

I would welcome any help you can give. This is a Primary School site, and the site and weather station were paid for by our P&C, and it's more than a bit embarrassing at the moment.

When I couldn't get the the,plate to work at all, I tried a html template, but that didn't work either. It should be the PHP template again now though.

Coming from England, I've also been trying to fudge as much of this as I can. ;)

I'll go through your posts again, and see if I can make any of the changes you suggest.

Thanks again, so much!
Title: Re: Just CANNOT get this to work
Post by: Steve Bannister on June 04, 2016, 03:32:06 AM
Ok, changing 'style' to 'weatherstyle' gives me a pale blue background. I think that's a start.

Just keeping you updated here, step by step.

Steve
Title: Re: Just CANNOT get this to work
Post by: Steve Bannister on June 04, 2016, 03:57:08 AM
Here's a screenshot of the Weather subdomain folder, so you can see what's in there, and which ones are being regularly updated.

Steve
Title: Re: Just CANNOT get this to work
Post by: Ecce on June 04, 2016, 05:52:59 AM
Hi Steve, am new to weather stations so can't really help (sorry). I did notice your links at the bottom of the page all point to .html pages not .php and guess the main issue (right now) is the style sheet isn't being picked up?

Have you got a screen shot of the cumulus internet config page? I have to agree with you that things are harder when this forum is not busy and when the 'tutorial' leave somewhat to be desired (though big thanks to Jaques for all the hard work!).

Even though I still have a few issues WB2 was probbly the easiest .PHP site I've started :)
Title: Re: Just CANNOT get this to work
Post by: Steve Bannister on June 04, 2016, 06:29:31 AM
Hi Steve, am new to weather stations so can't really help (sorry). I did notice your links at the bottom of the page all point to .html pages not .php and guess the main issue (right now) is the style sheet isn't being picked up?

Have you got a screen shot of the cumulus internet config page? I have to agree with you that things are harder when this forum is not busy and when the 'tutorial' leave somewhat to be desired (though big thanks to Jaques for all the hard work!).

Even though I still have a few issues WB2 was probbly the easiest .PHP site I've started :)

Hi Ecce, and thanks for replying.

I don't know why they would be pointing to html pages, when it's a php template.

I'm not in front of the weather station computer at the moment, that's in our school and it's Saturday today. Monday's going to be the earliest I'll  be there.

Steve
Title: Re: Just CANNOT get this to work
Post by: Ecce on June 04, 2016, 06:50:38 AM
Hi Steve, hopefully your stalker (Andy) will come up with a plan for Monday then ;)

I'm off to try and 'fudge' some of my issues. Personally I'd be inclined to delete your current folder for weather from the server and start again, especially as you have been using more than 1 template and double check the config settings in Cumulus.

Have a good (rest of the) weekend ;)

Title: Re: Just CANNOT get this to work
Post by: Andy9164 on June 05, 2016, 02:03:02 AM
Hi Steve,
First I need to correct a mistake I made as it referred to the html teplate and not the php one. Can you rename the stylesheet back to styles.css from weathersyles.css. styles.css is the correct name for the php template.

Your directory listings look fine with all the php files in the right place.

A Couple of things I spotted.

1) The "template" that opens in the i frame is not the WB template. It looks like the standard cumulus template.

2) In your main index file for the website it refers to this link  src='http://www.weather.calingirips.com.au/index.htm' its in the section just where you describe the weather station. I would expect this to refer to index.php

I tried opening http://www.weather.calingirips.com.au/index.htm in a browser and i get to the weather i-frame, if I change it to php I get to the same place

3) There seems to be too many files that are getting updated, generally the only file thatshould be getting updated ate the ones with wt_data etc. and a couple of others. The today, records etc should not get updated.

4) Does your webserver support php? - I know its probably a stupid question but please check.


5) Check your Cumulus set up, make sure you are not sending standard web files and that you are sending the correct files to your webserver.

I would seriously consider starting from scratch as for some reason things seem totally mixed up between php and html, it wont take long. I can help, no problem. I will send you a PM.

Andy



Title: Re: Just CANNOT get this to work
Post by: Andy9164 on June 05, 2016, 12:01:42 PM
Steve,
As per my PM.

Andy
Title: Re: Just CANNOT get this to work
Post by: Steve Bannister on June 07, 2016, 07:50:12 AM
Steve,
As per my PM.

Andy

Hi Andy,

Thanks for your messages, and your amazing help. It works! Woohoo!

Just the monthly records page that still appears as text, but it's all looking good so far.

You've been a star, thank you SO much.

Thanks to Ecce as well, I couldn't have done this without you both.

Steve
Title: Re: Just CANNOT get this to work
Post by: Ecce on June 07, 2016, 04:27:35 PM
Looking good Steve and I see you sorted the Months template out too :)

Are you uploading wt_month_inc.php as well as wt_data_inc.php?
Title: Re: Just CANNOT get this to work
Post by: Andy9164 on June 08, 2016, 11:00:26 AM
Hi Steve,
So pleased we managed to get you working.

I see the History / Month template is still showing as text, is this the one you meant.

Took a quick look and looked at the source code. It looks to me like this is not the WB2 php template and still html template. Try deleting the "thismonth.php" file from your webserver and re-copying it over from the downloaded template zip file. I think that will fix it.

Andy