<div dir="ltr">Actually what I had written before wasn't correct, here is the fixed triad.php<br><br><?php if (!defined('PmWiki')) exit();<br>/*  Copyright 2014 Hans Bracker. <br>    This file is skin.php; part of the Triad skin for pmwiki 2.2.56+<br>    you can redistribute it and/or modify<br>    it under the terms of the GNU General Public License as published<br>    by the Free Software Foundation; either version 2 of the License, or<br>    (at your option) any later version.<br>*/<br>global $FmtPV, $SkinName, $SkinVersionDate, $SkinVersionNum, $SkinVersion, $SkinRecipeName, <br>       $SkinSourceURL, $RecipeInfo;<br><br>$RecipeInfo['TriadSkin']['Version'] = '2023-07-03';<br>$SkinName = 'triad';<br>$SkinVersion = $RecipeInfo['TriadSkin']['Version'];<br>$FmtPV['$SkinName'] = '$GLOBALS["SkinName"]';<br>$FmtPV['$SkinVersion'] = '$GLOBALS["SkinVersion"]';<br><br># for use in conditional markup  (:if enabled TriadSkin:)<br>global $TriadSkin; $TriadSkin = 1; <br><br>global $DefaultColor, $DefaultFont, $DefaultPageWidth, <br>       $EnableStyleOptions, $EnableThemes,<br>       $EnableColorOptions, $EnableFontOptions, $EnablePageWidthOptions,<br>       $EnableGroupTitle, $EnableRightBar, $EnableMarkupShowRight, <br>       $EnableEmptyRightBar, $EnableRightBarToggle, $EnableLeftBarToggle,<br>       $EnableToggleCookies, $EnableViewSwitcher, $EnableFontSizer,$EnablePopupEditForm,<br>       $EnablePmWikiCoreCss, $RightWidth, $LeftWidth, $PageBorder, <br>       $BackgroundImgUrlFmt, $BackgroundColor;<br>       <br># Set default color and font scheme, and default page width style<br># Variables can also be set in config.php<br>SDV($DefaultColor,'lightblue'); # lightblue, silverblue, seagreen, green, gold, choc, white, night, trans<br>SDV($DefaultFont, 'verdana'); # verdana or georgia<br>SDV($DefaultPageWidth, 'wide');  # wide, 800, 1000, 1300 or border <br><br># Default left and right bar width<br>SDV($RightWidth, '170px');<br>SDV($LeftWidth, '170px');<br>SDV($PageBorder, '20px');<br><br># By default style options are enabled, <br># Disable user options by setting $EnableStyleOptions = 0;<br>SDV($EnableStyleOptions, 1);<br># Inidividual option switching can be disabled by type setting any of the following to zero<br># An admin may prefer to have the page width option not changeable<br>SDV($EnableColorOptions, 1);<br>SDV($EnableFontOptions, 1);<br>SDV($EnablePageWidthOptions, 1); <br><br># By default markup (:theme colorname fontname:)is enabled, <br># SDV($EnableThemes, 0); #disables theme display.<br>SDV($EnableThemes, 1);<br><br>## background image & body bg-color (for width other than wide) for transparent color scheme<br>SDV($BackgroundImgUrlFmt, '$SkinDirUrl/images/beach.jpg');<br>SDV($BackgroundColor, '#b9c7d4');<br><br># Enables grouplink in titlebar; set to 0 for no grouplink in titlebar.<br># The group name can also be hidden on pages with markup (:nogroup:)<br>SDV($EnableGroupTitle, 1);<br><br># Enables default rightbar, set to 0 if no right column is needed sitewide<br>SDV($EnableRightBar, 1);<br><br># enable markup (:showright:), which can show RightBar for individual pages, <br># if showing of RightBar is sitewide disabled with switch $EnableRightBar = 0; above.<br>SDV($EnableMarkupShowRight, 1);<br><br># Do not show empty right bar column. Only show RightBar column if RightBar exists. <br># Set to 1 to show empty column when there is no RightBar page. <br>SDV($EnableEmptyRightBar, 0);<br><br># adds rightbar toggle switch to topmenubar to show/hide rightbar<br>SDV($EnableRightBarToggle, 1);<br># adds left sidebar toggle switch to topmenubar to show/hide left sidebar<br>SDV($EnableLeftBarToggle, 1);<br># enable persistent toggle state setting via cookies<br>SDV($EnableToggleCookies, 1);<br><br># add big view  - normal view switcher<br>SDV($EnableViewSwitcher, 1);<br><br># add font sizer, use (:fontsizer:) markup in header or sidebar or where needed<br>SDV($EnableFontSizer, 1);<br><br>## adding  preview popup for edit window<br>SDV($EnablePopupEditForm, 1);<br><br># load pmwiki-core.css instead of default styles in page head<br>SDV($EnablePmWikiCoreCss, 1);<br><br># array lists of available style options<br>global $PageColorList, $PageFontList, $PageWidthList;<br>SDVA($PageColorList, array (<br>        'lightblue' => 'c-lightblue.css',<br>        'silverblue' => 'c-silverblue.css',<br>        'seagreen' => 'c-seagreen.css',<br>        'green' => 'c-green.css',<br>        'gold' => 'c-gold.css',<br>        'choc' => 'c-choc.css',<br>        'white' => 'c-white.css',<br>        'trans' => 'c-transparent.css',<br>        'night' => 'c-night-blue.css',<br>        ));<br>SDVA($PageFontList, array ( <br>        'verdana' => 'font-verdana.css',<br>        'georgia' => 'font-georgia.css',<br>        ));<br>SDVA($PageWidthList, array (<br>        'wide' => 'wide',<br>        '800' => '778',<br>        '1000' => '1024',<br>        '1024' => '1024',<br>        '1280' => '1280',<br>        '1300' => '1280',<br>        'border' => 'border',<br>        ));<br><br># =========== end of configuration section of skin.php ================= # <br><br># compatibility check with pmwiki version number<br>global $VersionNum, $CompatibilityNotice;<br>if($VersionNum < '2001016') <br>   $CompatibilityNotice = "<p style='color:yellow'>Compatibility problem: Please upgrade to the latest pmwiki version</p>";<br><br>global $BodyAttrFmt;<br>SDV($BodyAttrFmt, '');<br><br># pmwiki core styles <br># disable pmwiki default core styles, load from core.css<br>global $HTMLStylesFmt, $PmWikiCoreStylesFmt;<br>if($EnablePmWikiCoreCss==1) { <br># awaiting pmwiki suport for pmwiki-core.css, $PmWikiCoreCss may need update!<br>  global $PmWikiCoreCss;<br>  SDV($PmWikiCoreCss, "pmwiki-core.css");<br>  if(file_exists("$FarmD/pub/css/$PmWikiCoreCss")) SDV($PmWikiCoreStylesFmt, "<br>    <link href='$FarmPubDirUrl/css/$PmWikiCoreCss' rel='stylesheet' type='text/css' />");<br>  else<br>    SDV($PmWikiCoreStylesFmt, "<br>    <link href='$SkinDirUrl/css/pm-core.css' rel='stylesheet' type='text/css' />");<br>  <br>   $HTMLStylesFmt['pmwiki'] = '';<br>   $HTMLStylesFmt['diff'] = '';<br>   $HTMLStylesFmt['simuledit'] = '';<br>   $HTMLStylesFmt['markup'] = '';<br>   $HTMLStylesFmt['urlapprove'] = '';<br>   $HTMLStylesFmt['vardoc'] = '';<br>   $HTMLStylesFmt['wikistyles']= '';<br>}<br><br># check for javascript cookie, set $javascript var for (:if enabled javascript:) switch  <br>global $javascript;<br>if (isset($_COOKIE['javascript'])) $javascript = $_COOKIE['javascript']; <br><br>global $ColorCss, $FontCss, $PageWidth;<br>$sc = $DefaultColor;<br>$sf = $DefaultFont;<br>$sw = $DefaultPageWidth;<br>$ColorCss = $PageColorList[$sc];<br>$FontCss = $PageFontList[$sf];<br>$PageWidth = $PageWidthList[$sw];<br><br># add stylechange.php for cookie setting code if set.<br>if ($EnableStyleOptions == 1) include_once("$SkinDir/stylechange.php");<br><br># sidebar and rightbar width <br>global $HTMLStylesFmt;<br>$HTMLStylesFmt[] = "<br>  #sidebar { width: $LeftWidth; }  <br>  #rightbar { width: $RightWidth; }\n";<br>  <br>## automatic loading of skin default config pages<br>global $WikiLibDirs, $SkinDir;<br>    $where = count($WikiLibDirs);<br>    if ($where>1) $where--;<br>    array_splice($WikiLibDirs, $where, 0, <br>        array(new PageStore("$SkinDir/wikilib.d/\$FullName")));<br>        <br># set default edit form and configuration page<br>global $XLLangs, $PageEditForm, $SiteGroup; <br>SDV($PageEditForm, $SiteGroup.'.Popup-EditForm');<br>XLPage('triad', 'Site.Triad-Configuration' );<br>   array_splice($XLLangs, -1, 0, array_shift($XLLangs)); <br>   <br># popup editform load switch<br>global $ShowHide, $SiteGroup, $HTMLHeaderFmt, $action;<br>if ($action=='edit') {<br>  if($EnablePopupEditForm==1) {<br>    if (!$ShowHide) include_once("$SkinDir/showhide.php");<br>    $HTMLHeaderFmt['popupedit'] = "<br>      <script type='text/javascript'><!--<br>         document.write(\"<link href='$SkinDirUrl/css/popup2edit.css' rel='stylesheet' type='text/css' />\");<br>      --></script><br>      <noscript><br>         <link href='$SkinDirUrl/css/popup2edit-noscript.css' rel='stylesheet' type='text/css' /><br>      </noscript><br>      ";<br>  }<br>  else $HTMLHeaderFmt['popupedit'] = "<br>    <link href='$SkinDirUrl/css/popup2edit-noscript.css' rel='stylesheet' type='text/css' />";<br>} <br><br>   <br># load views script if enabled<br>if($EnableViewSwitcher==1) {<br>    $ViewList['big'] = 'big'; # add 'big' to list of view keywords<br>    SDV($ViewCookie, $CookiePrefix.$SkinName.'_setview');<br>    include_once("$SkinDir/views.php"); # load views script<br>  # set inits for 'big' view <br>    global $FontSizeDefault, $FontSizeIncrement, $RTInit, $LTInit;<br>    if($View=='big') {<br>             $FontSizeDefault = '120'; # base size percentage<br>             $FontSizeIncrement = '10';      # size increment in percent<br>             $RShow = '0';            # no right bar initially<br>             $LShow = '1';            # (0=no) left bar initially<br>    };<br>};<br><br>## adds fontsizer if enabled.<br># Fontsizer action links are inserted by default in Site.PageHeader<br># using markup (:fontsizer:). It could be used in other places, like the SideBar.<br># Remove (:fontsizer:) markup if not wanted.<br>if($EnableFontSizer==1) { include_once("$SkinDir/fontsizer.php");<br>      $HTMLStylesFmt['fontsizer'] = "";}<br><br># set base font size for 'big' view if fontsizer disabled<br>global $HTMLStylesFmt;<br>if($EnableFontSizer==0 && $View=='big') {<br>    $HTMLStylesFmt[] = " body {font-size:150%} "; }<br><br># set TriadSkin as global variable for (:if enable TriadSkin:) markup <br>global $TriadSkin;<br>$TriadSkin = 1;<br><br># add {$PageLogoUrl} to page variables to use on default PageHeader page<br>global $FmtPV;<br>$FmtPV['$PageLogoUrl'] = '$GLOBALS["PageLogoUrl"]';<br><br># do not show topmenu bar if PageTopMenu is empty<br>/*  ===== disabled =====<br>$gtm = FmtPageName('$Group.PageTopMenu',$pagename);<br>$stm = FmtPageName('$SiteGroup.PageTopMenu',$pagename);<br>if (PageExists($gtm)) $page = ReadPage($gtm);<br>if (@$page['text']=='') $nogtm = 1; <br>if (PageExists($stm)) $page = ReadPage($stm);<br>if (@$page['text']=='') $nostm = 1; <br>if (@$nogtm==1 && @$nostm==1){ <br>        SetTmplDisplay('PageTopMenuFmt',0);<br>       };<br>====== ====== */<br><br>## use alternative searchbox markup<br>include_once("$SkinDir/searchbox2.php");<br>  <br><br># PageVariables for group links Cluster support (see Cookbook.Cluster)<br># Support for Cluster and Hg recipe through $Cfn naming the PV function of each recipe <br>$Cfn = array('ClusterPageName','HierarchicalPagenames');<br>foreach($Cfn as $fn) { <br>  if (function_exists($fn)) { <br>    $FmtPV['$PageHeader'] = $fn.'($group, "PageHeader")';<br>    $FmtPV['$TitleBar'] = $fn.'($group, "TitleBar")';<br>    $FmtPV['$PageTopMenu'] = $fn.'($group, "PageTopMenu")';<br>    $FmtPV['$SideBar'] = $fn.'($group, "SideBar")';<br>    $FmtPV['$RightBar'] = $fn.'($group, "RightBar")';<br>    $FmtPV['$PageFootMenu'] = $fn.'($group, "PageFootMenu")';<br>    $FmtPV['$PageFooter'] = $fn.'($group, "PageFooter")';<br>    $FmtPV['$PageSideBarFooter'] = $fn.'($group, "PageSideBarFooter")'; <br>    }<br>}<br> <br>## set var $RBExists if RightBar exists<br>$RBExists = 0; //init<br>if ($EnableRightBar==1 || $EnableMarkupShowRight==1) {<br>  $pageRB = FmtPageName('$FullName-RightBar',$pagename);<br>  if (PageExists($pageRB))  $RBExists = 1;<br>  $clusterRB = FmtPageName('{$RightBar}',$pagename); //used with Cluster or Hg <br>  if (PageExists($clusterRB)) $RBExists = 1;<br>  $groupRB = FmtPageName('$Group.RightBar',$pagename);<br>  if (PageExists($groupRB))  $RBExists = 1;<br>  $siteRB = FmtPageName('$SiteGroup.RightBar',$pagename);<br>  if (PageExists($siteRB))  $RBExists = 1;<br>}<br><br># empty right column logic <br>if ($EnableEmptyRightBar==0 && $RBExists==0) SetTmplDisplay('PageRightFmt',0); <br>if ($EnableEmptyRightBar==1 && $EnableRightBar==1) SetTmplDisplay('PageRightFmt',1); <br><br># disable rightbar logic<br>if (!$EnableRightBar==1) SetTmplDisplay('PageRightFmt',0);<br><br># add left & right bar toggle switches if enabled<br>if($EnableRightBarToggle==1 || $EnableLeftBarToggle==1) {<br>    include_once("$SkinDir/togglebars.php"); }<br><br># changes to extended markup recipe for selflink definition:<br>global $LinkPageSelfFmt;<br>#$LinkPageSelfFmt = "<a class='selflink'>\$LinkText</a>";<br><br># set HTML title<br>global $HTMLTitleFmt, $WikiTitle;<br>$title = PageVar($pagename,'$Title');<br>$group = PageVar($pagename,'$Group');<br>SDV($HTMLTitleFmt, "$WikiTitle - $group - $title");<br><br>// adding switch for 'Pagename-TitleBar' subpage for fancy font titlebars<br>$ftb = FmtPageName('$FullName-TitleBar',$pagename);<br>if(PageExists($ftb))  $HTMLStylesFmt[] = " .titlelink { display:none } \n ";<br><br>##========== Special Markups =============================##<br><br>## markup (:noleft:)<br>function NoLeft2() {<br>    global $LeftToggleFmt;<br>    $LeftToggleFmt = ""; <br>    SetTmplDisplay('PageLeftFmt',0);<br>    return ''; }<br>Markup('noleft','directives','/\\(:noleft:\\)/', <br>    "NoLeft2");<br><br>## markup (:noright:) <br>function NoRight2() {<br>    global $RightToggleFmt;<br>    $RightToggleFmt = ""; <br>    SetTmplDisplay('PageRightFmt',0);<br>    return ''; }<br>Markup('noright','directives','/\\(:noright:\\)/', <br>    "NoRight2");<br><br>## Markup (:showright:) <br>if ($EnableMarkupShowRight==1) {<br>    Markup('showright','directives','/\\(:showright:\\)/',  <br>        "TriadPageRightFmt"); <br>};<br>function TriadPageRightFmt() { SetTmplDisplay('PageRightFmt', 1); }<br><br><br><br>## Markup (:notopmenu:)<br>function NoTopMenu2() {<br>    global $HTMLStylesFmt;<br>    SetTmplDisplay('PageTopMenuFmt',0);<br>    $HTMLStylesFmt[] = "<br>         #header {border-bottom:1px solid #003466}\n ";   <br>    return ''; }<br>Markup('notopmenu','directives','/\\(:notopmenu:\\)/', <br>   "NoTopMenu2");<br><br>## Markup (:nofootmenu:) <br>Markup('nofootmenu','directives','/\\(:nofootmenu:\\)/',<br>  "TriadPageFootMenuFmt");<br>function TriadPageFootMenuFmt() { SetTmplDisplay('PageFootMenuFmt', 0); }<br> <br>  <br>## Markup (:noaction:)<br>function NoAction2() {<br>    global $HTMLStylesFmt;<br>    SetTmplDisplay('PageFootMenuFmt', 0);<br>    SetTmplDisplay('PageTopMenuFmt',0);<br>    $HTMLStylesFmt['noaction'] = "<br>         #header {border-bottom:1px solid #003466}\n ";   <br>    return ''; }<br>Markup('noaction','directives','/\\(:noaction:\\)/',<br>  "NoAction2");<br>  <br>## Markup (:noheader:) <br>Markup('noheader', 'directives', '/\\(:noheader:\\)/',<br>    "MarkupTmplDisplay");<br>    <br>## Markup (:notitle:) <br>Markup('notitle',  'directives', '/\\(:notitle:\\)/',  <br>    "MarkupTmplDisplay");<br>    <br>## Markup (:nogroup:) <br>Markup('nogroup','directives','/\\(:nogroup:\\)/', <br>    "NoGroupTitle");<br>function NoGroupTitle() {<br>    global $HTMLStylesFmt;<br>    $HTMLStylesFmt['nogrouptitle'] = <br>  "  .pagegroup {display:none;} \n ";<br>}<br># display or hide group-link in titlebar.<br>if($EnableGroupTitle==0) NoGroupTitle();<br><br><br>## Markup (:fullpage:)<br>function FullPage() {<br>     SetTmplDisplay('PageHeaderFmt', 0);         <br>     SetTmplDisplay('PageTopMenuFmt',0);<br>     SetTmplDisplay('PageFootMenuFmt', 0);<br>     SetTmplDisplay('PageFooterFmt', 0);    <br>     SetTmplDisplay('PageLeftFmt',0);<br>     SetTmplDisplay('PageRightFmt',0);  <br>     return '';<br>}<br>Markup('fullpage','directives','/\\(:fullpage:\\)/',<br>  "FullPage");<br>  <br>## Markup (:theme colorname fontname:)<br>function SetTheme($m) {<br>   global $ColorCss, $PageColorList, $FontCss, $PageFontList, $PageWidth, $PageWidthList,<br>   $HTMLHeaderFmt, $HTMLStylesFmt,<br>   $SkinDirUrl, $EnableThemes, $BackgroundImgUrlFmt, $BackgroundColor;<br>   $opt = ParseArgs($m[1]);<br>   $opt[''] = (array)@$opt[''];<br>   $sc = (isset($opt['color'])) ? $opt['color'] : array_shift($opt['']);<br>   $sf = (isset($opt['font']))  ? $opt['font']  : array_shift($opt['']);<br>   $sw = (isset($opt['width']))  ? $opt['width']  : array_shift($opt['']);<br>   if (@$PageColorList[$sc]) { <br>      $ColorCss = $PageColorList[$sc];<br>      $HTMLHeaderFmt['skin-color'] = "   <br>   <link href='$SkinDirUrl/css/$ColorCss' rel='stylesheet' type='text/css' media='screen' />";<br>   }<br>   if($sf) {<br>     if (@$PageFontList[$sf]) {<br>       $FontCss = $PageFontList[$sf];};<br>       $HTMLHeaderFmt['skin-font'] = "   <br>   <link href='$SkinDirUrl/css/$FontCss' rel='stylesheet' type='text/css' media='screen' />";<br>   }<br>   if ($sw) {<br>           TriadSetPageWidth($sw);<br>       }<br>   if(isset($opt['background'])) {<br>      $ColorCss = $PageColorList['trans'];<br>      $HTMLHeaderFmt['skin-color'] = "   <br>   <link href='$SkinDirUrl/css/$ColorCss' rel='stylesheet' type='text/css' media='screen' />";<br>     $BackgroundImgUrlFmt = $opt['background'];<br>          if (isset($opt['bgcolor'])) $BackgroundColor = $opt['bgcolor'];<br>     $HTMLHeaderFmt['trans-background'] =  <br>                       "\n  <style type='text/css'><!--".<br>                        "\n        #outer-box { background:url({$BackgroundImgUrlFmt}) fixed; }".<br>                   "\n        body { background-color:{$BackgroundColor}; }". <br>                 "\n  --></style>";<br>        }<br>};<br>if($EnableThemes == 1) {<br>    Markup('theme', 'fulltext',<br>      '/\\(:theme\\s+(.*?)\\s*:\\)/',<br>      "SetTheme"); <br>}<br>else {<br>    Markup('theme', 'fulltext',<br>      '/\\(:theme\\s+(.*?)\\s*:\\)/',<br>      "");<br>};<br>  <br>## add double line horiz rule markup ====<br>Markup('^====','>^->','/^====+/','<:block,1><br>  <hr class="hr-double" />');<br>  <br>## removing header, title for history and uploads windows<br>global $action;<br>if ($action=='diff' || $action=='upload') { <br>          SetTmplDisplay('PageHeaderFmt', 0);<br>           SetTmplDisplay('PageTitleFmt', 0);<br>}<br><br>## alternative Diff (History) form with link in title<br>global $PageDiffFmt, $PageUploadFmt;<br>$PageDiffFmt = "<h3 class='wikiaction'><br>  <a href='\$PageUrl'> \$FullName</a> $[History]</h3><br>  <p>\$DiffMinorFmt - \$DiffSourceFmt - <a href='\$PageUrl'> $[Cancel]</a></p>";<br><br>## alternative Uploads form with link in title <br>$PageUploadFmt = array("<br>  <div id='wikiupload'><br>  <h3 class='wikiaction'>$[Attachments for] <br>  <a href='\$PageUrl'> {\$FullName}</a></h3><br>  <h3>\$UploadResult</h3><br>  <form enctype='multipart/form-data' action='{\$PageUrl}' method='post'><br>  <input type='hidden' name='n' value='{\$FullName}' /><br>  <input type='hidden' name='action' value='postupload' /><br>    <p align='right' style='float:left'>$[File to upload:]<br>    <input name='uploadfile' type='file' size=50 /></p><br>    <p align='right' style='float:left' />$[Name attachment as:]<br>    <input type='text' name='upname' value='\$UploadName' size=25 /><br>    <input type='submit' value=' $[Upload] ' /></p><br>    </form></div><br clear=all />",<br>  'wiki:$[{$SiteGroup}/UploadQuickReference]');<br>  <br><br>## provide backward compatibility for non-relative urls<br>if ($VersionNum < 2001900) <br>      Markup('{*$var}', '<{$var}', '/\\{\\*\\$/', '{$');<br>######<br><br># add skin style css to template<br>global $HTMLHeaderFmt;<br>$HTMLHeaderFmt['skin-layout'] = "<br>   <link href='$SkinDirUrl/css/layout-triad.css' rel='stylesheet' type='text/css' /><br>   <link href='$SkinDirUrl/css/layout-main.css' rel='stylesheet' type='text/css' /><br>   <link href='$SkinDirUrl/css/layout-print.css' rel='stylesheet' type='text/css' media='print' />";  <br>$HTMLHeaderFmt['skin-font'] = "  <br>   <link href='$SkinDirUrl/css/$FontCss' rel='stylesheet' type='text/css' media='screen' />";<br>$HTMLHeaderFmt['skin-color'] = "   <br>   <link href='$SkinDirUrl/css/$ColorCss' rel='stylesheet' type='text/css' media='screen' /><br>   ";<br><br>if ($sc=='trans') {<br> $HTMLHeaderFmt['trans-background'] = " <br>          <style type='text/css'><!--<br>                  #outer-box { background:url({$BackgroundImgUrlFmt}) fixed; }<br>                  body { background-color:{$BackgroundColor}; } \n<br>              --></style><br>  ";<br>}      <br>TriadSetPageWidth($sw);<br><br>function TriadSetPageWidth($sw) {<br>        global $HTMLHeaderFmt, $PageBorder;<br>   # page width layout<br>   if ($sw=='800') { <br>    return $HTMLHeaderFmt['pagewidth'] = " <br>           <style type='text/css'><br>                 body {padding:10px 0;} <br>               #outer-box {width:778px; height:90%;}<br>                 </style><br>                ";<br>      }<br>     if ($sw=='1000'||$sw=='1024') { <br>      return $HTMLHeaderFmt['pagewidth'] = " <br>           <style type='text/css'><br>                 body {padding:10px 0;} <br>               #outer-box {width:1004px; height:100%;}<br>               </style><br>                ";<br>      }<br>     if ($sw=='1300'||$sw=='1280') { <br>      return $HTMLHeaderFmt['pagewidth'] = " <br>           <style type='text/css'><br>                 #outer-box {width:1260px; height:100%;}<br>               </style><br>                ";<br>      }<br>     if ($sw=='border') { <br> return $HTMLHeaderFmt['pagewidth'] = " <br>           <style type='text/css'><br>                 body {padding:$PageBorder;}<br>           </style><br>                ";<br>      }<br>}<br><br>global $EnablePreWrap;<br>SDV($EnablePreWrap, 1);<br># preserve spaces and wrap lines in preformatted text<br>if($EnablePreWrap==1) { <br>  $HTMLHeaderFmt['prewrap'] = "<br>  <style type='text/css'><br>  pre {     white-space: pre-wrap; /* css-3 */<br>    white-space: -moz-pre-wrap; /* Mozilla, since 1999 */<br> white-space: -pre-wrap; /* Opera 4-6 */<br>       white-space: -o-pre-wrap; /* Opera 7 */<br>       *break-word: break-all; /* Internet Explorer 7 */<br>     *white-space: pre;<br>    * html pre { white-space: normal; /* old IE */ }        <br>      </style><br>  ";<br>}<br><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Mo., 3. Juli 2023 um 09:49 Uhr schrieb Piotr Dybczyński <<a href="mailto:piotr@dybczynski.pl">piotr@dybczynski.pl</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
it is (:noheader:) directive, that seems not to work.<br>
<br>
I had to replace<br>
<br>
Markup('noheader','directives','/\\(:noheader:\\)/',<br>
     "SetTmplDisplay('PageHeaderFmt', 0)");<br>
