Completed

Need php expert with joomla component - repost

This project was successfully completed by sanjibit12 for $15 USD in a day.

Get free quotes for a project like this
Employer working
Completed by:
Skills Required
Project Budget
$10 USD
Completed In
1 day
Total Bids
12
Project Description

This is a very, very SIMPLE job for a php 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 field inside a table. The field is called "comment" and it stores html text.

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 mysql variable "comment" to be loaded, the same way it is already loaded in the description page.

Please, check the file. The file generates a table. In this table I've two 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 used two times the "<?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 (which is in html) to be loaded in the table.

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online