3.3.x Extensions Database 3.2 / 3.3Watermark

<span class="qte-attr qte_32_33-qte">3.2.x & 3.3.x</span>
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Topic Author
dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6485
Joined: Jan 13th, '14, 20:45
    Windows 10 Chrome

Watermark

Post by dmzx »

Extension Name: Watermark
Author: dmzx

Special thanks to: martin

Extension Description:
Watermark automatically images by upload.




- Added forum exclude in ACP.
- Added warning if GD is active in ACP.
- Code update.


- Added support for webp images.
- Added code for check mimetype.


- Added orientation of watermark.


- Added position of watermark.
- Added transparency level for watermark.

Screenshots:
Image

Image

Image

Extension Download:
Download-link
Watermark v1.0.4
Installation:
  1. Download the latest release.
  2. Unzip the downloaded release, and change the name of the folder to `watermark`.
  3. In the `ext` directory of your phpBB board, create a new directory named `dmzx` (if it does not already exist).
  4. Copy the `watermark` folder to `/ext/dmzx/` if done correctly, you'll have the main extension class at
    (your forum root)/ext/dmzx/watermark/composer.json
  5. Navigate in the ACP to `Customise -> Manage extensions`
  6. Look for `Watermark` under the Disabled Extensions list, and click its `Enable` link.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

The Good
Users
Users
Status: Offline
User theme: Dark
Posts: 93
Joined: Nov 5th, '15, 21:48
    Windows 10 Firefox

Re: Watermark

Post by The Good »

Plz no chance to have this for 3.2 phpbb ???
I already requested this ext in phpbb.. I really need it !!
https://www.phpbb.com/community/viewtop ... &t=2549071
thanks

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

martin
Admin
Admin
Status: Offline
User theme: Dark
Posts: 5123
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: Watermark

Post by martin »

The Good wrote: Jun 5th, '20, 16:46 plz no chance to have this for 3.2 phpbb ???
I already requested this ext in phpbb.. I really need it !!
https://www.phpbb.com/community/viewtop ... &t=2549071
thanks
Untested but try this.
Removed its 3.3 only
Image

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

TrekRed
Users
Users
Status: Offline
User theme: Dark
Posts: 93
Joined: Oct 27th, '19, 22:54
    Windows 10 Chrome

Re: Watermark

Post by TrekRed »

Works only in attachments or on external resources too?

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

martin
Admin
Admin
Status: Offline
User theme: Dark
Posts: 5123
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: Watermark

Post by martin »

Attachments only.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

TrekRed
Users
Users
Status: Offline
User theme: Dark
Posts: 93
Joined: Oct 27th, '19, 22:54
    Windows 10 Chrome

Re: Watermark

Post by TrekRed »

Is there anything similar to external resources?

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Peralta
Users
Users
Status: Offline
User theme: Dark
Posts: 190
Joined: Dec 13th, '14, 16:04
    Windows 10 Firefox

Re: Watermark

Post by Peralta »

martin wrote: Jun 5th, '20, 16:50
The Good wrote: Jun 5th, '20, 16:46 plz no chance to have this for 3.2 phpbb ???
I already requested this ext in phpbb.. I really need it !!
https://www.phpbb.com/community/viewtop ... &t=2549071
thanks
Untested but try this.
watermark_v100.zip
:wtf:

La migración “\dmzx\watermark\migrations\install_watermark” no se ha realizado, falta la migración “\phpbb\db\migration\data\v330\v330”.

Code: Select all

	public static function depends_on()
	{
		return [
			'\phpbb\db\migration\data\v330\v330'
		];
	}
martin could you modify it to avoid the error?
I speak spanish. Sorry for my bad english.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

martin
Admin
Admin
Status: Offline
User theme: Dark
Posts: 5123
Joined: Apr 6th, '14, 14:12
    Android Chrome

Re: Watermark

Post by martin »

Thought I did that must have uploaded the wrong set yes I will redo them.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

martin
Admin
Admin
Status: Offline
User theme: Dark
Posts: 5123
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: Watermark

Post by martin »

Ok new files in other post above but you should note this is 3.3 only and i dont have 3.2 to test on.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Peralta
Users
Users
Status: Offline
User theme: Dark
Posts: 190
Joined: Dec 13th, '14, 16:04
    Windows 10 Firefox

Re: Watermark

Post by Peralta »

:sad: ...It doesn't work, when I try to access the configuration of the extension this error is triggered:

Code: Select all

phpBB encontró un error al construir el contenedor debido a una extensión instalada. Por esta razón, todas las extensiones se han desactivado temporalmente. Por favor, intente purgar el caché del foro. Todas las extensiones serán automáticamente habilitadas de nuevo una vez que se resuelva el error del contenedor. Si este error continúa, por favor visite phpBB.com para soporte.

Excepción: The definition for "_defaults" has no class. If you intend to inject this service dynamically at runtime, please mark it as synthetic=true. If this is an abstract definition solely used by child definitions, please add abstract=true, otherwise specify a class to get rid of this error.

#0 /srv/disk1/2868406/***/vendor/symfony/dependency-injection/Compiler/Compiler.php(102): Symfony\Component\DependencyInjection\Compiler\CheckDefinitionValidityPass->process(Object(Symfony\Component\DependencyInjection\ContainerBuilder))
#1 /srv/disk1/2868406/***/vendor/symfony/dependency-injection/ContainerBuilder.php(587): Symfony\Component\DependencyInjection\Compiler\Compiler->compile(Object(Symfony\Component\DependencyInjection\ContainerBuilder))
#2 /srv/disk1/2868406/***/phpbb/di/container_builder.php(198): Symfony\Component\DependencyInjection\ContainerBuilder->compile()
#3 /srv/disk1/2868406/***/common.php(115): phpbb\di\container_builder->get_container()
#4 /srv/disk1/2868406/***/adm/index.php(23): require('/srv/disk1/2868...')
#5 {main}

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

martin
Admin
Admin
Status: Offline
User theme: Dark
Posts: 5123
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: Watermark

Post by martin »

Nope 3.3 only then.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Topic Author
dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6485
Joined: Jan 13th, '14, 20:45
    Android Chrome

Re: Watermark

Post by dmzx »

For 3.2 some work needs to be done.

service.yml
ext.php
migration file.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

martin
Admin
Admin
Status: Offline
User theme: Dark
Posts: 5123
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: Watermark

Post by martin »

:wall: services i missed that one.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

The Good
Users
Users
Status: Offline
User theme: Dark
Posts: 93
Joined: Nov 5th, '15, 21:48
    Windows 10 Firefox

Re: Watermark

Post by The Good »

dmzx wrote: Jun 5th, '20, 18:08 for 3.2 some work needs to be done.

service.yml
ext.php
migration file.

thanks guys !! we can wait :thumbup:

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

The Good
Users
Users
Status: Offline
User theme: Dark
Posts: 93
Joined: Nov 5th, '15, 21:48
    Windows 10 Firefox

Re: Watermark

Post by The Good »

I think to add also the name of the author will take too much work time !!