• I have CG-Feedread 1.5.1b Plugin and Activated. I am trying to get a feed to match the rest of my sidebar. I have the $feedStyle set to 2 which inserts <br> behind it. I wish to remove the <br> from the $feedStyle = 2. I have looked at the feed-read.php file, but I cannot figure out how to remove the <br>. Any help would be apprectiated.

    Here is my current config:

    <?php
    $feedUrl = “https://www.digg.com/rss/index.xml&#8221;; // a sample CNET feed. use your own…
    $feedOut = getSomeFeed($feedUrl, 8, false, “rss-feed”, ”, 36, false, ”, ”, ‘2’, ‘true’, ”);
    if ($feedOut)
    echo $feedOut;
    ?>

    My site is Redlobo.com

Viewing 3 replies - 1 through 3 (of 3 total)
  • in cg-feedread.php, look for:

    if ($stylePosts=='br')
    $output .= "<br/>".$lf;

    and change it to:

    if ($stylePosts=='br')
    {}

    That should do the trick for the moment. I don’t think the BRs are absolutely necessary, since with CSS you could add back in whatever spacing is needed — so I’ll roll that into the next release.

    -d

    Thread Starter redlobo

    (@redlobo)

    Perfect! That solved the problem. Thanks for the quick response time and the quick solution. I cannot parse programming code to well.

    No problem. I take checks and paypal! ??

    Yeah, I make complex scripts, but try to shield most of the complexity through having a ton of parameters/options. Sometimes it works well, sometimes it gets to be restrictive…

    Hopefully I’ll get more ‘user defined output’ options in future releases.

    Let me know if you have more Qs or issues.

    -d

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘CG-Feedread Style 2 and the <br> tag’ is closed to new replies.