I am still playing with some code.
In my link.php file I have this:
Code:
if (preg_match( '~<meta(.+?)name="description"(.+?)>~i', $this->html, $matches ) ){
$this->description = preg_replace( '~^(.+?)content="([^"]+?)"(.+?)$~i', '$2', $matches[1].$matches[2] );
echo $description;
}
in my template file where it output the url, title, description, and also allows the submitter to alter any of those fields and select a category, I have placed this in the description box:
Code:
<textarea name="bodytext" rows="10" cols="55" id="bodytext" WRAP=SOFT onkeyup="if(this.form.summarycheckbox.checked == false) {ldelim}this.form.summarytext.value = this.form.bodytext.value.substring(0, {$StorySummary_ContentTruncate});{rdelim}textCounter(this.form.summarytext,this.form.remLen, {$StorySummary_ContentTruncate});">{$description}</textarea>
Is that not correct?
It doesn't work, but I can't figure out why.
Geoserv.