Changing 'Code run' pop up with php list plugin

uktran

Member
I've looked through most of the threads, but can't find an answer on how to change the 'code run' pop up text, using a php list plugin. Changing the success message doesn't seem to do anything.

I am using a php file, but i've tried using the php code field too with same result

This a condensed version of the code I'm using.

$db = JFactory::getDBO();
$user = JFactory::getUser();
$userid2 = $user->get('id');

$ids = JRequest::getVar( 'ids', array(), 'method', 'array' );
foreach ($ids AS $id) {
$row = $model->getRow($id);
$data = $row->table___data;

$InsertQuery="
INSERT INTO table (data, user) VALUES ('$data', '$userid2' )
";


$db->setQuery($InsertQuery);
$db->query();

}
 
Found it.

http://fabrikar.com/forums/index.php?threads/anatomy-of-a-basic-phptable-plugin.20094/

$msg = JText::_('Changed viewers to Everybody on ' . (int)$count . ' records.');
Create a nice little custom message to be displayed when we are done. Note: if you don't need anything to be returned from the function, like the count I have, you can add some text to the Success Message field in the plugin, otherwise it simply returns Code Run.

$params =& $this->getParams();
We need access to the table params so we can override the success message.

$params->set('table_php_msg', $msg);
Set the message.
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top