• Fabrik V4.4.1 is now available.

    This version corrects the Admin issue introduced by V4.4. V4.4.1 is available through the Joomla Updater or for download through your My Downloads area of our website.

    Turns out a code change intended for our 5.0dev branch inadvertantly got pushed to the 4.x branch (by me, duh!). The javascript structure in 5.0 will change considerably and part of that change took effect with the inadvertant code change.

    We have reverted the code change and released 4.4.1. V4.4 has been retracted.

    Sorry for any inconvenience.

  • 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