Changeset 8064
- Timestamp:
- 02/25/07 22:07:57 (1 year ago)
- Files:
-
- link-harvest/trunk/README.txt (modified) (3 diffs)
- link-harvest/trunk/link-harvest.php (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
link-harvest/trunk/README.txt
r7333 r8064 3 3 Contributors: alexkingorg 4 4 Requires at least: 2.0 5 Tested up to: 2. 0.55 Tested up to: 2.1 6 6 Stable tag: 1.0 7 7 … … 34 34 == Showing your Link Harvest == 35 35 36 37 36 = Token Method = 38 37 … … 55 54 To add a links list to your sidebar (like a blogroll), you can use the following template tag: 56 55 57 `<?php aklh_top_links($count = 10); ?>` 56 `<?php aklh_top_links(); ?>` 57 58 This will show the top 10 links, to show a different number of links set the number like so: 59 60 `<?php aklh_top_links(25); ?>` 58 61 59 62 link-harvest/trunk/link-harvest.php
r7331 r8064 5 5 Plugin URI: http://alexking.org/projects/wordpress 6 6 Description: This will harvest links from your WordPress database, creating a links list sorted by popularity. Once you have activated the plugin, you can configure the <a href="options-general.php?page=link-harvest.php">Settings</a> and see your <a href="index.php?page=link-harvest.php">list of links</a>. Also see <a href="options-general.php?page=link-harvest.php#aklh_template_tags">how to show the list of links</a> in your blog. Questions on configuration, etc.? Make sure to read the README. 7 Version: 1.0 beta7 Version: 1.0 8 8 Author: Alex King 9 9 Author URI: http://alexking.org 10 10 */ 11 11 12 // Copyright (c) 2006 Alex King. All rights reserved.12 // Copyright (c) 2006-2007 Alex King. All rights reserved. 13 13 // http://alexking.org/projects/wordpress 14 14 // … … 56 56 '); 57 57 } 58 $ $ak_prototype = true;58 $ak_prototype = true; 59 59 } 60 60 } … … 431 431 SELECT * 432 432 FROM $wpdb->posts 433 WHERE post_status = 'publish' 433 WHERE ( 434 post_status = 'publish' 435 OR post_status = 'static' 436 ) 434 437 AND ID IN (".implode(',', $post_ids).") 435 438 "); … … 445 448 SELECT * 446 449 FROM $wpdb->posts 447 WHERE post_status = 'publish' 450 WHERE ( 451 post_status = 'publish' 452 OR post_status = 'static' 453 ) 448 454 AND post_content LIKE '%http://%' 449 455 ORDER BY ID … … 719 725 SELECT count(ID) 720 726 FROM $wpdb->posts 721 WHERE post_status = 'publish' 727 WHERE ( 728 post_status = 'publish' 729 OR post_status = 'static' 730 ) 722 731 AND post_content LIKE '%http://%' 723 732 "); … … 960 969 <title>'.__('Link Harvest', 'alexking.org').'</title> 961 970 <script src="'.get_bloginfo('wpurl').'/wp-includes/js/prototype.js" type="text/javascript"></script> 962 <script src="'.get_bloginfo('wpurl').'/wp-includes/js/wp-ajax-js.php" type="text/javascript"></script>963 971 <script type="text/javascript"> 964 972 '.$js.' … … 1087 1095 function aklh_head() { 1088 1096 ak_prototype(); 1097 print(' 1098 <script type="text/javascript" src="'.get_bloginfo('wpurl').'/index.php?ak_action=lh_js"></script> 1099 <link rel="stylesheet" type="text/css" href="'.get_bloginfo('wpurl').'/index.php?ak_action=lh_css" /> 1100 '); 1089 1101 } 1090 1102 … … 1092 1104 ak_prototype(); 1093 1105 print(' 1094 <script type="text/javascript" src="'.get_bloginfo('wpurl').'/ wp-admin/options-general.php?ak_action=lh_js"></script>1095 <link rel="stylesheet" type="text/css" href="'.get_bloginfo('wpurl').'/ wp-admin/options-general.php?ak_action=lh_css" />1106 <script type="text/javascript" src="'.get_bloginfo('wpurl').'/index.php?ak_action=lh_js"></script> 1107 <link rel="stylesheet" type="text/css" href="'.get_bloginfo('wpurl').'/index.php?ak_action=lh_css" /> 1096 1108 '); 1097 1109 } … … 1146 1158 SELECT count(ID) 1147 1159 FROM $wpdb->posts 1148 WHERE post_status = 'publish' 1160 WHERE ( 1161 post_status = 'publish' 1162 OR post_status = 'static' 1163 ) 1149 1164 AND ( 1150 1165 post_content LIKE '%http://%' … … 1315 1330 ON p.ID = lh.post_id 1316 1331 WHERE lh.domain_id = '$domain_id' 1317 AND p.post_status = 'publish' 1332 AND ( 1333 post_status = 'publish' 1334 OR post_status = 'static' 1335 ) 1318 1336 GROUP BY p.ID 1319 1337 ORDER BY p.post_date DESC … … 1403 1421 target.innerHTML = '<span class="loading">Loading...</span>'; 1404 1422 target.style.display = "block"; 1405 var url = "<?php bloginfo('wpurl'); ?>/ wp-admin/options-general.php";1423 var url = "<?php bloginfo('wpurl'); ?>/index.php"; 1406 1424 var aklhAjax = new Ajax.Updater( 1407 1425 target,
