root/afridex/plugins/dailytop10/README.TXT @ 21

Revision 21, 3.1 kB (checked in by admin, 18 years ago)
Line 
1Plugin Name: Daily Top 10 Posts
2
3INSTALLATION
4------------
51. Download the plugin from http://www.alleba.com/blog/wp-downloads/dailytop10.zip
62. Extract and upload dailytop10.php to 'yourserver.com/wp-content/plugins/'
73. Login to your Wordpress admin panel and browse to the Plugins section.
84. Activate The Daily Top 10 Posts plugin.
9
10INSTRUCTIONS
11------------
121. Go to Admin Panel > Design > Theme Editor and click on Single Post (single.php).
13
14         #Find this line:
15               
16                <?php the_time('F jS, Y') ?> //date
17               
18         #Right after it, insert this line:
19                <br /><?php if (function_exists('todays_overall_count')) { todays_overall_count($post->ID, 'Visited', 'times', 'so far today', '0', 'show'); } ?>
20               
21   #The line will display something like "Visited 300 times, 25 so far today" while viewing an individual post.
22   #You may edit the wording to suit your preference.
23   #If you wish to leave a word/phrase empty, use two quotes '' instead of just leaving it completely blank.
24   #Insert only one instance of this line to avoid double tracking.
25   #Change '0' to '1' if you wish to track unique sessions.
26   #Change 'show' to 'noshow' if you donot wish to display the post count information.
27
282. To display the number of views per post on the main index page, click on Main Index Template (index.php) in the Theme Editor panel.
29
30   #Find this line:
31   
32    <?php the_time('F jS, Y') ?>
33   
34   #Right after it, insert this line:
35               
36                <br /><?php if (function_exists('todays_overall_main')) { todays_overall_main($post->ID, 'Viewed', 'times', 'so far today'); } ?>
37         
38         #The line will display something like "Visited 300 times, 25 so far today" under each post heading
39         #while browsing your main page.
40   #You may edit the wording to suit your preference.
41   #If you wish to leave a word/phrase empty, use two quotes '' instead of just leaving it completely blank.
42   
433. To add the sidebar widget, you may add it directly in the widgets panel of your theme (Design > Widgets).  If your theme is not widget-ready, click on sidebar.php in the Theme Editor panel and do the following:
44
45         #Add the following code:
46         
47          <h3>Top Posts for Today</h3>
48    <?php if (function_exists('todays_count_widget')) { todays_count_widget('views', 'ul'); }?>
49   
50   #You may edit the word "views" to your liking (e.g. visits, pageviews or leave it empty '').
51   #The list format defaults to an unordered list (ul).  If you would like an ordered list, change it to 'ol'.
52
534. To add the sidebar widget to show your most popular posts overall, you may add it directly in the widgets panel of your theme (Design > Widgets).  If your theme is not widget-ready, click on sidebar.php in the Theme Editor panel and do the following:
54         #Add the following code:
55         
56          <h3>Overall Top Posts</h3>
57    <?php if (function_exists('todays_overall_count_widget')) { todays_overall_count_widget('views', 'ul'); } ?>
58   
59   #You may edit the word "views" to your liking (e.g. visits, pageviews or leave it empty '').
60   #The list format defaults to an unordered list (ul).  If you would like an ordered list, change it to 'ol'.
Note: See TracBrowser for help on using the browser.