Bookmark and Share
Joomla Articles
Welcome, Guest
Please Login or Register.    Lost Password?
Writing a Joomla 1.5 Content Plugin
(1 viewing) 1 Guest
Go to bottom
TOPIC: Writing a Joomla 1.5 Content Plugin
#84
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 Logged  
  The administrator has disabled public write access.
Go to top

powerweb

affiliate_link
affiliate_link
ArtisteerArtisteer - Joomla Theme Generator

Your products

Get Your Product


Get products key


Get orders info


Members area

RocketTheme Joomla Templates