Manual

web common functions

  • textpaths - add mp paths to images and files links
  • mp_log - log to system_log

textpaths($text) {#textpaths}

replaces src="/image/..." to src="$MP[pathlang]/image/..." and replaces src="/file/..." to src="$MP[path]/file/..."

{{lang:php}}
echo textpaths($d['text']);

mp_log($module,$action,$tablename,$column,$id,$cdata=Array())

$cdata is optional for storing array (stored serialized)

Try myPortal 2: