Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Cumulus PHP-GD Banner

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

jojo82
Posts: 57
Joined: Fri 07 Nov 2008 11:53 am
Weather Station: national géographic 265 NE
Location: France
Contact:

Re: Cumulus PHP-GD Banner

Post by jojo82 »

hi, sorry :oops: I do not manage to set up the banner, i have GD support: NO, i can't use the cumulus banner with my serveur ?
I've run checkserveur : http://johann82.ifrance.com/index.html/.

Saddened for my errors of language :oops:

tahnks Johann.
Lars-K
Posts: 13
Joined: Thu 06 Nov 2008 2:46 pm
Weather Station: Davis VP2 with WeatherlinkIP

Re: Cumulus PHP-GD Banner

Post by Lars-K »

Hi, I have another domain for my portal/forum.
This server is fully GD supported.
There I get this result:

Image

I have asked my ISP to move the other domain to this server.
That will solve my problem.
The Sky is the Limit!

My Club's Webpage:
Image
TNETWeather

Re: Cumulus PHP-GD Banner

Post by TNETWeather »

jojo82 wrote:hi, sorry :oops: I do not manage to set up the banner, i have GD support: NO, i can't use the cumulus banner with my serveur ?
I've run checkserveur : http://johann82.ifrance.com/index.html/.

Saddened for my errors of language :oops:

tahnks Johann.
You are correct... the script use of GD support is required.
Lars-K
Posts: 13
Joined: Thu 06 Nov 2008 2:46 pm
Weather Station: Davis VP2 with WeatherlinkIP

Re: Cumulus PHP-GD Banner

Post by Lars-K »

I have upgraded the server to php5.

Now it looks like this:

Image
The Sky is the Limit!

My Club's Webpage:
Image
User avatar
Paul C
Posts: 538
Joined: Thu 19 Jun 2008 7:45 am
Weather Station: Davis VP2 with solar
Operating System: Windows 10
Location: Brampton, Cumbria, UK
Contact:

Re: Cumulus PHP-GD Banner

Post by Paul C »

Lars-K wrote:I have upgraded the server to php5.

Now it looks like this:

Image

Duggpunkt - that sounds great, what a language

I have added your banner to the list
https://cumulus.hosiene.co.uk/viewtopic.p ... 1447#p1447
Paul C
Brampton, Cumbria, UK
117m ASL
http://www.bramptonweather.co.uk
Image
User avatar
meteotortosa
Posts: 323
Joined: Thu 04 Dec 2008 12:15 am
Weather Station: Davis Vantage Pro2 Plus
Operating System: Windows XP SP3
Location: Tortosa-Baix Ebre- Catalonia
Contact:

Re: Cumulus PHP-GD Banner

Post by meteotortosa »

Good job !! This is my banner

Image

I translate it to Catalan lenguage. Only one little thing, how can I get date ddmmyy?
A lot of thanks
Lluís
Weather in Tortosa (NE Spain), updated every 15'
Image Image
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Cumulus PHP-GD Banner

Post by steve »

meteotortosa wrote:Only one little thing, how can I get date ddmmyy?
In the configuration section, put:

Code: Select all

$SITE['dateiso']        = "no";
Edit: Actually, I'm not sure that does what you want.
Steve
User avatar
meteotortosa
Posts: 323
Joined: Thu 04 Dec 2008 12:15 am
Weather Station: Davis Vantage Pro2 Plus
Operating System: Windows XP SP3
Location: Tortosa-Baix Ebre- Catalonia
Contact:

Re: Cumulus PHP-GD Banner

Post by meteotortosa »

steve wrote:
meteotortosa wrote:Only one little thing, how can I get date ddmmyy?
In the configuration section, put:

Code: Select all

$SITE['dateiso']        = "no";
Edit: Actually, I'm not sure that does what you want.
Actually I have 2009-12-09 (yyyy-mm-dd)
and I would like 09-12-2009 (dd-mm-yyyy)

dateiso = no, dont't work I hope

