[SPLIT] Re-check Extensions Version issue

Do not post support requests, bug reports or feature requests. Discuss phpBB here. Non-phpBB related discussion goes in General Discussion!
Scam Warning
User avatar
alex75
Registered User
Posts: 509
Joined: Sun Jun 10, 2012 9:09 am
Location: Italy
Name: Alessandro
Contact:

Re: Re-check Extensions Version issue

Post by alex75 »

Steve wrote: Thu Apr 07, 2022 1:07 pm
Steve wrote: Mon Apr 04, 2022 3:00 pm Make sure you file is to standard: https://area51.phpbb.com/docs/dev/3.3.x ... n-checking
Did you even look at this link?
Thanks for the reply.
Yes.
Composer file does not work with my host; but it works if I address it to another host. I am trying to get it to work with github, as it was suggested to me.
User avatar
Prosk8er
Registered User
Posts: 1744
Joined: Sun Mar 12, 2006 3:30 am
Location: Rochester, NY
Name: Tyler
Contact:

Re: [SPLIT] Re-check Extensions Version issue

Post by Prosk8er »

can you share your composer.json file so we can see how its setup
User avatar
alex75
Registered User
Posts: 509
Joined: Sun Jun 10, 2012 9:09 am
Location: Italy
Name: Alessandro
Contact:

Re: [SPLIT] Re-check Extensions Version issue

Post by alex75 »

This, with backgroundheader__versions.json file in other host (free host :D ) work fine :

Code: Select all

{
	"name": "alex75/backgroundheader",
	"type": "phpbb-extension",
	"description": "By adding a 'picture with name background-header.jpg in your forum root/ext/alex75/backgroundheader/styles/prosilver/theme/background-header.jpg will be displayed as the header of your forum.",
	"homepage": "www.phpbb-italia.it",
	"version": "1.0.2",
	"license": "GPL-2.0",
	"authors": [
		{
			"name": "Alessandro DI BENEDETTO",
			"username": "alex75",
			"email": "[email protected]",
			"homepage": "www.phpbb-italia.it",
			"role": "developer"
		}
	],
	"require": {
		"php": ">=5.3.3",
		"composer/installers": "~1.0"
	},
	"extra": {
		"display-name": "Background header ",
		"soft-require": {
			"phpbb/phpbb": ">=3.1.x"
		},
      "version-check": {
         "host": "phpbbmod.altervista.org",
         "directory": "/versioncheck",
         "filename": "backgroundheader__versions.json"
      }
   }
}


This, with backgroundheader__versions.json on my host (paid) not work (also adding www)

Code: Select all

{
	"name": "alex75/backgroundheader",
	"type": "phpbb-extension",
	"description": "By adding a 'picture with name background-header.jpg in your forum root/ext/alex75/backgroundheader/styles/prosilver/theme/background-header.jpg will be displayed as the header of your forum.",
	"homepage": "www.phpbb-italia.it",
	"version": "1.0.2",
	"license": "GPL-2.0",
	"authors": [
		{
			"name": "Alessandro DI BENEDETTO",
			"username": "alex75",
			"email": "[email protected]",
			"homepage": "www.phpbb-italia.it",
			"role": "developer"
		}
	],
	"require": {
		"php": ">=5.3.3",
		"composer/installers": "~1.0"
	},
	"extra": {
		"display-name": "Background header ",
		"soft-require": {
			"phpbb/phpbb": ">=3.1.x"
		},
      "version-check": {
         "host": "phpbb-italia.it",
         "directory": "/versioncheck",
         "filename": "backgroundheader__versions.json"
      }
   }
}
This is what I would like to get to work to fix the problem

Code: Select all

{
	"name": "alex75/backgroundheader",
	"type": "phpbb-extension",
	"description": "By adding a 'picture with name background-header.jpg in your forum root/ext/alex75/backgroundheader/styles/prosilver/theme/background-header.jpg will be displayed as the header of your forum.",
	"homepage": "www.phpbb-italia.it",
	"version": "1.0.2",
	"license": "GPL-2.0",
	"authors": [
		{
			"name": "Alessandro DI BENEDETTO",
			"username": "alex75",
			"email": "[email protected]",
			"homepage": "www.phpbb-italia.it",
			"role": "developer"
		}
	],
	"require": {
		"php": ">=5.3.3",
		"composer/installers": "~1.0"
	},
	"extra": {
		"display-name": "Background header ",
		"soft-require": {
			"phpbb/phpbb": ">=3.1.x"
		},
      "version-check": {
         "host": "phpbb-store.github.io",
         "directory": "/version_check",
         "filename": "backgroundheader__versions.json"
      }
   }
}
User avatar
Steve
Registered User
Posts: 1480
Joined: Tue Apr 07, 2009 7:48 pm
Name: Steven Clark
Contact:

Re: [SPLIT] Re-check Extensions Version issue

Post by Steve »

Code: Select all

https://phpbb-store.github.io/
Benvenuto!
Questa pagina è in costruzione...
Append "ssl": true

Code: Select all

      "version-check": {
         "host": "phpbb-store.github.io",
         "directory": "/version_check",
         "filename": "backgroundheader__versions.json",
         "ssl": true         
      }
