tc_file unserialize failed: unserialize(): Error at offset 0 of 2531100 bytes - D:\Home\KiwiWiki\pmwiki\cookbook\totalcounter.php - line 642
Kiwi wiki | Test / Total Counter
Recent Changes - Search:

add Test page

hide Test

Test


hide Topics

Topics

show Changed

Changed

Visitor's book Site map pmwiki-2.4.5

Total Counter

MessagesReplacement version 2024-09-16new

Testing the Cookbook:TotalCounter recipe

TotalCounter version 2025-01-22

* total {$TotalCount}
* page {$PageCount}
* [[{$FullName}?action=totalcounter | Click here for TotalCounter usage statistics]]
* [[{$FullName}?action=totalcountercheck | Click here for TotalCounter stat file check]]

TotalCounter

No data

example
||{$TotalCount}:           ||[={$TotalCount}=]           ||total pages visited 
||{$PageCount}:            ||[={$PageCount}=]            ||current page views. This is the same that is used by the SimplePageCounter, so an upgrade to TotalCounter is not possible without changing the markup (but will lose old counts). 
||{$PageViews}:            ||[={$PageViews}=]            ||gives the page views of the page MyPage. Can also be used in pagelist templates. 
||{$TotalCounterVersion}:  ||[={$TotalCounterVersion}=]  ||displays the current version 
||{$TotalCounterMaxItems}: ||[={$TotalCounterMaxItems}=] ||displays the maximum count of items displayed for each chart 
||{$PageCountToday}:       ||[={$PageCountToday}=]       ||displays the count of pages visited today
:{$TotalCount}total pages visited
:{$PageCount}current page views. This is the same that is used by the SimplePageCounter, so an upgrade to TotalCounter is not possible without changing the markup (but will lose old counts).
:{$PageViews}gives the page views of the page MyPage. Can also be used in pagelist templates.
2025-01-22:{$TotalCounterVersion}displays the current version
:{$TotalCounterMaxItems}displays the maximum count of items displayed for each chart
:{$PageCountToday}displays the count of pages visited today

