Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-08-15 15:36:56

planeth
Plugin Author
From: Nantes, France
Registered: 2009-03-19
Posts: 237
Website GitHub Mastodon

how to send_script_response ?

Hi everybody,

I am following Jukka example to fire an error message on article_posted event.
The message and javascript are issued all-right but every thing get spit out in htmlentities. So what is displayed is the code of the page :(

I changed the theme for the classic but still the same.

Thanks for any explanation !

Offline

#2 2012-08-23 15:04:56

planeth
Plugin Author
From: Nantes, France
Registered: 2009-03-19
Posts: 237
Website GitHub Mastodon

Re: how to send_script_response ?

What works is :
echo $theme->announce(array(gTxt('author_already_exists', array('{name}' => $username)), E_WARNING), true);

Offline

Board footer

Powered by FluxBB