Page 24 of 31

Re: Cumulus PHP-GD Banner

Posted: Sat 07 Jul 2018 2:27 pm
by dazza1223
thank you p.s i dint know he pass away Kevin Reed my hart goes out

Re: Cumulus PHP-GD Banner

Posted: Thu 07 Mar 2019 11:37 am
by g10rdan0
Hello All,
I am trying to install this banner on my website without success. This is the code I have installed;

<img id="banner"
src="http://www.knarsdalenature.org/weather/banner.php"
alt="Live Weather" name="banner" border="0"
height="70" width="468">

When I simply enter: http://www.knarsdalenature.org/weather/banner.php in a browser it works and I see the banner, naturally only the banner, on the page. However when I load my website in the normal fashion the site appears, all except the banner. I should add that my site was constructed using the free software 'Komp0Zer' and through trial and error. I would appreciate any advice as to what I might be doing wrong!
Regards, Peter

Re: Cumulus PHP-GD Banner

Posted: Thu 07 Mar 2019 11:53 am
by nitrx
Probably you use an adblocker or something with your browser I use ghostery when I turn Ghostery off the vanner shows up. You better avoid the word banner most adblockers will block that content rename banner.php to 'sign.php' or something and the adjust the html code also to that name. See previous posts about this in this thread.

Hope this helps
Ron

Re: Cumulus PHP-GD Banner

Posted: Thu 07 Mar 2019 12:24 pm
by g10rdan0
Hello Ron,
Thank you for the suggestion, I changed all references of banner to sign but I am afraid I am getting the same result. I normally use Firefox so I thought to try a vanilla copy of Chrome, again no banner but it does show the alternative name 'live weather'.
regards, Peter

Re: Cumulus PHP-GD Banner

Posted: Thu 07 Mar 2019 12:44 pm
by nitrx
g10rdan0 wrote: Thu 07 Mar 2019 12:24 pm Hello Ron,
Thank you for the suggestion, I changed all references of banner to sign but I am afraid I am getting the same result. I normally use Firefox so I thought to try a vanilla copy of Chrome, again no banner but it does show the alternative name 'live weather'.
regards, Peter
You use

Code: Select all

<br>
<img id="banner" src="http://www.knarsdalenature.org/weather/banner.php" alt="Live Weather" name="banner" border="0" height="70" width="468">
<br>
chanche <img id="banner" to <img id="sign" and do not use banner.php but sign.php because banner.php is not found anymore

Re: Cumulus PHP-GD Banner

Posted: Thu 07 Mar 2019 1:02 pm
by g10rdan0
Hello again Ron, I suspect that you did not clear your browser cache when you loaded the site again because as far as I can see everything is changed to "sign"
Regards, Peter

Re: Cumulus PHP-GD Banner

Posted: Thu 07 Mar 2019 1:25 pm
by nitrx
when you mean http://www.knarsdalenature.org/ I see this in the source

<
<img id="banner" src="http://www.knarsdalenature.org/weather/banner.php" alt="Live Weather" name="banner" border="0" height="70" width="468">
<br>

I've checked this now with the Edge browser and had not visited your site with Edge. You should change that code

Re: Cumulus PHP-GD Banner

Posted: Thu 07 Mar 2019 1:39 pm
by g10rdan0
Ron, I am attaching an index file from my WebHost and you will see that I have changed the file names.
Peter

Re: Cumulus PHP-GD Banner

Posted: Thu 07 Mar 2019 1:52 pm
by nitrx
g10rdan0 wrote: Thu 07 Mar 2019 1:39 pm Ron, I am attaching an index file from my WebHost and you will see that I have changed the file names.
Peter
i dont see an attachment

Re: Cumulus PHP-GD Banner

Posted: Thu 07 Mar 2019 2:21 pm
by g10rdan0
Ron, I give up "The upload was rejected because the uploaded file was identified as a possible attack vector." I do'nt need this crap I will do without the banner/sign.
Regards, Peter

Re: Cumulus PHP-GD Banner

Posted: Thu 07 Mar 2019 9:50 pm
by beteljuice
Don't give up !

Your banner code is working (renamed to sign.php)

If you want it in your home page then the code Ron (nitrx) posted should work.

ie. path name to weather/sign.php

I assume you zipped or changed extn. to .txt before trying to upload file to the forum ??

