Writing a Joomla 1.5 Content Plugin (1 viewing) 1 Guest
|
TOPIC: Writing a Joomla 1.5 Content Plugin
|
|
|
|
final part 7 Months ago
|
|
|
$href="javascript:calculator('" . $values[0] . "', '" . $values[1] . "');";
if ($print) {
$row->text = preg_replace( '{'. $match .'}', $href, $row->text );
}
This builds a string from the values we've parsed out and then replaces the occurances of {calc xyz} in the article text ($row->text).
return true;
Once all of our processing is done we return "true" to tell Joomla everything we've done worked and we've received no errors.
|
|
|
|
Logged
|
|
|
The administrator has disabled public write access.
|
|
powerweb
|
|