(:pagelist group=Test,TestExtensions count=4 order=-{$PageCount} thevar="{$PageCount}" fmt=#tc-pc list=all:)
PageCounter""
Test.AddPhoto#=
Test.ApproveSites#=
Test.AttachlistEnhanced#=
Test.Attachments#=
(:pagelist group=Test,TestExtensions count=4 order=-{$TotalCount} thevar="{$TotalCount}" fmt=#tc-tc list=all:)
TotalCount""
Test.AddPhoto#=
Test.ApproveSites#=
Test.AttachlistEnhanced#=
Test.Attachments#=
(:pagelist group=Test,TestExtensions name=Testt*,To* count=4 order=-{$PageViews} thevar={$PageViews} fmt=#tc-pv list=all:)
PageViews""
Test.TotalCounter#=
(:pagelist group=Test,TestExtensions name=Testt*,To* count=4 order=-{$PageCountToday} thevar='{$PageCountToday}' fmt=#tc-pct list=all:)
PageCountToday""
Test.Testtest#=
Test.Toggle#=
Test.TotalCounter#=
>>comment<<
[[#tc-pc]]
(:template first:)
||!PageCounter ||!"{$$thevar}" ||
(:template each:)
||[-{=$Group}.-]{=$Name} ||#={=$PageCount} ||
[[#tc-pcend]]

[[#tc-tc]]
(:template first:)
||!TotalCount ||!"{$$thevar}" ||
(:template each:)
||[-{=$Group}.-]{=$Name} ||#={=$TotalCount} ||
[[#tc-tcend]]

[[#tc-pv]]
(:template first:)
||!PageViews ||!"{$$thevar}" ||
(:template each:)
||[-{=$Group}.-]{=$Name} ||#={=$PageViews} ||
[[#tc-pvend]]

[[#tc-pct]]
(:template first:)
||!PageCountToday ||!"{$$thevar}" ||
(:template each:)
||[-{=$Group}.-]{=$Name} ||#={=$PageCountToday} ||
[[#tc-pctend]]
>><<

(:template first:)

PageCounter"{$$thevar}"

(:template each:)

{=$Group}.{=$Name}#={=$PageCount}

(:template first:)

TotalCount"{$$thevar}"

(:template each:)

{=$Group}.{=$Name}#={=$TotalCount}

(:template first:)

PageViews"{$$thevar}"

(:template each:)

{=$Group}.{=$Name}#={=$PageViews}

(:template first:)

PageCountToday"{$$thevar}"

(:template each:)

{=$Group}.{=$Name}#={=$PageCountToday}


Messages

autotelnew\autotelnew

autotelnew\autotelnew


D:\Home\KiwiWiki\pmwiki\cookbook\autotelnew.php: 2024-04-10new
defaults: +64; 4; 0
ignorePrefix: "(?:(?<![:=#0-9"'\]\)])|(?<![0-9\)]\s))"
ignoreSuffix: (?!\s?[0-9])
visualSeparatorVal: \s|[-]|\&nbsp;|\&\#8209;
visualSeparator: (?:\s|[-]|\&nbsp;|\&\#8209;)
openParen: [\(]?
closParen: (?:[\)]|[\)]?(?:\s|[-]|\&nbsp;|\&\#8209;) )
countryCode: (\+\d{1,3})
countryCodeSep: (?:(\+\d{1,3}) (?:\s|[-]|\&nbsp;|\&\#8209;) ? )
areaCodeMobl: ((?:[\(]0?\d{2}[\)] | [\(]? 0?\d{2}(?:[\)]|[\)]?(?:\s|[-]|\&nbsp;|\&\#8209;) ) ) (?:\s|[-]|\&nbsp;|\&\#8209;) ?)
areaCodeLand: ((?:[\(]0?\d{1}[\)] | [\(]? 0\d{1}(?:[\)]|[\)]?(?:\s|[-]|\&nbsp;|\&\#8209;) ) ) (?:\s|[-]|\&nbsp;|\&\#8209;) ?)
serviceCode: (0[58]\d{2,2})
subscriberNumberMobile: (\d{3}(?:\s|[-]|\&nbsp;|\&\#8209;) \d{5}|\d{3,4}(?:\s|[-]|\&nbsp;|\&\#8209;) \d{3,4})
subscriberNumberLand: (\d{3}(?:\s|[-]|\&nbsp;|\&\#8209;) \d{4}|\d{4}(?:\s|[-]|\&nbsp;|\&\#8209;) \d{3})
srve: /(?:(?<![:=#0-9"'\]\)])|(?<![0-9\)]\s))[\(]? (0[58]\d{2,2}) (?:[\)]|[\)]?(?:\s|[-]|\&nbsp;|\&\#8209;) ) (\d{3}(?:\s|[-]|\&nbsp;|\&\#8209;) \d{5}|\d{3,4}(?:\s|[-]|\&nbsp;|\&\#8209;) \d{3,4}) (?!\s?[0-9])/xi
mobl: /(?:(?<![:=#0-9"'\]\)])|(?<![0-9\)]\s))(?:(\+\d{1,3}) (?:\s|[-]|\&nbsp;|\&\#8209;) ? ) ? ((?:[\(]0?\d{2}[\)] | [\(]? 0?\d{2}(?:[\)]|[\)]?(?:\s|[-]|\&nbsp;|\&\#8209;) ) ) (?:\s|[-]|\&nbsp;|\&\#8209;) ?) (\d{3}(?:\s|[-]|\&nbsp;|\&\#8209;) \d{5}|\d{3,4}(?:\s|[-]|\&nbsp;|\&\#8209;) \d{3,4}) (?!\s?[0-9])/xi
land: /(?:(?<![:=#0-9"'\]\)])|(?<![0-9\)]\s))(?:(?:(\+\d{1,3}) (?:\s|[-]|\&nbsp;|\&\#8209;) ? ) ? ((?:[\(]0?\d{1}[\)] | [\(]? 0\d{1}(?:[\)]|[\)]?(?:\s|[-]|\&nbsp;|\&\#8209;) ) ) (?:\s|[-]|\&nbsp;|\&\#8209;) ?) )? (\d{3}(?:\s|[-]|\&nbsp;|\&\#8209;) \d{4}|\d{4}(?:\s|[-]|\&nbsp;|\&\#8209;) \d{3}) (?!\s?[0-9])/xi
totalcounter\totalcounter

totalcounter\totalcounter

D:\Home\KiwiWiki\pmwiki\cookbook\totalcounter.php: 2025-01-22 using "wiki.d" with action=browse, log=1, IP lookup: 1

tc_file unserialize failed: unserialize(): Error at offset 0 of 2531100 bytes - D:\Home\KiwiWiki\pmwiki\cookbook\totalcounter.php - line 642

\nztoponew\nztoponew

\nztoponew\nztoponew


D:\Home\KiwiWiki\pmwiki\cookbook\nztoponew.php
: '2024-04-10new'

markup: '/\(:nztopo\s+?((?:ll=[+-]?\d{1,2}[.]\d+[,][+-]?[1]?\d{1,2}[.]\d+)|(?:llbs=[+-]?\d{1,2}[.]\d+[,][+-]?[1]?\d{1,2}[.]\d+(?:[;][+-]?\d{1,2}[.]\d+[,][+-]?[1]?\d{1,2}[.]\d+)+)|(?:kml=(?:(?<q1>\'|\")(?:https?:\/\/.*)\k<q1>|(?<q2>\'|\"|)(?:(?:[-~,[:alnum:]\x80-\xfe]+(?:\.|\/)){0,2}[-\w\.\, !=\+\#\x80-\xfe]+\.kml)\k<q2>|https?:\/\/[^\s]*))|(?:gpx=(?:(?<q6>\'|\"|)(?:(?:[-~,[:alnum:]\x80-\xfe]+(?:\.|\/)){0,2}[-\w\.\, !=\+\#\x80-\xfe]+\.gpx)\k<q6>|(?<q7>\'|\")(?:https?:\/\/.*)\k<q7>|https?:\/\/[^\s]*))|(?:nzne=\d{7}(?:[.]\d{0,3})?[,]\d{7}(?:[.]\d{0,3})?)|(?:nzbs=\d{7}(?:[.]\d{0,3})?[,]\d{7}(?:[.]\d{0,3})?(?:[;]\d{7}(?:[.]\d{0,3})?[,]\d{7}(?:[.]\d{0,3})?)+)|(?:mapref=(?<q8>\'|\"|)(?:[ABC][A-Z][0-4]\d[ ]?\d{6})\k<q8>)|(?:kml2=(?:(?<q3>\'|\")(?:https?:\/\/.*)\k<q3>|https?:\/\/[^\s]*))|(?:kml3=(?:(?<q4>\'|\")(?:https?:\/\/.*)\k<q4>|https?:\/\/[^\s]*))|(?:kml4=(?:(?<q5>\'|\")(?:https?:\/\/.*)\k<q5>|https?:\/\/[^\s]*)))\s*?(?:(height=\d{1,5}(?:px)?)\s*|(width=\d{1,5}(?:px)?)\s*|(pin=[01])\s*|(label=(?<q9>\'|\")(?:.+?)\k<q9>)\s*|(zoom=\d{1,2})\s*|(float=(?:left|right))\s*|(clear=(?:left|right|both))\s*){0,7}\s*?(?:(caption=(?<q10>\'|\")(?:.+?)\k<q10>)\s*){0,1}\s*?:\)/i'

chordpronew

chordpronew

D:\Home\KiwiWiki\pmwiki\cookbook\chordpronew.php: '2022-12-01new'

simplerecipenew\simplerecipe

simplerecipenew\simplerecipe


nzdocnew

nzdocnew


D:\Home\KiwiWiki\pmwiki\cookbook\nzdocnew.php
: '2025-05-13new'


markup: '/\(:nzdoc\s*(?:(?:(id=(?:[0-9]{9}|[0-9\-a-f]{36}|(?:NZ|DOC)-[a-z]{3}|[\\&\&#8217;'\(\)\.\-\/a-z&#257;&#275;&#299;&#333;&#363;]+))|(type=(?<q1>\'|\"|)(?:hut|track|campsite)\k<q1>)|(content=(?:alert|detail|region|all|dump|check|find|list))|(show=alert(s)?; #(?:[a-z]+,)*[a-z]+))\s*){1,4}(?:(?:(h=[12345])|(float=(?:left|right))|(clear=(?:left|right|both)))\s*){0,4}\s*:\)/i'

return: 'NZDoCnew'

pmwikiplus

pmwikiplus


D:\Home\KiwiWiki\pmwiki\extensions\PmWikiPlus\PmWikiPlus.php= 2024-08-19
confPmWikiPlus[debugPmWikiPlus]= true
confPmWikiPlus[=dir]= D:\Home\KiwiWiki\pmwiki\extensions/PmWikiPlus
confPmWikiPlus[=url]= https://kiwiwiki.nz/pmwiki/extensions/PmWikiPlus
confPmWikiPlus[enableCREOL]= false
confPmWikiPlus[enableDBRCH]= true
confPmWikiPlus[enableDDMUP]= true
confPmWikiPlus[enableDOBML]= true
confPmWikiPlus[enableEDHLP]= false
confPmWikiPlus[enableFIXUR]= true
confPmWikiPlus[enableLOCTM]= true
confPmWikiPlus[enableNSAVW]= true
confPmWikiPlus[enablePMFRM]= false
confPmWikiPlus[enablePMSYN]= true
confPmWikiPlus[enablePVCHA]= false
confPmWikiPlus[enableRFCNT]= false
confPmWikiPlus[enableRWSPN]= false
confPmWikiPlus[enableSKNCH]= false
confPmWikiPlus[enableSRTBL]= false
confPmWikiPlus[enableURLAP]= false
confPmWikiPlus[enableWFATM]= false
confPmWikiPlus[enableWFDC]= false
confPmWikiPlus[enableWFRDF]= false
confPmWikiPlus[enableWFRSS]= false
confPmWikiPlus[muAtch]= true
confPmWikiPlus[muBrk]= true
confPmWikiPlus[muBrkCL]= true
confPmWikiPlus[muBrkCR]= true
confPmWikiPlus[muLnBold]= true
confPmWikiPlus[muLnItalic]= true
confPmWikiPlus[setBLKLST]= true
confPmWikiPlus[setBLKWHY]= true
confPmWikiPlus[setCOPYCD]= false
confPmWikiPlus[setGUIBTN]= true
confPmWikiPlus[setMRGLME]= false
param= enableCREOL $ EnableCreole             not changed to ""
global= enableDBRCH $ EnableRCDiffBytes        is already enabled (1)
global= enableDDMUP $ EnableUploadDrop         set to "1"
global= enableDOBML $ LinkFunctions            is already enabled (ObfuscateLinkIMap)
param= enableEDHLP $ EnableEditAutoText       not changed to "1"
global= enableFIXUR $ EnableGuiEditFixUrl      is already enabled (2000)
global= enableLOCTM $ EnableLocalTimes         is already enabled (1)
global= enableNSAVW $ EnableNotSavedWarning    is already enabled (1)
param= enablePMFRM $ EnablePmForm             not changed to ""
global= enablePMSYN $ EnablePmSyntax           is already enabled (2)
param= enablePVCHA $ EnablePreviewChanges     not changed to "1"
param= enableRFCNT $ EnableRefCount           not changed to ""
param= enableRWSPN $ EnableSimpleTableRowspan not changed to "1"
param= enableSKNCH $ EnableAutoSkinList       not changed to "1"
param= enableSRTBL $ EnableSortable           not changed to "1"
param= enableURLAP $ EnableUrlApprove         not changed to ""
param= enableWFATM $ EnableFeeds atom         not changed to ""
param= enableWFDC $ EnableFeeds dc           not changed to ""
param= enableWFRDF $ EnableFeeds rdf          not changed to ""
param= enableWFRSS $ EnableFeeds rss          not changed to ""
global= setBLKLST  $ EnableBlocklist          is already enabled (10)
global= setBLKWHY  $ EnableWhyBlocked         is already enabled (1)
param= setCOPYCD  $ EnableCopyCode           not changed to "1"
global= setGUIBTN  $ EnableGUIButtons         is already enabled (1)
param= setMRGLME  $ EnableMergeLastMinorEdit not changed to "1"
markup= muAtch     Attach     configured
markup= muBrk      [[\\]]     configured
markup= muBrkCL    [[<]]      configured
markup= muBrkCR    [[>]]      configured
markup= muLnBold   '* *'      configured
markup= muLnItalic '~ ~'      configured
messagesreplacementnew

messagesreplacementnew


= D:\Home\KiwiWiki\pmwiki\extensions\MessagesReplacementnew\MessagesReplacementnew.php 2024-09-16new
confMessagesReplacement[MessagesReplacementDebug]= off
confMessagesReplacement[MessagesReplacementHeading]= on
confMessagesReplacement[MessagesReplacementDetail]= hide
confMessagesReplacement[=dir]= D:\Home\KiwiWiki\pmwiki\extensions/MessagesReplacementnew
confMessagesReplacement[=url]= https://kiwiwiki.nz/pmwiki/extensions/MessagesReplacementnew
kwtlquestionvars.php

kwtlquestionvars.php

<hr>D:\Home\KiwiWiki\pmwiki\extensions\KWTLQuestionVars\KWTLQuestionVars.php: '2025-02-20'
conf[]: akey: debugKWTLQuestionVars, =dir, =url, KWTLQuestionVarsHidden
Array ( [debugKWTLQuestionVars] => true [=dir] => D:\Home\KiwiWiki\pmwiki\extensions/KWTLQuestionVars [=url] => https://kiwiwiki.nz/pmwiki/extensions/KWTLQuestionVars [KWTLQuestionVarsHidden] => hidden )

pmwikiinfo.php

pmwikiinfo.php

<hr>D:\Home\KiwiWiki\pmwiki\extensions\PmWikiInfo\PmWikiInfo.php: '2024-11-05'
conf[]: akey: debugKWTLQuestionVars, debugPmWikiInfo, stylesPmWikiInfo, =dir, =url
Array ( [debugKWTLQuestionVars] => [debugPmWikiInfo] => false [stylesPmWikiInfo] => [=dir] => D:\Home\KiwiWiki\pmwiki\extensions/PmWikiInfo [=url] => https://kiwiwiki.nz/pmwiki/extensions/PmWikiInfo )

PmWiki Info markup: '/\(:pmwikiinfo(.*)?:\)/i'
pmwikiinfo\pmwikiinfo_directive()

pmwikiinfo\pmwikiinfo_directive()

<hr>: 'PmWikiInfo'
m[]: akey: 0, 1
Array ( [0] => (:pmwikiinfo display='totalcounter':) [1] => display='totalcounter' )

args[]: akey: #, display
Array ( [#] => Array ( [0] => display [1] => totalcounter ) [display] => totalcounter )

tahi Page last modified on 2025 Jan 07 14:49

Edit - History - Recent Changes - WikiHelp - Search - email page as link -> mailto:?Subject="KiwiWiki: Total Counter"&Body=