After that, ask 3DI, for an example.
@ The Chief Medical Officers guideline for men is that: You are safest not to drink regularly more than 14 units per week.
- I drank that today++ :lol: 🍺
User avatar
alex75
Registered User
Posts: 509
Joined: Sun Jun 10, 2012 9:09 am
Location: Italy
Name: Alessandro
Contact:

Re: Re-check Extensions Version issue

Post by alex75 »

Yes i tried, but adding "ssl": true or "ssl": false, the extension no longer works.

open this:

Code: Select all

https://phpbb-store.github.io/version_check/backgroundheader__versions.json
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: [SPLIT] Re-check Extensions Version issue

Post by 3Di »

You need to use gh-pages in github for that.

Note that you may want to wait a few minutes to propagate, such as 10 or 15, or less.

Example:

Composer

Code: Select all

		"version-check": {
			"host": "3d-i.github.io",
			"directory": "/site/vchecks",
			"filename": "prism.json"
		}
GitHub side of thing (JSON):

Code: Select all

{
	"stable": {
		"1.0": {
			"current": "1.0.2-RC",
			"download": "",
			"announcement": "https://phpbbstudio.com/viewtopic.php?f=50&t=249",
			"eol": null,
			"security": false
		}
	}
}
You may need to validate your composer.json (in CLI/Bash) with the "composer validate" command.



Here's my GitHub
Screenshot 2022-04-08 at 19-13-43 site_vchecks at gh-pages · 3D-I_site.png
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
alex75
Registered User
Posts: 509
Joined: Sun Jun 10, 2012 9:09 am
Location: Italy
Name: Alessandro
Contact:

Re: [SPLIT] Re-check Extensions Version issue

Post by alex75 »

Many thanks.
so the files are written correctly.
You need to use gh-pages in github for that.

Note that you may want to wait a few minutes to propagate, such as 10 or 15, or less.
I noticed that it takes some time to propagate, but those files have been there for 2 days.
You may need to validate your composer.json (in CLI/Bash) with the "composer validate" command.

This will surely be the problem. Now I check. thanks for the tip.
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: [SPLIT] Re-check Extensions Version issue

Post by 3Di »

3Di wrote: Fri Apr 08, 2022 5:24 pm You need to use gh-pages in github for that.
https://docs.github.com/en/pages/gettin ... thub-pages
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
alex75
Registered User
Posts: 509
Joined: Sun Jun 10, 2012 9:09 am
Location: Italy
Name: Alessandro
Contact:

Re: [SPLIT] Re-check Extensions Version issue

Post by alex75 »

Ok. I study it and try again ;-)
User avatar
alex75
Registered User
Posts: 509
Joined: Sun Jun 10, 2012 9:09 am
Location: Italy
Name: Alessandro
Contact:

Re: [SPLIT] Re-check Extensions Version issue

Post by alex75 »

It does not work yet. I did not find any reference to this:
3Di wrote: Fri Apr 08, 2022 5:24 pm You may need to validate your composer.json (in CLI/Bash) with the "composer validate" command.
User avatar
Prosk8er
Registered User
Posts: 1744
Joined: Sun Mar 12, 2006 3:30 am
Location: Rochester, NY
Name: Tyler
Contact:

Re: [SPLIT] Re-check Extensions Version issue

Post by Prosk8er »

i believe 3Di is referring to this https://getcomposer.org/doc/03-cli.md#validate
User avatar
alex75
Registered User
Posts: 509
Joined: Sun Jun 10, 2012 9:09 am
Location: Italy
Name: Alessandro
Contact:

Re: [SPLIT] Re-check Extensions Version issue

Post by alex75 »

Steve wrote: Fri Apr 08, 2022 5:11 pm

Code: Select all

https://phpbb-store.github.io/
Benvenuto!
Questa pagina è in costruzione...
Append "ssl": true

Code: Select all

      "version-check": {
         "host": "phpbb-store.github.io",
         "directory": "/version_check",
         "filename": "backgroundheader__versions.json",
         "ssl": true         
      }
That was the problem. When I tried earlier it didn't work because I didn't add the comma to the previous line.
Thanks.
User avatar
Prosk8er
Registered User
Posts: 1744
Joined: Sun Mar 12, 2006 3:30 am
Location: Rochester, NY
Name: Tyler
Contact:

Re: [SPLIT] Re-check Extensions Version issue

Post by Prosk8er »

glad you got it but that's the same code i gave you in earlier posts
User avatar
alex75
Registered User
Posts: 509
Joined: Sun Jun 10, 2012 9:09 am
Location: Italy
Name: Alessandro
Contact:

Re: [SPLIT] Re-check Extensions Version issue

Post by alex75 »

Yes, your code was right.
I forgot to insert a comma before

Code: Select all

"ssl": true 

Now the code on github is working correctly. thanks to all.
User avatar
Steve
Registered User
Posts: 1480
Joined: Tue Apr 07, 2009 7:48 pm
Name: Steven Clark
Contact:

Re: [SPLIT] Re-check Extensions Version issue

Post by Steve »

Unlucky ,,, :lol:
I’m pleased you know from now on 🙂
@ The Chief Medical Officers guideline for men is that: You are safest not to drink regularly more than 14 units per week.
- I drank that today++ :lol: 🍺
Post Reply

Return to “phpBB Discussion”