• I’m using CG-Feedread and I must not be using the function code correctly because the feed title’s are showing up chopped off. For example, an article from A List Apart shows up like this:
    ——————
    A List Apart: for people who make websites
    * Pa€|
    and Jorunn D. Newth Among the many websites that are out there, few are standards-compliant. Among those few, only a handful sport style sheets adjusted to the needs of handheld devices. Of those which do offer styling for handhelds, not all will fit the smallest, lowest-resolution screens without presenting the user with the ultimate handheld horror: namely, horizontal scrolling. This article presents a set of general suggestions for creating a handheld-friendly style sheet that works well even on handheld screens no wider than 120px.
    ———————–
    The title is the bulleted “P…” you can see the rest of them here:
    https://blog.zoblue.com/web-news.php
    The php function code I have in that page is:
    <?php
    $feedUrl = "https://www.alistapart.com/rss.xml";
    $feedOut = getSomeFeed($feedUrl, 4, true, "feed-alistapart", '', 1, -1, 1);
    if ($feedOut)
    echo $feedOut;
    ?>

    I want the descriptions to be shortened (some of them are the length of the entire article) but I want the full titles. When I reversed the 1, -1 to -1, 1 I still got short titles.
    Another question is how to have one function that can do a for-each-loop type of deal where I can enter the RSS feed urls into one function and it builds the feeds that way. Is that possible?
    thanks in advance,
    Z

Viewing 5 replies - 1 through 5 (of 5 total)
  • increase the 1 to 50.

    Ah, thank you ??

    >>>>
    Another question is how to have one function that can do a for-each-loop type of deal where I can enter the RSS feed urls into one function and it builds the feeds that way. Is that possible?
    <<<<
    Can you give something a bit more descriptive? I’ve not a clue what you’re looking for… ??
    -d

    yeah, I couldn’t (and still can’t) tell from the question. a single function that takes an array of URLs, and just loops through them individually? I’ve had someone request passing in an array to the current function, and building a ‘mixed feed’ with say the latest entry from each of 5 different feed URLs… But that’s completely different. I think.. ??
    -d

    Thread Starter zoblue

    (@zoblue)

    LOL, I’m a girl ??
    Anyways, the way the functions work now is I have to add a new function for each rss feed I want to gather. So I end up having to edit each one if I want to make a change to all of them at once. Sure, search & replace is easy….but I’m curious ??
    So, I was just wondering if there was a way to have one function that counts each rss url, and generates the code to output it into the page. The urls could be in one place, instead of scattered.
    Curiosity got to me is all. Wouldn’t know how to do it myself tho. Does that make sense?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘CG-FeedRead and character limit’ is closed to new replies.