I am trying to get the script to GET the metas for description and auto fill the description box on submit.
Much like it auto fills the title field.
Anyone have this working or have a starting point?
Geoserv.
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| Auto-Fill |
| |||
|
did u get anywhere with this?
|
| |||
|
Not yet, I was thinking something like this would have done it: Code: preg_match("|<meta[^>]*description[^>]*content=\"([^>]+)\"[^>]*>|Ui",$headers[1], $matches);
Geoserv. |
| |||
|
Ok, I am making progress with this, but need a little help. In libs/link.php: Code: if ( preg_match ( '~<meta(.+?)name="description"(.+?)>~i', $this->html, $matches ) )
{
$description = preg_replace( '~^(.+?)content="([^"]+?)"(.+?)$~i', '$2', $matches[1].$matches[2] );
echo $description;
}
[cod]<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}textCount er(this.form.summarytext,this.form.remLen, {$StorySummary_ContentTruncate});">{$description}</textarea>[/code] It is fetching the meta description of the URL submitted, but it is placing it above my content. ![]() Try it out at News Dots / Login Any ideas? Geoserv. |
| |||
|
Heres my libs/link.php file so you can see where I have mine placed. Its starts on line 99: PHP Code: |
| The Following User Says Thank You to Geoserv For This Useful Post: | ||
| |||
|
When I try to add Quote:
Quote:
When I do a page source, this is what it looks like: Quote:
|
| |||
|
I think this is going to be a smarty issue. Any smarty pros available to take a peak? Geoserv |
| |||
|
No one has any ideas on this? Geoserv. |
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| New story gets auto discarded with zero votes | envieme | General Help | 4 | 11-19-2008 08:14 PM |
| Pligg auto tagging script. | kazey | Modification Tutorials | 30 | 05-09-2008 02:37 PM |
| RSS Auto Import? | KState | General Help | 6 | 02-21-2008 05:54 AM |
| I'm looking for : Auto Sitemaps for pligg | l2aelba | Modification Tutorials | 4 | 12-05-2007 01:48 AM |
| auto fill tags and description from source URL | chad90382 | Modification Tutorials | 1 | 11-06-2006 09:04 AM |





Linear Mode

