How can we include an image pushed by a script (like a counter) in a wiki page?


Two ways: the safe one and the quick one :)



That simply adds a new, bogus parameter to the GET part of the URL and fools the wiki parser into seeing images.


However, some scripts may be picky about what parameters they will accept. In that case, create a special markup in local/config.php for each kind of script-generated image - see example for (:sf:) below:

Markup('sf', 'directives', '/\\(:sf:\\)/e',"Keep(\"<img

Notes and Comments

Seems to me this question is answered adequately (and more completely) in the Notes section of Images
TonyColley July 24, 2006, at 10:45 AM

2005-04-10 newmy Thank you for this posting. I just want to give my googlesearch markup back to the community. Here it is:

Markup('googlesearch', 'directives', '/\\(:googlesearch:\\)/e',"Keep(\"
<FORM method=GET action=''>
<A HREF=''>
<IMG SRC='' border='0'
ALT='Google' align='absmiddle'></A>
<INPUT TYPE=text name=q size=20 maxlength=255 value=''>
<INPUT TYPE=hidden name=hl value=de>
<INPUT type=submit name=btnG VALUE='Google Search'>

See Also


  • Pierre Rouzeau
  • Pm

Category: Images