I would like to know how I can manually insert some PHP code inside a CCK node.
What I have is the following code for Drupal 6:
$output .= '<br>';
$mor = _pitch_detalle($cid, $previamente, $luego);
if (sizeof($mor) > 0) {
$output .= theme('pitch', $mor);
}
return $output;
This code shows some information that changes from day to day, and each time the users view the page, the information changes. I want the user to see an unmodified version of that code, the same information that existed when the user created the page.
As the user cannot edit the page, I´m looking to insert a php snippet inside a CCK field that will remain unchanged. But that could lead to problems, so is there any way to do that in a safe way? Or maybe to insert code inside the template in other way?