Changeset 1529299
- Timestamp:
- 11/06/2016 11:53:52 PM (9 years ago)
- Location:
- thunder-port/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
thunder_port.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
thunder-port/trunk/readme.txt
r1322798 r1529299 4 4 Tags: plugin support, quick search, WordPress Plugin Support 5 5 Requires at least: 4.1 6 Tested up to: 4. 47 Stable tag: 4. 46 Tested up to: 4.6.1 7 Stable tag: 4.6.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 58 58 = 1.0 = 59 59 * initial version 60 61 = 1.1 = 62 * change parsing target(recently wordpress.org's support dom structure was changed.) -
thunder-port/trunk/thunder_port.php
r1322070 r1529299 4 4 Plugin URI: http://vividl.net 5 5 Description: This is a plugin for all wordpress plugin's support. 6 Version: 1. 06 Version: 1.1 7 7 Author: vividl 8 8 Author URI: http://vividl.net … … 316 316 $html = curl_file_get_html(''.$pluginurl.'/'); 317 317 318 foreach($html->find(' td') as $article) {318 foreach($html->find('ul') as $article) { 319 319 // get title 320 $title = trim($article->find(' a',0)->plaintext);320 $title = trim($article->find('li', 0)->find('a',0)->plaintext); 321 321 $title1 = htmlentities($title); 322 322 $title = utf8_encode($title1); 323 323 324 $address = trim($article->find(' a', 0)->href);324 $address = trim($article->find('li', 0)->find('a', 0)->href); 325 325 $i++; 326 326 if($title == '' ){ … … 346 346 347 347 $i=0; 348 foreach($html->find(' td') as $article) {348 foreach($html->find('ul') as $article) { 349 349 // get title 350 $title = trim($article->find(' a', 0)->plaintext);350 $title = trim($article->find('li', 0)->find('a', 0)->plaintext); 351 351 $title1 = htmlentities($title); 352 352 $title = utf8_encode($title1); 353 $address = trim($article->find(' a', 0)->href);353 $address = trim($article->find('li', 0)->find('a', 0)->href); 354 354 $i++; 355 355 if($title == '' ){ … … 384 384 $ret = array(); 385 385 386 foreach($html->find(' #pages') as $article) {386 foreach($html->find('.bbp-pagination-links') as $article) { 387 387 // get title 388 388 foreach($article->find('a') as $art) { 389 389 390 390 $title = trim($art->plaintext); 391 $pos = strpos($title, 'Next'); 392 if($pos !== false) { 391 // $pos = strpos($title, '→'); 392 393 if(!is_numeric($title)){ 394 // if($pos !== false) { 393 395 394 396 } else {
Note: See TracChangeset
for help on using the changeset viewer.