;)
Weather in Tortosa (NE Spain), updated every 15'
Image Image
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Cumulus PHP-GD Banner

Post by steve »

dateiso=no gives you the format in my banner below.

To do dd-mm-yyyy (i.e.) the reverse of the iso order, find the lines:

Code: Select all

if ( $SITE['dateiso'] == "yes" ) {
    // Fix date to use ISO formatted date
    $DATA[0] = "20" . substr($DATA[0],6,2) . '-' . substr($DATA[0],3,2) . '-' . 
        substr($DATA[0],0,2);
Then swap the first and third 'substr', like this:

Code: Select all

$DATA[0] = "20" . substr($DATA[0],0,2). '-' . substr($DATA[0],3,2) . '-' . substr($DATA[0],6,2);
and use that instead of the whole if...then...else
Steve
User avatar
Paul C
Posts: 538
Joined: Thu 19 Jun 2008 7:45 am
Weather Station: Davis VP2 with solar
Operating System: Windows 10
Location: Brampton, Cumbria, UK
Contact:

Re: Cumulus PHP-GD Banner

Post by Paul C »

meteotortosa
Can you add which country you in aswell please
\I Have added you to the main list
https://cumulus.hosiene.co.uk/viewtopic.p ... 1447#p1447
Paul C
Brampton, Cumbria, UK
117m ASL
http://www.bramptonweather.co.uk
Image
pinto
Posts: 112
Joined: Sat 11 Oct 2008 3:20 pm
Weather Station: Davis Vantage Pro 2 Plus
Operating System: Debian Buster

Re: Cumulus PHP-GD Banner

Post by pinto »

Or you can replace

Code: Select all

   // Fix date to use Month formatted date
    $DATA[0] = $months[intval(substr($DATA[0],3,2)) -1 ] .
        " " . intval(substr($DATA[0],0,2)) . " " .
        "20" . substr($DATA[0],6,2);
with

Code: Select all

    // Fix date to use Month formatted date
    $DATA[0] = intval(substr($DATA[0],0,2)) .
	  " " . $months[intval(substr($DATA[0],3,2)) -1 ] .
        " 20" . substr($DATA[0],6,2);

Result: 9 Dec 2008
Last edited by pinto on Tue 09 Dec 2008 9:36 pm, edited 1 time in total.
Jozef
TNETWeather

Re: Cumulus PHP-GD Banner

Post by TNETWeather »

good job...
User avatar
meteotortosa
Posts: 323
Joined: Thu 04 Dec 2008 12:15 am
Weather Station: Davis Vantage Pro2 Plus
Operating System: Windows XP SP3
Location: Tortosa-Baix Ebre- Catalonia
Contact:

Re: Cumulus PHP-GD Banner

Post by meteotortosa »

Paul C wrote:meteotortosa
Can you add which country you in aswell please
\I Have added you to the main list
https://cumulus.hosiene.co.uk/viewtopic.p ... 1447#p1447

I'm from Spain, Tortosa is about 20 km west of Mediterranean Sea

Google Map:
You do not have the required permissions to view the files attached to this post.
Weather in Tortosa (NE Spain), updated every 15'
Image Image
User avatar
Paul C
Posts: 538
Joined: Thu 19 Jun 2008 7:45 am
Weather Station: Davis VP2 with solar
Operating System: Windows 10
Location: Brampton, Cumbria, UK
Contact:

Re: Cumulus PHP-GD Banner

Post by Paul C »

Thanks.
Can you add it to your banner please

cheers
Paul
Paul C
Brampton, Cumbria, UK
117m ASL
http://www.bramptonweather.co.uk
Image
goldrush
Posts: 183
Joined: Mon 27 Oct 2008 4:50 pm
Weather Station: Fine Offset WH1081
Location: Aberdeenshire, Scotland
Contact:

Re: Cumulus PHP-GD Banner

Post by goldrush »

Paul
Can you add my banner please

http://www.knaven-weather.co.uk/banner.php


Regards
Image
Post Reply