Code Monkey home page Code Monkey logo

imthumbnailer's Issues

Thumnail on 'inset image' as well as 'attach'

Hi,
Would it be possible to have the thumbnailet work when inserting a remote image into a post, example:

[img]https://cursorium.co.uk/gallery/_data/i/upload/2018/06/11/20180611113938-c9a106df-me.jpg[/img]

As well as it working with attachments?
Regards
Chris

clean code

clean code following coding guideline

reduce size of ext.php

Suggestion from the customizatioon team

public function is_enableable()
{
	$language = $this->container->get('language');
	$language->add_lang('imthumbnailer_acp', 'canonknipser/imthumbnailer');

	if (!class_exists('Imagick'))
	{
		trigger_error($language->lang('CK_IM_REQUIRE_IMAGICK'), E_USER_WARNING);
	}

	$config = $this->container->get('config');
	if (!phpbb_version_compare($config['version'], '3.2.4', '>='))
	{
		trigger_error($language->lang('CK_IM_REQUIRE_IMAGICK'), E_USER_WARNING);
	}
	
	return true;
}

improve twig syntax

adm/style/acp_ck_it_body.html

you can use {{ lang('ACP_CK_IT_QUALITY') ~ lang('COLON') }} instead of {{ lang('ACP_CK_IT_QUALITY') }}{{ lang('COLON') }}.

add choise of filters to ACP

Admins should be able to define a Filter used to resize a image, Currently, the filter is set to FILTER_LANCZOS

New directory structure for extensions

Extensions should follow a new directory structure - root is only containing non-packed resources, packed resources are in a subfolder named vendor/extension

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.