<br>
with<br>
<br>
function TriadNoHeader() { SetTmplDisplay('PageHeaderFmt', 0); }<br>
Markup('noheader','directives','/\\(:noheader:\\)/', "TriadNoHeader");<br>
<br>
<br>
Similar with (:notitle:)<br>
<br>
Regards,<br>
Piotr<br>
<br>
-- <br>
/************************************************************************<br>
                          dr Piotr A. Dybczyński<br>
  homepage: <a href="https://www.dybczynski.pl/Piotr" rel="noreferrer" target="_blank">https://www.dybczynski.pl/Piotr</a>   e-mail: <a href="mailto:piotr@dybczynski.pl" target="_blank">piotr@dybczynski.pl</a><br>
******************************************************************PAD***/<br>
<br>
W dniu 2.07.2023 o 21:22, Gregor Klarič pisze:<br>
> When I take the latest pmiki version, the sample config file and set <br>
> triad as the skin to use, I get a normal page with the triad skin as <br>
> seen at <a href="https://www.pmwiki.org/wiki/Skins/Triad" rel="noreferrer" target="_blank">https://www.pmwiki.org/wiki/Skins/Triad</a> <br>
> <<a href="https://www.pmwiki.org/wiki/Skins/Triad" rel="noreferrer" target="_blank">https://www.pmwiki.org/wiki/Skins/Triad</a>><br>
> Perhaps there are some other modifications loaded or there are some <br>
> settings in the config.php which cause this?<br>
> <br>
> Kind Regards,<br>
> Gregor<br>
> <br>
> Am So., 2. Juli 2023 um 14:25 Uhr schrieb Piotr Dybczyński <br>
> <<a href="mailto:piotr@dybczynski.pl" target="_blank">piotr@dybczynski.pl</a> <mailto:<a href="mailto:piotr@dybczynski.pl" target="_blank">piotr@dybczynski.pl</a>>>:<br>
> <br>
>     Hi,<br>
> <br>
>     I am working in upgrading all my numerous PmWiki instalations to work<br>
>     under Debian 12 with PHP 8.2 and found several problems.<br>
> <br>
> <br>
> <br>
>     When I start editing a page using PmWiki 2.3.24 and the Triad skin<br>
>     Version = 2023-02-24 without any cookbook allowed:<br>
> <br>
>     instead of header and title section being removed I see over the<br>
>     editing<br>
>     area:<br>
> <br>
>     SetTmplDisplay('PageHeaderFmt', 0)SetTmplDisplay('PageTitleFmt', 0)<br>
> <br>
>     Could you help in correcting this?<br>
> <br>
>     All the best,<br>
>     Piotr<br>
>     -- <br>
>     /************************************************************************<br>
>                                dr Piotr A. Dybczyński<br>
>        homepage: <a href="https://www.dybczynski.pl/Piotr" rel="noreferrer" target="_blank">https://www.dybczynski.pl/Piotr</a><br>
>     <<a href="https://www.dybczynski.pl/Piotr" rel="noreferrer" target="_blank">https://www.dybczynski.pl/Piotr</a>>   e-mail: <a href="mailto:piotr@dybczynski.pl" target="_blank">piotr@dybczynski.pl</a><br>
>     <mailto:<a href="mailto:piotr@dybczynski.pl" target="_blank">piotr@dybczynski.pl</a>><br>
>     ******************************************************************PAD***/<br>
> <br>
>     _______________________________________________<br>
>     pmwiki-users mailing list<br>
>     <a href="mailto:pmwiki-users@pmichaud.com" target="_blank">pmwiki-users@pmichaud.com</a> <mailto:<a href="mailto:pmwiki-users@pmichaud.com" target="_blank">pmwiki-users@pmichaud.com</a>><br>
>     <a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" rel="noreferrer" target="_blank">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br>
>     <<a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" rel="noreferrer" target="_blank">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a>><br>
> <br>
</blockquote></div>