Strict Standards: Declaration of action_plugin_dlcount::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/dlcount/action.php on line 14

Strict Standards: Declaration of action_plugin_indexmenu::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/indexmenu/action.php on line 169

Strict Standards: Declaration of action_plugin_ipban::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/ipban/action.php on line 67

Strict Standards: Declaration of action_plugin_loglog::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/loglog/action.php on line 82

Strict Standards: Declaration of action_plugin_navi::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/navi/action.php on line 46

Strict Standards: Declaration of action_plugin_uparrow::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/uparrow/action.php on line 69

Strict Standards: Declaration of action_plugin_userspagecreate::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/userspagecreate/action.php on line 97

Strict Standards: Declaration of cache_instructions::retrieveCache() should be compatible with cache::retrieveCache($clean = true) in /home/www/wiki/inc/cache.php on line 289

Warning: Cannot modify header information - headers already sent by (output started at /home/www/wiki/lib/plugins/dlcount/action.php:14) in /home/www/wiki/inc/auth.php on line 312

Strict Standards: Only variables should be passed by reference in /home/www/wiki/doku.php on line 71

Warning: Cannot modify header information - headers already sent by (output started at /home/www/wiki/lib/plugins/dlcount/action.php:14) in /home/www/wiki/inc/actions.php on line 154
Containing of php-file/-variables [phpwcms-HowTo:wiki]

Strict Standards: Declaration of syntax_plugin_code::render() should be compatible with DokuWiki_Syntax_Plugin::render($format, &$renderer, $data) in /home/www/wiki/lib/plugins/code/syntax.php on line 41

Strict Standards: Declaration of syntax_plugin_tip::render() should be compatible with DokuWiki_Syntax_Plugin::render($format, &$renderer, $data) in /home/www/wiki/lib/plugins/tip/syntax.php on line 38

Containing of php-file/-variables

By the example Frontpage slideshow http://www.joomlaworks.gr/

Forum: http://forum.phpwcms.org/viewtopic.php?p=109397#p109397

Put on a new script into template/more inc_script/frontend_render, e.g. frontpageslideshow.php

Example

<?php
 
// Replacement Tag {FPSS}
if(strpos($content['all'], '{FPSS}')) {
 
initMootools();
 
// START of "Frontpage Slideshow" settings
ob_start();
 
   $nameOfSlideshowToDisplay = "demoslideshow";                // Enter the name of your slideshow. Slideshows are in folders inside /fpss/slideshows/.
   $URLofyoursite = rtrim(PHPWCMS_URL, '/');                   // Enter your site's URL.
   $AbsoluteServerPathofyoursite = rtrim(PHPWCMS_ROOT, '/');      // Enter the root path of your site on the server.
 
   $target = ''; // So eine schlechtes Script
 
   // do not edit below this line
   include_once($AbsoluteServerPathofyoursite."/fpss/mod_fpslideshow.php");
 
$FPSS = ob_get_contents();
 
$content['all'] = str_replace('{FPSS}', $FPSS, $content['all']);
 
ob_end_clean();
 
// END of "Frontpage Slideshow" settings
 
}
?>

Importantly! Look to it that during configuration MooTools is contained in the system already actually. That can lead thus to problems. Do not mix jQuery with MooTools! Possibly switch to off the javascript jQuery/MooTools in the configuration.

At the slideshow configuration thus the following is meaningful:

// --- Slideshow engine settings --- //
$engine = "mootools";
$disablelib = 1;
$optimizejs = 0;

Put the fpss folder into the normal phpwcms root.

Since v1.4.4_r381 we can´t use the calling initMootools();. New calling: initJSLib();
Have a look: Init Mootools Library since_v1.4.4_r381

english/technics/contain-php-file-variables.txt · Last modified: 2010/02/13 12:35 by Knut Heermann (flip-flop)
www.planmatrix.de www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0

Strict Standards: Only variables should be passed by reference in /home/www/wiki/doku.php on line 79