Skip to content

Instantly share code, notes, and snippets.

View katzueno's full-sized avatar

Katz Ueno katzueno

View GitHub Profile
@katzueno
katzueno / nginx.mautic.conf
Last active March 18, 2019 06:05
Mautic config for nginx
# 最新版は Qiita で更新しています。
# https://gist.github.com/proffalken/ebfa9debc4eef929b0163d11a80af349
server {
listen 80;
listen [::]:80;
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name EXAMPLE.COM WWW.EXAMPLE.COM;
@katzueno
katzueno / 0_readme.md
Last active October 26, 2018 12:08
concrete5.7.x Form Block send confirmation message to form sender

concrete5.7 Form Customization to send a confirmation email / フォームの送信者に確認メールを送る

Tested with concrete5.7.3.

Instruction

  1. Modify [SITE NAME] to your site name on the line 572 and 585 of controller.php
  2. Upload the controller.php to /application/blocks/form/ (create folder if not existed)
  3. Change or add anything you want in block_form_submission_user.php
  4. Upload the block_form_submission_user.php to /application/mail/
@katzueno
katzueno / BasicThumbnailer.php
Last active October 12, 2018 12:04
src/Entity/File/Version.php & src/File/Image/BasicThumbnailer.php
<?php
namespace Concrete\Core\File\Image;
use Concrete\Core\Application\ApplicationAwareInterface;
use Concrete\Core\Application\ApplicationAwareTrait;
use Concrete\Core\Entity\File\File;
use Concrete\Core\Entity\File\StorageLocation\StorageLocation;
use Concrete\Core\File\Image\Thumbnail\ThumbnailerInterface;
use Concrete\Core\File\Image\Thumbnail\Type\CustomThumbnail;
use Concrete\Core\File\StorageLocation\Configuration\LocalConfiguration;
<?php
namespace Application\Block\Form;
use Concrete\Core\Block\BlockController;
use Core;
use Database;
use User;
use Page;
use UserInfo;
@katzueno
katzueno / request_debug_app.php
Created September 27, 2018 12:33
Request debug
<?php
// /application/bootstrap/app.php
/*
* ----------------------------------------------------------------------------
* ## Request Debug
* ----------------------------------------------------------------------------
*/
Route::register('/ccm/c5-request_test_wKKv8AEYlB7F27WE', function() {
header("Pragma: no-cache");
@katzueno
katzueno / vew.php
Last active August 31, 2018 07:06
concrete5 Manual Nav custom template to support external link's new window and nav_target page attribute
<?php defined('C5_EXECUTE') or die(_("Access Denied."));
/**
* concrete5.6.x Package 'Manual Nav' Custom Template
* @package Manual Nav
* @author Jordan Lev
* @author Katz Ueno
* @copyright Copyright (c) 2015 Katz Ueno. (http://katzueno.com)
* @license http://www.concrete5.org/license/ MIT License
* to support External Link's tareget="_blank"
* and page attribute 'nav_target'
@katzueno
katzueno / README.md
Last active August 6, 2018 04:39
Batch Modify Users

Batch Modify Users job for concrete5

(c) 2018. concrete5 Japan, Inc. (Katz Ueno) MIT License.

About

This is concrete5 Job to batch edit all existing users to make anonymouse or edit.

@katzueno
katzueno / StatusCodeCheck.php
Created June 26, 2018 11:02 — forked from hissy/StatusCodeCheck.php
#concrete5 Status Code Check Command
<?php
// application/src/Console/Command/StatusCodeCheck.php
namespace Application\Console\Command;
use Concrete\Core\Console\Command;
use Concrete\Core\Database\Connection\Connection;
use Concrete\Core\Http\Client\Client;
use Concrete\Core\Page\Page;
use Concrete\Core\Support\Facade\Application;
use Concrete\Core\Url\Url;
@katzueno
katzueno / StatusCodeCheck.php
Created June 26, 2018 11:02 — forked from hissy/StatusCodeCheck.php
#concrete5 Status Code Check Command
<?php
// application/src/Console/Command/StatusCodeCheck.php
namespace Application\Console\Command;
use Concrete\Core\Console\Command;
use Concrete\Core\Database\Connection\Connection;
use Concrete\Core\Http\Client\Client;
use Concrete\Core\Page\Page;
use Concrete\Core\Support\Facade\Application;
use Concrete\Core\Url\Url;
<?php
defined('C5_EXECUTE') or die("Access Denied.");
class GoogleMapBlockController extends Concrete5_Controller_Block_GoogleMap
{
public function on_page_view() {
// Insert Google Map API Key here
// ここに Google Map API Key を入れてください
$apikey = 'XXXXXXXXXXX';
$balloonHtml = '';