Page 21 of 23

Re: Cumulus PHP-GD Banner

Posted: Fri Jul 05, 2013 1:51 am
by beteljuice
What's happened to your realtime.txt ?

This is where banner.php is looking, but it's empty :shock: http://climaguayana.comuv.com/realtime.txt

Re: Cumulus PHP-GD Banner

Posted: Fri Jul 05, 2013 2:06 am
by josecmorales
beteljuice wrote:What's happened to your realtime.txt ?

This is where banner.php is looking, but it's empty :shock: http://climaguayana.comuv.com/realtime.txt


Really dont know what happen with this file, because, i can see realtime.txt is updating

Re: Cumulus PHP-GD Banner

Posted: Fri Jul 05, 2013 3:44 am
by beteljuice
No it isn't - or at least not where you've told your scripts to look.

Your main site ajax calls which you have set to every 5s are failing too.

Re: Cumulus PHP-GD Banner

Posted: Fri Jul 05, 2013 2:28 pm
by josecmorales
beteljuice wrote:No it isn't - or at least not where you've told your scripts to look.

Your main site ajax calls which you have set to every 5s are failing too.

How do you see that?

Re: Cumulus PHP-GD Banner

Posted: Fri Jul 05, 2013 2:36 pm
by BigOkie
josecmorales wrote:
beteljuice wrote:No it isn't - or at least not where you've told your scripts to look.

Your main site ajax calls which you have set to every 5s are failing too.

How do you see that?


the ajaxCUwx.js file is readable.

Re: Cumulus PHP-GD Banner

Posted: Fri Jul 05, 2013 2:59 pm
by beteljuice
I have the FireBug plug-in for FireFox.

You can see all 'calls' / responses / headers / and their load times, together with all the javascript calls / variables / browser window variables / css stlye sheets, etc. etc.

Invaluable when you get serious about (debugging) coding :clap:

'Console' view is a good start ...

Re: Cumulus PHP-GD Banner

Posted: Fri Jul 05, 2013 6:32 pm
by nitrx
Also in chrome

Failed to load resource http://je.revolvermaps.com/2/1.js?i=4rs ... e&c=ff0000
Failed to load resource: the server responded with a status of 404 (Not Found) http://climaguayana.comuv.com/realtime. ... 3048630859
Failed to load resource: the server responded with a status of 404 (Not Found) http://climaguayana.comuv.com/realtime. ... 3048635863
GET http://climaguayana.comuv.com/realtime. ... 3048640864 404 (Not Found) ajaxCUwx.js:946
GET http://climaguayana.comuv.com/realtime. ... 3048645866 404 (Not Found) ajaxCUwx.js:946
GET http://climaguayana.comuv.com/realtime. ... 3048650866 404 (Not Found) ajaxCUwx.js:946

so the site isn't updated in realtime

Re: Cumulus PHP-GD Banner

Posted: Fri Jul 05, 2013 8:09 pm
by josecmorales
I dont understand, because the status says this

Image

Re: Cumulus PHP-GD Banner

Posted: Thu Aug 01, 2013 11:03 am
by fisherman3408
Hello,

Thank you for your efforts with this banner / avatar maker.

I have managed to modify the basic bits to output personalised data from my weather station. As a newbie to web coding / php etc, I'm rather pleased with myself :D

I would like to make the avatar to be clickable, linking to my weather site. How can I modify the script so that the output image is a clickable one?

If that is not possible, how can I make my site address a hyperlink in the script?

Sorry if this is a dull question..... I am learning, albeit slowly!!

Thanks for any advice you may have.

Image

Re: Cumulus PHP-GD Banner

Posted: Thu Aug 01, 2013 4:48 pm
by steve
fisherman3408 wrote:I would like to make the avatar to be clickable, linking to my weather site. How can I modify the script so that the output image is a clickable one?


You don't change the script, you change the code where you use it. So, on the forum, where you currently have

Code: Select all

[img]http://www.porlockweather.co.uk/avatarpw.php[/img]


you could use

Code: Select all

