Forums

CG-Feedreader (23 posts)

  1. GregTallent
    Member
    Posted 4 years ago #

    Ok, Beel.
    I put CG-Feedreader into the plugin directory along with all the other files. It's not appearing in the Wordpress plugin tab. Stumped at step 1!
    Greg

  2. GregTallent
    Member
    Posted 4 years ago #

    Ok. Got them to appear in the Wordpress tab. On to step 2.

  3. GregTallent
    Member
    Posted 4 years ago #

    I've put:

    $feedUrl = "http://news.com.com/2547-1040_3-0-5.xml"; // a sample CNET feed. use your own...
    $feedOut = getSomeFeed($feedUrl, 4, false, "feed-cnetttech", '', 36, false);
    if ($feedOut)
    echo $feedOut;

    into index.php.

    Can't see the feed on the blog page.!?
    Greg

  4. Beel
    Member
    Posted 4 years ago #

    In the index page or in a post on the index page? You also have uploaded all the directories for CG-BigKahuna? (momentary memory loss - can't remember the package name)

  5. GregTallent
    Member
    Posted 4 years ago #

    Thanks, Beel. In index.php which is in the root dir of the blog.
    It reads:
    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', true);
    require('./wp-blog-header.php');
    $feedUrl = "http://news.com.com/2547-1040_3-0-5.xml"; // a sample CNET feed. use your own...
    $feedOut = getSomeFeed($feedUrl, 4, false, "feed-cnetttech", '', 36, false);
    if ($feedOut)
    echo $feedOut;
    ?>

    I put the whole kahuna into the plugins directory.

  6. Beel
    Member
    Posted 4 years ago #

    That won't get run because WP will redirect to your theme directory index page (define('WP_USE_THEMES', true);) when the blog-header is loaded.

  7. GregTallent
    Member
    Posted 4 years ago #

    Ah... now where might that be... (looking...)

  8. GregTallent
    Member
    Posted 4 years ago #

    Methinks it's the index.php in the wp-admin folder..

    I love the way the post is yellowed and then faded..

  9. Beel
    Member
    Posted 4 years ago #

    Nope, not there. Can't tell you exactly where since I don't know where your blog is, but one of the theme directories below wp-content/themes. If you don't know which, check in admin or just view the source of your index page and check from where the css is being loaded.

  10. TechGnome
    Moderator
    Posted 4 years ago #

    Nooooooooooo! Don't touch that....

    It's the index.php file that's in the Theme directory you are using.
    wp-content\themes\_your_theme_here\index.php

    -tg

  11. GregTallent
    Member
    Posted 4 years ago #

    Found it! wp-content/themes/default/index.php.

    So, I put the feedreader code in that file, and it appears!

    Thanks, guys.

    It's nice to know someone/s out there is watching you.
    Greg

  12. GregTallent
    Member
    Posted 4 years ago #

    Seems to want it as an .xml extension file.

    Doesn't work with: http://bearstorm.com/blogs/london/wp-rss2.php

  13. GregTallent
    Member
    Posted 4 years ago #

    Also, when I change to http://bearstorm.com/blogs/london/wp-rss2.php

    it brings back the old feed. Maybe cache needs to be cleared.

  14. Beel
    Member
    Posted 4 years ago #

    No (to the post before your last one), it works fine no matter what generates the feed. If you changed the link without changing the name then you will not see it for awhile as all feeds are cached by CG-Feedread.

    As an aside, I noticed from your feed you are using an older version of WP that had some bugs. Might want to get 1.5.2

  15. GregTallent
    Member
    Posted 4 years ago #

    Thanks, Beel. And I'll change to 1.5.2.

  16. GregTallent
    Member
    Posted 4 years ago #

    Actually, it says 1.5.2 in my dashboard. :-)

  17. Beel
    Member
    Posted 4 years ago #

    I tested your link in my CG-Feedread subscriptions and it worked fine. Try this:

    <?php getSomeFeed('http://bearstorm.com/blogs/london/wp-rss2.php', 4, true, "TEST", '', '', '240', true, true, true); ?>

  18. Beel
    Member
    Posted 4 years ago #

    Might want to check that you have correctly uploaded all files for 1.5.2 as your feed has <!-- generator="wordpress/1.5.1.3" -->

  19. GregTallent
    Member
    Posted 4 years ago #

    Nice! Works a treat. Will check all files, too.

    One last question, Beel. If I want to use my own index page in root of http://www.bearstorm.com, and put the getSomeFeed function call in there, how is that going to find the function?

    Have a really nice day, Beel. You've been a great help.

  20. Beel
    Member
    Posted 4 years ago #

    I believe David's CG-Feedread did not start out as a plugin. I use it outside of WP by including WP's blog-header in any file accessing a WP function. You may be able to just include CG-Feadread.php but I haven't tried that.

  21. GregTallent
    Member
    Posted 4 years ago #

    I'll try it tomorrow. Will get back to this thread. Thanks. Greg

  22. GregTallent
    Member
    Posted 4 years ago #

    To continue above, just found a link that will allow CG-Feedreader to be used outside of wp: http://wordpress.org/support/topic/36422.

    Howeve, I've gone back to using Bill Rawlinson's: rssLinkList: http://rawlinson.us/blog/index.php?p=212

    Seems a little easier.

  23. davidchait
    Member
    Posted 4 years ago #

    I'm not sure what could be easier than a single function call... ;)

    Yes, CG-FeedRead can be direct-included in a higher-up index.php to utilize it anywhere on a site. In addition, it can be used on a completely non-WP site, as it has no connections to WP. The 'plugin stub' is simply a way to get cg-feedread.php included, but you can also do so manually (such as on other PHP sites, or 1.0 wordpress...).

    What do you like about linklist that was (for you) better/easier than FeedRead? I'm always looking to improve things -- especially for people who take the time to get set up in the first place. :)

    -d

Topic Closed

This topic has been closed to new replies.

About this Topic