[pmwiki-users] PopupWindow cookbook

Piotr Dybczynski dybol at apollo.astro.amu.edu.pl
Sun Apr 10 12:51:08 CDT 2016


Hi,

is there anybody who can help me in modifying PopupWindow cookbook to stop
generating numerous "Deprecated: preg_replace()" PHP warnings?
I am not a PHP coder.

Offending lines are:

Markup('popwin1','<links','/%popwin\\s*(.*?)%\\[\\[(.*?)\\]\\]/e',
   "PopupWindow(\$pagename, PSS('$1'), PSS('$2'),NULL,'')");

Markup('popwin2','<popwin1',
   "/%popwin\\s*(.*?)%(?>\\[\\[([^|\\]]*)\\|\\s*)(.*?)\\s*\\]\\]($SuffixPattern)/e",
   "PopupWindow(\$pagename,PSS('$1'),PSS('$2'),PSS('$3'),'$4')");

Markup('popclose','directives','/\\(:popclose\\s*(.*?):\\)/e',
        "PopCloseMarkup(\$pagename, PSS('$1'))");

Thanks in advance,
PAD

/****************************************************************************
  Dr Piotr A. Dybczynski,   Astronomical Observatory, A.Mickiewicz University
  Sloneczna 36,60-286 Poznan,POLAND,tel+48.61.8292784,e-mail: dybol at amu.edu.pl
**********************************************************************PAD***/



More information about the pmwiki-users mailing list