[url=http://www.porlockweather.co.uk/][img]http://www.porlockweather.co.uk/avatarpw.php[/img][/url]


To use it on a web page, you could use

Code: Select all

<a href="http://www.porlockweather.co.uk/"><img src="http://www.porlockweather.co.uk/avatarpw.php"></a>

Re: Cumulus PHP-GD Banner

Posted: Thu Aug 01, 2013 10:18 pm
by fisherman3408
Many thanks Steve, I have learnt a bit more. Every day is a school day!

Kind regards.

Image

That's better!! :D :clap: :clap: :clap: :mrgreen:

Re: Cumulus PHP-GD Banner

Posted: Sun Dec 29, 2013 2:22 am
by thomas74
Hello ,
everything fine http://anoliosia.meteoclub.gr/banner.php but when i'm writing the site name
($SITE['sitename'] = "Ano Liosia ,GR ";) i'm loosing the banner.
I have the same http://mesochoria.meteoclub.gr/banner.php and its ok ..
What i do wrong ?
thanks
Thomas

Re: Cumulus PHP-GD Banner

Posted: Thu Feb 20, 2014 1:35 pm
by mm23
I really don't understand this.....I did everything I need to. Made a folder named "test page" with file in it (banner.php) and when I open that page I only have a picture with some text on it without any data. I made a path to realtime.text which is placed in "weather" folder (/public_html/weather).
In error log stands next:

[20-Feb-2014 10:44:07 UTC] PHP Warning: fopen(./realtime.txt): failed to open stream: No such file or directory in /home/sibeniku/public_html/test2/banner.php on line 336
[20-Feb-2014 10:44:07 UTC] PHP Notice: Undefined offset: 98 in /home/sibeniku/public_html/test2/banner.php on line 178
[20-Feb-2014 10:44:07 UTC] PHP Notice: Undefined offset: 1 in /home/sibeniku/public_html/test2/banner.php on line 184
[20-Feb-2014 10:44:07 UTC] PHP Notice: Undefined offset: 38 in /home/sibeniku/public_html/test2/banner.php on line 531
[20-Feb-2014 10:44:07 UTC] PHP Notice: Undefined offset: 39 in /home/sibeniku/public_html/test2/banner.php on line 531
[20-Feb-2014 10:44:07 UTC] PHP Notice: Undefined offset: 2 in /home/sibeniku/public_html/test2/banner.php on line 531
[20-Feb-2014 10:44:07 UTC] PHP Notice: Undefined offset: 14 in /home/sibeniku/public_html/test2/banner.php on line 531
[20-Feb-2014 10:44:07 UTC] PHP Notice: Undefined offset: 3 in /home/sibeniku/public_html/test2/banner.php on line 531
[20-Feb-2014 10:44:07 UTC] PHP Notice: Undefined offset: 4 in /home/sibeniku/public_html/test2/banner.php on line 531
[20-Feb-2014 10:44:07 UTC] PHP Notice: Undefined offset: 14 in /home/sibeniku/public_html/test2/banner.php on line 531
[20-Feb-2014 10:44:07 UTC] PHP Notice: Undefined offset: 11 in /home/sibeniku/public_html/test2/banner.php on line 531
[20-Feb-2014 10:44:07 UTC] PHP Notice: Undefined offset: 5 in /home/sibeniku/public_html/test2/banner.php on line 531
[20-Feb-2014 10:44:07 UTC] PHP Notice: Undefined offset: 13 in /home/sibeniku/public_html/test2/banner.php on line 531
[20-Feb-2014 10:44:07 UTC] PHP Notice: Undefined offset: 6 in /home/sibeniku/public_html/test2/banner.php on line 531
[20-Feb-2014 10:44:07 UTC] PHP Notice: Undefined offset: 13 in /home/sibeniku/public_html/test2/banner.php on line 531
[20-Feb-2014 10:44:07 UTC] PHP Notice: Undefined offset: 9 in /home/sibeniku/public_html/test2/banner.php on line 531
[20-Feb-2014 10:44:07 UTC] PHP Notice: Undefined offset: 9 in /home/sibeniku/public_html/test2/banner.php on line 531
[20-Feb-2014 10:44:07 UTC] PHP Notice: Undefined offset: 16 in /home/sibeniku/public_html/test2/banner.php on line 531
[20-Feb-2014 10:44:07 UTC] PHP Notice: Undefined offset: 10 in /home/sibeniku/public_html/test2/banner.php on line 531
[20-Feb-2014 10:44:07 UTC] PHP Notice: Undefined offset: 15 in /home/sibeniku/public_html/test2/banner.php on line 531


So, It seems that a php search a realtime.txt in "test2/banner page?
Why is that and what I have done wrong?

I have Cumulus web page and gauges ss and everything works nice....

Thanks

Re: Cumulus PHP-GD Banner

Posted: Thu Feb 20, 2014 1:43 pm
by steve
mm23 wrote:So, It seems that a php search a realtime.txt in "test2/banner page?
Why is that and what I have done wrong?
It's looking there for it because that's where you have told it to find it.

$SITE['hloc'] = "./";

You need to change that path so it points to the correct directory.

You probably need:

$SITE['hloc'] = "../weather";

Re: Cumulus PHP-GD Banner

Posted: Thu Feb 20, 2014 6:21 pm
by mm23
..........Yes I did it, but does not help. I spent hours on this issue........I am desparate :cry: