Permalink
Browse files

Tested with CMSimple 4.7.3 and CMSimple XH 1.7.2.

  • Loading branch information...
davidstutz committed Jan 6, 2018
1 parent f0528dd commit 1d1fb775df72933f577c6be5d5d309793abb4cd4
Showing with 1,481 additions and 106 deletions.
  1. +1 −1 LICENSE.md
  2. +6 −29 README.md
  3. +7 −2 admin.php
  4. +7 −59 config/config.php
  5. +15 −6 help/help_en.htm
  6. +1 −1 index.php
  7. +1 −1 languages/de.php
  8. +1 −1 languages/en.php
  9. +8 −0 test/cmsimple/4.7.3/content/.htaccess
  10. +86 −0 test/cmsimple/4.7.3/content/20180106_000433_content.php
  11. +165 −0 test/cmsimple/4.7.3/content/20180106_000433_pagedata.php
  12. +86 −0 test/cmsimple/4.7.3/content/20180106_000621_content.php
  13. +165 −0 test/cmsimple/4.7.3/content/20180106_000621_pagedata.php
  14. +86 −0 test/cmsimple/4.7.3/content/20180106_000748_content.php
  15. +165 −0 test/cmsimple/4.7.3/content/20180106_000748_pagedata.php
  16. +200 −0 test/cmsimple/4.7.3/content/content.php
  17. +165 −0 test/cmsimple/4.7.3/content/pagedata.php
  18. +8 −0 test/cmsimple/4.7.3/content/plugins/.htaccess
  19. +1 −0 test/cmsimple/4.7.3/content/plugins/news/news.cf
  20. +2 −0 test/cmsimple/4.7.3/content/plugins/news/news.csv
  21. +1 −0 test/cmsimple/4.7.3/content/plugins/pictures/gallery.cf
  22. +1 −0 test/cmsimple/4.7.3/content/plugins/youtube/gallery.csv
  23. 0 test/{ → cmsimplexh}/1.5.9/content/content.htm
  24. 0 test/{ → cmsimplexh}/1.5.9/content/pagedata.php
  25. 0 test/{ → cmsimplexh}/1.5.9/content/plugins/youtube/test.csv
  26. 0 test/{ → cmsimplexh}/1.6.1/content/content.htm
  27. 0 test/{ → cmsimplexh}/1.6.1/content/plugins/youtube/test.csv
  28. 0 test/{ → cmsimplexh}/1.6.4/content/content.htm
  29. 0 test/{ → cmsimplexh}/1.6.4/content/plugins/youtube/test.csv
  30. 0 test/{ → cmsimplexh}/1.6/content/content.htm
  31. 0 test/{ → cmsimplexh}/1.6/content/plugins/youtube/test.csv
  32. +7 −0 test/cmsimplexh/1.7.2/content/.htaccess
  33. +285 −0 test/cmsimplexh/1.7.2/content/content.htm
  34. +1 −0 test/cmsimplexh/1.7.2/content/plugins/news/news.cf
  35. +2 −0 test/cmsimplexh/1.7.2/content/plugins/news/news.csv
  36. +1 −0 test/cmsimplexh/1.7.2/content/plugins/pictures/gallery.cf
  37. +1 −0 test/cmsimplexh/1.7.2/content/plugins/youtube/gallery.csv
  38. +1 −1 version.nfo
  39. +3 −3 youtube.php
  40. +1 −1 youtube/gallery.php
  41. +1 −1 youtube/video.php