Re: Cumulus PHP-GD Banner

Posted: Fri 08 Mar 2019 12:54 pm
by g10rdan0
Thank you beteljuice for your reply, as you suggested 'nil desperandum' so once more I checked my online files and found I had uploaded the main website index into 'weather' rather than the root directory. I changed this and it is now working. A big thank you also to patient Ron for his advice. By the way, of the various Windows editions I have used, from DOS onwards, I found XP to be the best! I am currently using versions 7 & 10 although I have to say, that for an operating system, Linux 'beats the pants off' Windows.

Re: Cumulus PHP-GD Banner

Posted: Sun 07 Jul 2019 12:36 pm
by Mark14
I have already transferred my weather station site to a new server. I need to edit directories in Cumulus configuration. My website is updating successfully but no my weather banner.

My website: http://mark014.beep.pl/
Directory to my weather banner: http://mark014.beep.pl/pogoda.php

Apparently the error in displaying the banner results from the wrong path to realtime.txt. I tried to change it but unsuccessfully. You can not see the banner or it displays outdated data.

The fragment of my Cumulus.ini file:

Code: Select all

ImageFolder=
ImageCopyRealtime=0
ExtraLocal0=C:\Cumulus\realtime.txt
ExtraRemote0=/mark014.beep.pl/realtime.txt
ExtraProcess0=1
ExtraBinary0=0
ExtraRealtime0=1
ExtraFTP0=1
ExtraLocal1=C:\Cumulus\web\autoprog.txt
ExtraRemote1=/mark014.beep.pl/autoprog.txt
ExtraProcess1=1
ExtraBinary1=0
ExtraRealtime1=1
ExtraFTP1=1
ExtraLocal2=C:\Cumulus\yo_cumulus.txt
ExtraRemote2=C:\Cumulus\yowindow.xml
ExtraProcess2=1
ExtraBinary2=0
ExtraRealtime2=1
ExtraFTP2=0
ExtraLocal3=C:\Cumulus\yowindow.xml
ExtraRemote3=/mark014.beep.pl/yowindow.xml
ExtraProcess3=1
ExtraBinary3=0
ExtraRealtime3=1
ExtraFTP3=1
ExtraLocal4=C:\Cumulus\web\realtimegaugesT.txt
ExtraRemote4=/mark014.beep.pl/realtimegauges.txt
ExtraProcess4=1
ExtraBinary4=0
ExtraRealtime4=0
ExtraFTP4=0
ExtraLocal5=C:\Cumulus\web\gauges-ssT.html
ExtraRemote5=/mark014.beep.pl/gauges-ss.html
ExtraProcess5=1
ExtraBinary5=0
ExtraRealtime5=0
ExtraFTP5=0
ExtraLocal6=C:\Cumulus\webfiles\CUtags.txt
ExtraRemote6=/mark014.beep.pl/CUtags.php
ExtraProcess6=1
ExtraBinary6=0
ExtraRealtime6=1
ExtraFTP6=1
ExtraLocal7=C:\Cumulus\web\cloudbaseCUT.txt
ExtraRemote7=/mark014.beep.pl/cloudbaseCU.txt
ExtraProcess7=1
ExtraBinary7=0
ExtraRealtime7=0
ExtraFTP7=1
The part of my banner php file with path specification:

Code: Select all

# CONFIGURATION INFORMATION
############################################################################
$SITE['version']        = "3.0";
$SITE['hloc']           = "./";
$SITE['datafile']       = "realtime.txt";
$SITE['image_width']    = 468;
$SITE['image_height']   = 60;
I did not have to do anything on the existing server with the banner file and the data was showing up correctly.

Could you advise me how to solve this problem?

Re: Cumulus PHP-GD Banner

Posted: Sun 07 Jul 2019 12:45 pm
by beteljuice
You seem to have fixed it ??

Re: Cumulus PHP-GD Banner

Posted: Sun 07 Jul 2019 2:00 pm
by Mark14
To some extent, because I see a banner. It's probably not a wrong path issue.
However, on my main webpage I normally see updated data every minute: http://mark014.beep.pl

The banner is not updated on a regular basis. At the moment, I see measurements from 15 minutes ago: http://mark014.beep.pl/pogoda.php. Strange thing. I did not have such a situation so far.
It looks like the banner refreshed only every hour...