• Holiday Schedule

    Your code gophers will be away for the next couple of weeks so support will be sporadic. We should be fully back online by the end of September.

  • A new version of Full Calendar is now available.

    See the details here

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.
 
Back
Top