MEGU様
コードは
<?php
//////////////////////////////////////////////////////////////////////////////////////////////////
//
// PASTE THE CONTENTS OF THIS FILE INTO MODx WHEN INSTALLING THIS SNIPPET
//
// Snippet Name: MaxiGallery
// Short Description: Advanced imagegallery snippet
// Version: 0.5.2
// Author: doze &amp;lt;
[email protected]&amp;gt;
//
// Note:
// -----
// You can use this snippet in anyway you want. Modify it’s code, lend some parts of it or whatever you want to do with it.
// If you are going to make changes to some other files that this snippet uses, make sure you keep the author informations intact at the code.
//
// Copyright &amp;amp; Licencing:
// ----------------------
// GNU General Public License (GPL) (
http://www.gnu.org/copyleft/gpl.html)
//
// Extra Credits:
// --------------
//
// Originally based on etoGal v1.1 beta by Frank Siegert &amp;lt;
[email protected]&amp;gt;
// and Mike Finley &amp;lt;
[email protected]&amp;gt;
http://www.efikim.co.uk/ (GPL)
//
// PhpConcept Library - Zip Module 2.5 by Vincent Blavet (LGPL)
//
http://www.phpconcept.net
//
// Thumbnail and Watermarking (v1.48) is based on a class made by Emilio Rodriguez (GPL)
// &amp;lt;
[email protected]&amp;gt;
http://www.phpclasses.org/
//
// Dropshadow (v2.0.0) and Imagemask (v1.0.0) effects are based on work done by Andrew Collington (GPL)
// &amp;lt;
[email protected]&amp;gt;
http://php.amnuts.com/
//
// Slidebox v0.4.1 feature is a based on Slidebox by Olivier Ramonat (LGPL)
// &amp;lt;
[email protected]&amp;gt;
http://olivier.ramonat.free.fr/slidebox/
//
// Lightbox v2.0 feature is based on work of Lokesh Dhakar (Creative Commons Attribution 2.5 License)
// &amp;lt;
[email protected]&amp;gt;
http://www.huddletogether.com/
//
// Slimbox 1.31 (MIT Licence)
// Christophe Beyls (
http://www.digitalia.be)
//
// JonDesign’s SmoothGallery v1.0.1 (GPL)
// &amp;lt;
[email protected]&amp;gt;
http://smoothgallery.jondesign.net/
//
// Miscallaneous code is also contributed by the following people:
// Marc (
http://modxcms.com/forums/index.php?action=profile;u=3024)
// Mark Kaplan (
http://www.modxcms.com/mark-kaplan.html)
// Jason Coward (
http://www.modxcms.com/jason-coward.html)
// Armand Pondman (
http://projects.zerobarrier.nl/modx/)
// Susan Sottwell (
http://www.sottwell.com)
// Nimja (
http://modxcms.com/forums/index.php?action=profile;u=9097)
// Al B (
http://www.e-mediacreation.co.uk)
// Dimitri Hilverda (
http://modxcms.com/forums/index.php?action=profile;u=35)
// Brian Stanback (
http://modxcms.com/forums/index.php?action=profile;u=8967)
//
// Snippet documentation:
// ----------------------
// See the documentation at MODx wiki:
//
http://wiki.modxcms.com/index.php/MaxiGallery
//
///////////////////////////////////////////////////////////////////////////////////////////////////
////// Setting(s)
/////////////////////////////////////////////////////////////////////////////////
//
// Path where the galleries will be stored (you have to create it and make it writeable!)
$path_to_galleries=&amp;quot;assets/galleries/&amp;quot;; // [ path ]
//
// Path where MaxiGallery is installed
define(MAXIGALLERY_PATH, &amp;quot;assets/snippets/maxigallery/&amp;quot;);
//
//include snippet file
$output = &amp;quot;&amp;quot;;
include($modx-&amp;gt;config[’base_path’].MAXIGALLERY_PATH.’maxigallery.php’);
//
///////////////////////////////////////////////////////////////////////////////////////////////////
return $output;
?>
となっております。txtをコピーペーストし、使用しています。
前述のサーバーとは、本当は自分のサーバー名がかかれています(lolipop〜ってなかんじです)
そこを単純に日本語でサーバーというように明記しただけです。まぎらわしくてみんません。
maxigalleryの方にエラーがあるのですか。
うーん。ちょっと私もみてみます。。。
ちなみに、ロリポップサーバーの設定は大丈夫っぽいです。。