View
@@ -1,4 +1,4 @@
Copyright 2011 - 2014 David Stutz
Copyright 2011 - 2018 David Stutz
The plugin is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
View
@@ -4,7 +4,9 @@ CMSimple Youtube is a CMSimple plugin for creating youtube video galleries.
Project page: [http://davidstutz.de/cmsimple/?Youtube](http://davidstutz.de/cmsimple/?Youtube).
Documentation: [http://davidstutz.github.io/cmsimple-youtube/help/help_en.htm](http://davidstutz.github.io/cmsimple-youtube/help/help_en.htm).
Documentation: [http://davidstutz.de/cmsimplexhdemo/plugins/youtube/help/help_en.htm](http://davidstutz.de/cmsimplexhdemo/plugins/youtube/help/help_en.htm).
Demo: [http://davidstutz.de/cmsimplexhdemo/](http://davidstutz.de/cmsimplexhdemo/)
**Outdated** Sourceforge project: [https://sourceforge.net/projects/cmsimpleyoutube](https://sourceforge.net/projects/cmsimpleyoutube).
@@ -25,38 +27,13 @@ Supports [Hi_updatecheck](http://cmsimple.holgerirmler.de/en/?Plugins:UpdateChec
Also tested on:
* CMSimple XH 1.4.2 and 1.1.4.
* CMSimple XH 1.4.2 (or higher) and 1.1.4.
* CMSimple Realblog 1.5 or higher.
## Changelog
### 1.3.1
* Minor fixes, additional tests for CMSimple XH 1.6.4.
### 1.3.0
**Beta 5.**
* Update to support CMSimple XH 1.6.x.
**Up to Beta 4.**
* Bug fixes, see https://sourceforge.net/p/cmsimpleyoutube/discussion/1774240/thread/1969f728/.
* Video description should support links and special characters.
**Beta 1.**
* Get rid of str_getcsv().
* Migrated from functional programming to object-oriented programming.
* Minor changes concerning HTML entities and special chars.
* Integrated help on some pages.
* Added version.nfo file.
* Added configurable width and height fields for all videos.
* CMSimple 4.7.3.
## License
Copyright 2011 - 2014 David Stutz
Copyright 2011 - 2018 David Stutz
The plugin is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
View
@@ -10,7 +10,7 @@
* @package youtube
* @see http://sourceforge.net/projects/cmsimpleyoutube/
*
* Copyright 2011 - 2014 David Stutz
* Copyright 2011 - 2018 David Stutz
*
* This file is part of the youtube gallery plugin for CMSimple.
*
@@ -29,7 +29,12 @@
if (!class_exists('Youtube')) require dirname(__FILE__) . "/youtube.php";
if (isset($youtube))
if (function_exists('XH_registerStandardPluginMenuItems'))
{
XH_registerStandardPluginMenuItems(true);
}
if ((function_exists('XH_wantsPluginAdministration') AND XH_wantsPluginAdministration('youtube')) OR isset($youtube))
{
/* Make CMSimple global saccessable. */
global $sn,$pth,$plugin,$plugin_tx;
View
@@ -1,62 +1,10 @@
<?php
/* utf8-marker = äöüß */
/**
* @file config.php
* @brief Configuration file.
*
* @author David Stutz
* @version 1.3.0
* @license GPLv3
* @package youtube
* @see http://sourceforge.net/projects/cmsimpleyoutube/
*
* Copyright 2011 - 2014 David Stutz
*
* This file is part of the youtube gallery plugin for CMSimple.
*
* The plugin is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* The plugin is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* See <http://www.gnu.org/licenses/>.
*/
<?php // utf-8 Marker: äöü
/**
* Filepath storing CSV containing videos.
* @warning NOTE: Without '/' at the end!
* @var
*/
$plugin_cf['youtube']['csv_filepath'] = "content/plugins/youtube";
/**
* Delimiter for CSV.
* @var
*/
$plugin_cf['youtube']['csv_delimiter'] = "#";
/**
* Enclosure for CSV.
* @var
*/
$plugin_cf['youtube']['csv_enclosure'] = "\"";
/**
* Date format used in backend.
* @var
*/
$plugin_cf['youtube']['date_format'] = "d.m.Y";
/**
* Default width of a video.
* @var
*/
$plugin_cf['youtube']['video_default_width'] = "420";
/**
* Default height of a video.
* @var
*/
$plugin_cf['youtube']['video_default_height'] = "315";
$plugin_cf['youtube']['csv_filepath']="content/plugins/youtube";
$plugin_cf['youtube']['csv_delimiter']="#";
$plugin_cf['youtube']['csv_enclosure']="\"";
$plugin_cf['youtube']['date_format']="d.m.Y";
$plugin_cf['youtube']['video_default_width']="420";
$plugin_cf['youtube']['video_default_height']="315";
?>
View
@@ -223,7 +223,7 @@ <h2><a name="introduction">Introduction</a><a class="toplink" href="#">Back to t
<h2><a name="version">Version</a><a class="toplink" href="#">Back to top</a></h2>
<p>This is currently version 1.3.1 of the plugin, released 27th October 2014.</p>
<p>This is currently version 1.3.2 of the plugin, released January 6th 2018.</p>
<h2><a name="requirements">Requiremeqnts</a><a class="toplink" href="#">Back to top</a></h2>
@@ -249,13 +249,15 @@ <h3><a name="requirements-cmsimple">Supported CMSimple versions</a><a class="top
<h2><a name="installation">Installation</a><a class="toplink" href="#">Back to top</a></h2>
<p class="notice">Note that in CMSimple 4.7 or later, the CRSF protection needs to be disabled in order change configuration options. This means setting <code>$cf['use']['csrf_protection']="false";</code> in <code>cmsimple/config.php</code>.</p>
<h3><a name="installation-xh">CMSimple XH</a><a class="toplink" href="#">Back to top</a></h3>
<ul>
<li>Download the plugin.</li>
<li>In the <code>plugins</code> folder, create a subfolder called <code>youtube</code>.</li>
<li>Extract the files into the <code>youtube</code> folder.</li>
<li>The plugin stores the galleries in CSV files in /content/plugins/youtube. The folder is created automatically (mostly).This folder needs write and read permissions. The plugin does check this permissions and tries to alter this permissions if needed.</li>
<li>Go into backend and see if the installation is detected correctly.</li>
<li>In the <code>plugins</code> folder, create a subfolder <code>pictures</code>.</li>
<li>Extract the files into the <code>pictures</code> folder.</li>
<li>The plugin stores the gallery configurations in CSV files in /content/plugins/pictures. The folder is created automatically (mostly).This folder needs write and read permissions. The plugin does check this permissions and tries to alter this permissions if needed.</li>
<li>Go into backend and see if the installation is detected correctly. In CMSimple 4.7.3, the plugin needs to be activated in the backend.</li>
</ul>
<h3><a name="installation-other">CMSimple 3.3 and CMSimple LE</a><a class="toplink" href="#">Back to top</a></h3>
@@ -379,7 +381,8 @@ <h3><a name="usage-getting-started">Getting StartedCalling the plugin</a><a clas
<ul>
<li>CMSimple scripting: <b>#CMSimple $o .= youtube('galleryname'); #</b></li>
<li>New CMSimple_XH scripting: <b>{{{PLUGIN:youtube('galleryname');}}}</b></li>
</ul>
<li>CMSimple 4.7 scripting: <b>{{{plugin:news('categoryname', 5);}}}</b> (old CMSimple scripting partly works, as well)</li>
</ul>
<p>The function expects one parameter: A string defining the gallery to show. The string must be the same as the gallery name in backend.</p>
@@ -510,6 +513,12 @@ <h2><a name="changelog">Changelog</a><a class="toplink" href="#">Back to top</a>
<h3><a name="changelog-1-3">Version 1.3</a><a class="toplink" href="#">Back to top</a></h3>
<h4>Version 1.3.2</h4>
<ul>
<li>Tested on CMSimple 4.7.3.</li>
</ul>
<h4>Version 1.3.1</h4>
<ul>
View
@@ -10,7 +10,7 @@
* @package youtube
* @see http://sourceforge.net/projects/cmsimpleyoutube/
*
* Copyright 2011 - 2014 David Stutz
* Copyright 2011 - 2018 David Stutz
*
* This file is part of the youtube gallery plugin for CMSimple.
*
View
@@ -10,7 +10,7 @@
* @package youtube
* @see http://sourceforge.net/projects/cmsimpleyoutube/
*
* Copyright 2011 - 2014 David Stutz
* Copyright 2011 - 2018 David Stutz
*
* This file is part of the youtube gallery plugin for CMSimple.
*
View
@@ -10,7 +10,7 @@
* @package youtube
* @see http://sourceforge.net/projects/cmsimpleyoutube/
*
* Copyright 2011 - 2014 David Stutz
* Copyright 2011 - 2018 David Stutz
*
* This file is part of the youtube gallery plugin for CMSimple.
*
@@ -0,0 +1,8 @@
<IfModule authz_core_module>
Require all denied
</IfModule>
<IfModule !authz_core_module>
order deny,allow
deny from all
</IfModule>
@@ -0,0 +1,86 @@
<?php // utf8-marker = äöü
if(!defined('CMSIMPLE_VERSION') || preg_match('/content.php/i', $_SERVER['SCRIPT_NAME']))
{
die('No direct access');
}
?>
<h1>Overview</h1>
<p>This installation of CMSimple demonstrates a couple of CMSimple plugins using the standard template:</p>
<ul>
<li><a href="http://davidstutz.de/projects/cmsimple-plugins/" target="_blank">CMSimple News</a>, <a href="https://github.com/davidstutz/cmsimple-news" target="_blank">GitHub</a>, <a href="http://davidstutz.de/cmsimpledemo/plugins/news/help/help_en.htm" target="_blank">Documentation</a></li>
<li><a href="http://davidstutz.de/projects/cmsimple-plugins/" target="_blank">CMSimple Pictures</a>, <a href="https://github.com/davidstutz/cmsimple-pictures" target="_blank">GitHub</a>, <a href="" target="_blank">Documentation</a></li>
<li><a href="http://davidstutz.de/projects/cmsimple-plugins/" target="_blank">CMSimple Youtube</a>, <a href="" target="_blank">GitHub</a>, <a href="https://github.com/davidstutz/cmsimple-youtube" target="_blank">Documentation</a></li>
</ul>
<p>See the following subpages:</p>
<h1>News</h1>
<p class="cmsimplecore_warning">All plugin calls are wrapped in three opening and closing braces!</p>
<p>The basic plugin call <code>{plugin:news('news', 5);}</code> (with three opening and closing braces, as detailed in the <a href="" target="_blank">documentation</a>) generates the following list of (up to five) news entries:</p>
{{{plugin:news('news', 5);}}}
<h2>Newscase</h2>
<p>A newscase can be called using <code>{plugin:newscase('News', 'news', '-5 years');}</code>. It only shows news entries from the last five years:</p>
{{{plugin:newscase('News', 'news', '-5 years');}}}
<h2>Newsticker</h2>
<p>The newsticker can be called using <code>{plugin:newsticker('news', 5);}</code>:</p>
{{{plugin:newsticker('news', 5);}}}
<h2>Newsscroller</h2>
<p>The newsscroller can be called using <code>{plugin:newsscroller('news', 5);}</code>:</p>
{{{plugin:newsscroller('news', 5);}}}
<h2>Newsslider</h2>
<p>The newsslider can be called using <code>{plugin:newsslider('news', 5, TRUE);}</code>:</p>
{{{plugin:newsslider('news', 5, TRUE);}}}
<h1>Pictures</h1>
<style type="text/css">
/* Bxslider driver. */
/* Important: No marign and padding on bxslider ul and li. */
.pictures-frontend .pictures-bxslider-driver {
margin: 0 40px;
width: 660px;
}
/* Main window containing the ul (not the controls and pager). */
.pictures-frontend .pictures-bxslider-driver .bx-window {
}
/* Main li. */
.pictures-frontend .pictures-bxslider-driver .bx-window li {
}
/* Previous control. */
.pictures-frontend .pictures-bxslider-driver .bx-prev {
float: left;
position: absolute;
left: -40px;
top: 60px;
}
/* Next control. */
.pictures-frontend .pictures-bxslider-driver .bx-next {
float: right;
position: absolute;
right: -40px;
top: 60px;
}
/* Pager div. */
.pictures-frontend .pictures-bxslider-driver .bx-pager {
margin: .5em auto;
text-align: center;
}
/* Anchors of the pager. */
.pictures-frontend .pictures-bxslider-driver .bx-pager .pager-link {
margin: .5em;
}
/* Active pager link. */
.pictures-frontend .pictures-bxslider-driver .bx-pager .pager-active {
}
</style>
<div>{{{PLUGIN:pictures('gallery', 'table');}}}</div>
<div>{{{PLUGIN:pictures('gallery', 'coinslider');}}}</div>
<div>{{{PLUGIN:pictures('gallery', 'bxslider');}}}</div>
<div>{{{PLUGIN:pictures('gallery', 'bxslider4');}}}</div>
<h1>Youtube</h1>
Oops, something went wrong.

0 comments on commit 1d1fb77

Please sign in to comment.