#1: Post everything you have now (after switching the code I've posted in answer to #2).

#2:

Code:
[color:red]$+([/color][color:blue]$strip([/color]",$logdir,Misc\Notices\,$mkfn($gettok($active,2,160)),.log"),burc)


Should be:

Code:
[color:blue]$strip([/color][color:red]$+([/color]",$logdir,Misc\Notices\,$mkfn($gettok($active,2,160)),.log"),burc)