1 | Feeder 0.3 Documentation
|
---|
2 | -=-=-=-=-=-=-=-=-=-=-=-=-
|
---|
3 |
|
---|
4 | Just Copy the feeder.php to /wp-root-path/wp-content/plugins/
|
---|
5 | where /wp-root-path/ contains your Wordpress Installation and Follow the Instructions.
|
---|
6 |
|
---|
7 |
|
---|
8 | Make Sure the ./wp-content/uploads/ Folder Exists and is set to CHMOD 777
|
---|
9 | if you want to use the Feed-Cache Features. (and your disk/host has atleast 50KB of free Space)
|
---|
10 |
|
---|
11 |
|
---|
12 |
|
---|
13 | I. Instructions
|
---|
14 | ---------------
|
---|
15 |
|
---|
16 | 1) Edit the "sidebar.php" File of your Default Template using Wordpress ACP or FTP and
|
---|
17 | add the Following Lines in a Place Suitable for your Purpose.
|
---|
18 |
|
---|
19 | <!---- QUICK ---->
|
---|
20 | <?php if ( class_exists('feeder') ) : ?>
|
---|
21 | <h2><?php _e('Feeder'); ?></h2>
|
---|
22 | <ul>
|
---|
23 | <?php new feeder("http://feed-link"); ?>
|
---|
24 | </ul>
|
---|
25 | <?php endif; ?>
|
---|
26 | <------ END ----->
|
---|
27 |
|
---|
28 |
|
---|
29 | <!------- ADVANCED ------->
|
---|
30 | <?php if ( class_exists('feeder') ) : ?>
|
---|
31 | <h2><?php _e('Feeder'); ?></h2>
|
---|
32 | <ul>
|
---|
33 | <?php new feeder("http://feed-link", num-links, "<li>", "</li>", "feeder-link", "target", num-chars, 1, cache-time); ?>
|
---|
34 | </ul>
|
---|
35 | <?php endif; ?>
|
---|
36 | <!--------- END ---------->
|
---|
37 |
|
---|
38 |
|
---|
39 | Where
|
---|
40 | (i) 'http://feed-link' -> Feed URL you want to use
|
---|
41 | {ii} 'num-links' -> Number of Links to Show
|
---|
42 | (iii) '<li>' and '</li>' -> xHTML Tags to Bind the Links
|
---|
43 | (iv) 'feeder-link' -> CSS Class of the Links Shown for Styling (Leave it as it is)
|
---|
44 | (v) 'target' -> Link Target, "_blank" for New Window and "_self" for the Current Window.
|
---|
45 | (v) 'num-chars' -> Number of Characters to Parse for the Title
|
---|
46 | (vi) '1' -> Enable Feed Cache, Change to 0 if you dont want to use it/Anything Goes Wrong.
|
---|
47 | (vii) 'cache-time' -> Update the Cache Every n Seconds.. 3600 = 1Hr
|
---|
48 |
|
---|
49 | Example: <?php new feeder("http//domain.com/feed/", 5, "<li>", "</li>", "feeder-link", "_self", 32, 1, 3600); ?>
|
---|
50 | NOTE: Do NOT Quote the num-chars, num-links, cache and cache-time!
|
---|
51 |
|
---|
52 | 2) Activate the Plugin from the Wordpress ACP Plugins Page.
|
---|
53 |
|
---|
54 |
|
---|
55 |
|
---|
56 | II. Regarding Feed-Cache
|
---|
57 | ------------------------
|
---|
58 |
|
---|
59 | If you directly source the Feed from another site, there seems to be a Lag in rendering Your Blog!
|
---|
60 | Mostly because the Source Site is a Little Slow or has a Huge amount of Traffic.
|
---|
61 |
|
---|
62 | Feeder's Feed-Cache will keep a Scaled Down Copy of the RSS Feed in your own Server (Containing only Links and Titles)
|
---|
63 | It Automatically Updates the Cache according to the time set (Default: 3600secs)
|
---|
64 |
|
---|
65 | Make sure the Uploads Folder of your blog is set to CHMOD 777 (Write-Write-Write) if you want to use the Feature.
|
---|
66 |
|
---|
67 |
|
---|
68 |
|
---|
69 | III. Bugs, etc.
|
---|
70 | ---------------
|
---|
71 |
|
---|
72 | If you Find any Nasty Bugs in my Plugin, Email me (subbu.exe[at]gmail.com)
|
---|
73 | Thank You :)
|
---|
74 |
|
---|
75 |
|
---|
76 |
|
---|
77 | IV. License
|
---|
78 | -----------
|
---|
79 |
|
---|
80 | Meh! See GPLv2 in gnu.org
|
---|
81 |
|
---|
82 | XML Parser Function is taken from PHP Manual. I Think PHP License, etc. applies for that..
|
---|
83 |
|
---|
84 |
|
---|
85 |
|
---|
86 | V. Feature Requests & Contact
|
---|
87 | -----------------------------
|
---|
88 |
|
---|
89 | Plugin Page: http://xubz.com/weblog/2007/03/feeder-wordpress-plugin
|
---|
90 | Author Blog: http://xubz.com/
|
---|
91 |
|
---|
92 | Email me (subbu.exe[at]gmail.com) if you want to Request Features, etc.
|
---|
93 |
|
---|
94 | I'm a Freelance Web Developer and Designer, Contact me about any Queries of those..
|
---|
95 |
|
---|
96 | (And Forgive my English.. :-/)
|
---|
97 |
|
---|
98 |
|
---|
99 |
|
---|
100 | EOF
|
---|