Cancelado

Need php expert with joomla component

This is a very, very simple job for a hph expert (10 minutes work, no more).

I need a component to be fixed. I've done the work by myself but I'm not able to load a mysql variable inside a table.

Pay attention: the code is already in the file, since the file I need to be hacked loads two pages. In the first page - a table - I need the field "description" to be loaded as it is already loaded in the description page.

Please, check the file. The file generates a table. In this table I've the columns, please check #306

<td width="25%">

<?php echo $row->authors; ?>

</td>

<td width="25%">

<?php echo $row->authors; ?>

</td>

---

Now, of course I do not want two same columns, but I needed the second "<?php echo $row->authors; ?> " to fill the empty space inside the table.

Now, if you go under, in the part of the code which generates the second page, you will find (#874)

<?php

JPluginHelper::importPlugin('content');

$dispatcher = JDispatcher::getInstance();

positions_bl($params->get('viewdescription'));

$err_state = ini_get('display_errors');

ini_set('display_errors','Off');

$idesc = $book->comment; //load the desc into a variable

$plug_row->text = $idesc; // load the var into plugin_row object

$results = $dispatcher->trigger('onPrepareContent', array (&$plug_row, &$plug_params ), true); //run mambot onPrepareContent on plug_row object

$idesc = $plug_row->text; //get new content from plug_row object to value

echo $idesc; //echo new content out

ini_set('display_errors',$err_state);

?>

This code works perfectly in the second page and loads the field comment of my mysql database.

But, if I put this code in the line #309, I get no result.

Please check pictures.

In other words, I need the description of the book to be loaded in the table. The mysql field is called "comment"

Habilidades: Joomla, MySQL, PHP

Ver mais: component part, component book, book authors needed, book two authors, php expert, dispatcher, php file array, mysql load text, php text array, php table array, load text mysql, php attention, attention php, dispatcher php, php mysql load table, php load table, mysql attention, mysql object, component works, variable mysql, row text php, object mysql, mysql empty database, job dispatcher, joomla php hacked

Acerca do Empregador:
( 37 comentários ) Gallarate, Italy

ID do Projeto: #5107360