I still haven't figured this one out.
Geoserv.
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| The Following User Says Thank You to Geoserv For This Useful Post: | ||
| |||
|
Ok, I think I've got it. Many thanks to Geoserv who did all the hard work by coming up with the basis of this. Find this line in the ./lib/link.php PHP Code: PHP Code: Save your ./lib/link.php Now open the ./submit.php find this line (around line #167 / 168 depending on other modifications) PHP Code: PHP Code: Now if the site being submitted has a meta description tag, it should show by default in the description box on step two of submit. If the user wants to add or change it, the updated description will be saved and not the meta description. Hope this helps someone out there! |
| The Following User Says Thank You to knight01 For This Useful Post: | ||
| |||
|
Hi knight01, I applied your instructions, but the article details (story title, description) are still blank ;-( The modified code looks as follows: var/www/libs/link.php if(preg_match("'<title>([^<]*?)</title>'", $this->html, $matches)) { $this->url_title=trim($matches[1]); } if ( preg_match ( '~<meta(.+?)name="description"(.+?)>~i', $this->html, $matches ) ){ $description = preg_replace( '~^(.+?)content="([^"]+?)"(.+?)$~i', '$2', $matches[1].$matches[2] ); $description= str_replace("content=\"", " ", trim($description)); $description= str_replace("\"", " ", trim($description)); $this->content=$description; } var/www/submit.php if(isset($url)){ $main_smarty->assign('submit_url', $url); } else { $main_smarty->assign('submit_url', ''); } $main_smarty->assign('submit_url_title', $linkres->url_title); $main_smarty->assign('submit_content', $linkres->content); I would be deeply grateful for any help. Max |
![]() |
« 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

