[pmwiki-users] How to use embed code

Patrick R. Michaud pmichaud at pobox.com
Sun Mar 5 22:34:25 CST 2006

On Sun, Mar 05, 2006 at 09:04:11PM -0500, The Editor wrote:
> I have a similar situation where I need to include a page in my site
> with a button that opens a chat window using the window.open command
> (javascript).  I tried the suggestion of putting it into a markup in
> my config file but it killed my site.  Must be some syntax error. 
> Maybe someone can help me to spot it?
> Markup('chatbox', 'directive',
>      '/\\(:chat://)/',
>      Keep("<input type='button' value=' Chat Now! '
> onclick=/"window.open('http://www.chatzy.com/chatroom','chat','width=675,height=500,resizable=no,scrollbars=no,
> toolbar=no,location=no,directories=no,status=no,menubar=no,
> coyphistory=no')/"/>"));
> I think I must not have escaped the quote marks in the text properly. 

It should be backslashes (\) for the escapes, not slashes (/) .

> By the way, not to ask a dumb question but what language is this? 
> PHP?

Yes, PmWiki is written in PHP.


More information about the pmwiki-users mailing list