WebsiteBaker 2.13.9 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
[[ShowSection?section=11]]
<div id="sidebar"> <div class="subtabs"> <?php show_menu2(2,0,1); ?>[[ShowSection?section=11]] </div>
/* WebsiteBaker Project <http://www.WebsiteBaker.org/> Copyright (C) 2004-2007, Ryan Djurovich WebsiteBaker 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 2 of the License, or (at your option) any later version. WebsiteBaker 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. You should have received a copy of the GNU General Public License along with WebsiteBaker; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA*/// allows to include optional module files (frontend.css, frontend.js) into the head// allows to include optional module files (frontend.css, frontend.js) into the headif(function_exists('register_frontend_modfiles')) { register_frontend_modfiles('css'); register_frontend_modfiles('js');} if(!defined('WB_URL')) { header('Location: ../index.php'); exit(0);}?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html> <head> <title><?php echo WEBSITE_TITLE; ?> - <?php echo PAGE_TITLE; ?></title> <meta http-equiv="Content-Type" content="text/html; charset=<?php if(defined('DEFAULT_CHARSET')) { echo DEFAULT_CHARSET; } else { echo 'utf-8'; }?>" /> <meta name="description" content="<?php page_description(); ?>" /> <meta name="keywords" content="<?php page_keywords(); ?>" /> <link href="<?php echo TEMPLATE_DIR; ?>/industry.css" rel="stylesheet" type="text/css" media="screen" /> </head> <body> <div id="main"> <a name="top" class="nodisplay"></a> <div id="hero"> </div> <div id="hero2"> </div> <div id="header"> <!-- <div class="gear"> </div> --> <div class="gear"> </div> <?php show_menu(1,0,1,true,'<li><span[class]>[a][menu_title] [/a]</span>','</li>','<ul id="nav">'); ?> <h1 class="shad"><em><?php echo WEBSITE_TITLE; ?></em></h1> <h1><em><?php echo WEBSITE_TITLE; ?></em></h1> </div> <div id="wrapper"> <div id="sidebar"> <div class="subtabs"> <?php show_menu2(2,0,1); ?>[[ShowSection?section=11]] </div> <?php ob_start(); // start output buffer global $database; $limit = 10; $query = "SELECT post_id,title,content_short,group_id,link FROM ".TABLE_PREFIX."mod_news_posts ORDER BY position DESC LIMIT 0, $limit;"; $error = mysql_error(); if (!$result = mysql_query($query)) { print "$error"; exit; } while($data = mysql_fetch_object($result)){ $title = $data->title; $id = $data->post_id; $link = $data->link; $short = $data->content_short; echo '<p><a href="'.WB_URL.'/pages/'.$link.PAGE_EXTENSION.'">'.$title.'</a><br />'.$short.'</p>'; } $foo=ob_get_contents(); // put outputbuffer in $foo ob_end_clean(); // clear outputbuffer ?> </div> <div id=aktuelles> <? if ($foo<>"") { // some code to execute cause there is some block// echo '<h4>Aktuelles</h4>'; echo $foo; } else { // some code for no info echo '<h1>No New News</h1>'; } ?> </div> <div id="content"> <?php page_content(); ?> </div> </div> <div id="footer"> <?php page_footer(); ?><br><br> </div> <div style="clear:both;"></div> </div> </body></html>
[[ExampleDroplet?dir=mydir&width=300&height=200]]
All works fine on local but on my webhost, no pictures are displayed but only the command
DropletsThis tool allows you to manage your local Droplets. (v0.3 - jan 31 2009)
page_id=11
[...] The droplet text is displayed instead of the results. [...]
<?php // ignore this line - it's only for the syntax-colouringglobal $database, $wb;ini_set('display_errors', 1);error_reporting(E_ALL); $get_content = $database->query("SELECT content FROM ".TABLE_PREFIX."mod_wysiwyg WHERE section_id = '".$section."'");/** * Any errors? If so ... we simple returning the err-message from the db */if ( $database->is_error() ) return $database->get_error();/** * No errors but also no result: section_id doesn't match? */if ($get_content->numRows() == 0) return "Sorry - no section_id match for ".$section;/** * No errors and at least one result ... we're taking the first one */$fetch_content = $get_content->fetchRow();$content = $fetch_content['content'];$wb->preprocess($content);return $content;?>
Apache version 1.3.41 (Unix)PHP version 5.2.5MySQL version 5.0.67-communityArchitecture i686Operating system LinuxKernel version 2.6.18-92.1.10.el5
if(file_exists(WB_PATH .'/modules/output_filter/filter-routines.php')) {
if(file_exists(WB_PATH .'/modules/output_filter/filter-routines.php')) { // include the output filter module routines @require_once(WB_PATH .'/modules/output_filter/filter-routines.php'); if(function_exists('filter_frontend_output')) { // store output in variable for filtering @ob_start(); require(WB_PATH.'/templates/'.TEMPLATE.'/index.php'); $frontend_output = ob_get_contents(); @ob_end_clean(); // Display the filtered output on the frontend echo filter_frontend_output($frontend_output); die; }}
Droplet import: SiteModifiedDroplet import: SearchBoxDroplet import: OnelinerDroplet import: SkypeDroplet import: PreviousPageDroplet import: NextPageDroplet import: ParentPageDroplet import: LoremDroplet import: Text2ImageDroplet import: RandomImageDroplet import: LoginBoxDroplet import: ModifiedWhenPatching frontend output filter.......
// run the droplets functionif(file_exists(WB_PATH .'/modules/droplets/droplets.php')) { include_once ( WB_PATH .'/modules/droplets/droplets.php'); $content = evalDroplets($content);}