Warning: Undefined array key "birthday_search" in phar://.../vb/vb.phar/api/user.php on line 1 Warning: Undefined array key "joindate" in phar://.../vb/vb.phar/api/user.php on line 1 Warning: Undefined array key "posts" in phar://.../vb/vb.phar/api/user.php on line 1 Warning: Undefined array key "posts" in phar://.../vb/vb.phar/api/user.php on line 1 Warning: Undefined array key "userid" in phar://.../vb/vb.phar/api/user.php on line 1 Warning: Undefined array key "userid" in phar://.../vb/vb.phar/api/user.php on line 1 Warning: Undefined array key "privacy_options" in phar://.../vb/vb.phar/api/user.php on line 1 Warning: Undefined array key "userid" in phar://.../vb/vb.phar/library/user.php on line 2 Warning: Undefined array key "userid" in phar://.../vb/vb.phar/library/user.php on line 2 Warning: Undefined array key "lastactivity" in phar://.../vb/vb.phar/library/user.php on line 2 Warning: Trying to access array offset on value of type bool in .../vb5/route/profile.php on line 74 Warning: Undefined array key "extension" in /home/www/resellers_forum/includes/vb5/template/bbcode.php on line 4176 RSS news feed problem - ResellersPanel Discussion

Announcement

Collapse
No announcement yet.

RSS news feed problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • RSS news feed problem

    I am having trouble Implementing the RSP RSS news feeds.
    I wanted to have 2 news items on homepage and then a news page with all the news. I was going to use the script provided by RSP (instructions 1 link in the RSP's control panel under "news manager") for the News page and the FeedForAll (instructions 2 link) for the homepage (index page).
    Well I can't get either one to work.
    Here are the files in .txt format:

    news page (named: News.php)

    index page (named: index.php)

    index template (named: index_temp.html)

    The first one is the one using RSP's tool (rp_news.php installed in same dir)
    The second one is the script "rss2html.php" renamed index.php and with feed information, number of items modified.
    The third one is the html template used by index.php (rss2html.php)

    I don't know if I am going about this wrong or what I am mising but the index page gives me this error
    "Unable to open RSS Feed https://login.*************1.com/rss...c32dad1692c404 with error SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed, exiting"

    and the news page does not show any news.

    Thanks in advance for any help.
    Last edited by Guest; 15-05-2006, 06:26 AM.

  • #2
    Hi,

    I did not intend to use the news feed on my site. However, I like evaluating and testing. I think I drive Milen and rsp crazy sometimes.

    Anyway, after reading this post I followed the instructions for news feed and I was able to get my test news feed working.

    I used instruction one, I have not tested instruction two right now.

    In the instructions
    ========
    https://login.*************1.com/rss/?mode=rp&username= %%USERNAME%% &md5= %%MD5%%
    ========

    So mine looks like
    =========
    https://login.*************1.com/rss/?mode=rp&username=go247&md5=123456789
    =========

    I substituted 123456789 for my actual md5 hash for forum posting reasons. But on my actual, I used the correct md5 hash.

    Anyway, I noticed your error message is different from this. Not sure if you shortened it for posting reasons, or if you did exactly correct but generated error modified it somehow. *ok you probably copied and pasted it correctly, but the forum is destorting it.

    I downloaded the zip file for instruction one. Which contains when unzipped.
    ==========
    rp_news.html
    rp_news.php
    rp_news.inc.php
    ==========
    I uploaded all three files (not sure if rp_news.html is needed but uploaded it anyway) to a folder I created titled /RSP_RSS/

    I didn't have to change any other paths in rp_news.php or rp_news.inc.php because everything was uploaded to the same folder.

    Since I was not intending to use the news feed, I made a test.php page or it can be anything that you have already like home.php, index.php etc etc. Make sure it's ending extension is php.

    Than I placed this code in the test.php:
    =========
    <?php
    $feed_url = "https://login.*************1.com/rss/?mode=rp&username=go247&md5=123456789";
    $filter = "issues";
    $show_date = "off";

    include("rp_news.php");
    ?>
    ==========

    Than I tested it in FF and IE. By going to my site with test.php page. http://www.go247***.com/test.php and the rss feed was there.

    ==========

    I wondered if it had anything to do with your browser setup. So I turned my IE to maximum security and the test.php still showed. No error messages. However, the feeds where unclickable. So not sure why it is not working for you. If you want to know more detailed steps I took just pm me. I will try to test instruction 2 later when I have more time.

    Or maybe rsp staff or someone else who has successfully integrated it has a better explanation of why it is not working for you. In the meantime, hope that helps.

    Sincerely,
    Song
    Last edited by kwansan; 15-05-2006, 01:07 AM.

    Comment


    • #3
      Hi,

      I downloaded your zip file, first thing I noticed everything is html, it needs to be converted to php not html. The <?php ?> that you included should be parsed server side and not viewable in your pages. I can clearly see your username and md5 hash. For security reasons you do not want others to view this information. Take it down asap.

      The best thing to do is setup htaccess file so that all html files are treated as php files from server side processing. But, not exactly sure what you are doing so I will wait for your response.

      Sincerely,
      Song

      Comment


      • #4
        Ok I am now testing instruction 2. I was able to replicate your error message by copying and pasting the supplied feed link to the rss2html.php when it ask for the feed link.

        Originally posted by tristram
        I don't know if I am going about this wrong or what I am mising but the index page gives me this error
        "Unable to open RSS Feed https://login.*************1.com/rss...c32dad1692c404 with error SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed, exiting"
        To substitute, I had rsp feed parsed and than copied and pasted the source to another page saved as test2.xml. I then used this as the feed link and it worked. I then found other feed links and used those and everyone I used worked.

        I need to further evaluate, however, 1. the rsp feed link to use with rss2html.php maybe coded incorrectly to be a valid feed xml link or they have not provided us with the valid xml to use with rss2html.php. Or I could be totally wrong and over looking something.

        I ran it through the feedvalidator from the rss2html site and it returned some minor errors. That could be the culprit. I'll keep digging around

        Sincerely,
        Song

        Comment


        • #5
          Hey, How come you don't just do something like I did? (www.prodesigns.ca on the bottom right hand corner)

          I have a button saying RSS News, and when people click it (with the appropriate browser) can view the RSS feed.

          Regards,

          Comment


          • #6
            Hey Daniel,

            I like the new minor tweaks to your site

            I should be working on getting my site up but, I get side tracked by things like this .

            I think they wanted to be able to integrate the newsfeed into 3 different sections of their site. Which is the what rss feeds are designed for.

            Instruction1 integration should be no problem.

            Instruction2 instructions are at rss2html site however, no further instruction from rsp about what to enter into variables for rss2html.

            I am seriously thinking their is a bug with http://login.s*******1.com as parsing a valid xml for/to be used with rss2html. Unless someone has gotten this to work.?!? . I am looking at a work around for this until it is addressed by rsp.

            I attached a screenshot of the error message. Funny thing is I have no intention of using newsfeeds on my site. I like a good challenge.

            Sincerely,
            David
            Attached Files

            Comment


            • #7
              Thats exactly what I want to do....

              Originally posted by Daniel
              Hey, How come you don't just do something like I did? (www.prodesigns.ca on the bottom right hand corner)

              I have a button saying RSS News, and when people click it (with the appropriate browser) can view the RSS feed.

              Regards,
              That's exectly what I wanted to do.
              How did you do it?
              I put the html files back up so you can see my site and what I am doing.
              Here is the site

              Thanks for your efforts as well Kwasan.
              Do I need to do anything else besides changing the exension to .php for those pages to be php?

              Comment


              • #8
                haha ok

                I guess I misunderstood when you mentioned you wanted to show 2 news items on home etc etc...

                I wanted to have 2 news items on homepage and then a news page with all the news. I was going to use the script provided by RSP (instructions 1 link in the RSP's control panel under "news manager") for the News page and the FeedForAll (instructions 2 link) for the homepage (index page).
                Well I can't get either one to work
                I think Daniel just used a simple link with an image button .... not sure where he got the image button from but there are ones out there or you can make your own with ps.

                Until he "officially responds" here is what you can do.

                In your html file place a link to your newsfeed.

                Code:
                <a href="https://login.*************1.com/rss/?mode=rp&username=yourusername&md5=yourmdhascode123456789">
                                                              <img border="0" src="images/imagebuttonname.gif" width="xx" height="xx"></a>
                It's that simple if that is what you originally wanted.

                Either way we found out that instruction2 is buggy.

                Sincerely,
                Song

                Comment


                • #9
                  Hey, I was reading your posts and saw that you needed a reply Anyways, the pic I got was from our RSP control panel's under the "News Manager" link. Although you can just take that image off my website if you'd like. Then what I did was copy my URL that RSP gave me (your URL will be displayed when you click on the button in your control panel) and made that button on my site, link to that URL.

                  It's very easy really, if you have any troubles, let me know All I did was copy/paste the URL and pic.

                  Best Regards,

                  Comment


                  • #10
                    Got the News Page working

                    Well I got the news page working (instructions #1)
                    I was missing the PHP after <?

                    You can see it if you go to site above and click more news
                    or click here

                    Now to get just 2 news items on home page

                    Comment


                    • #11
                      News items

                      Hey Daniel,
                      The two news items on your site are not from the RSP feed right?
                      They are your material right?

                      I was not that interested in using the rss feed link (although nice to add)
                      I was interested in getting the two latest news items from RSP's feed and have the more news button take them to the full news page.

                      Comment


                      • #12
                        Got it done

                        Got it working. Just some formating to clean up.

                        In the rss2html.php script (which I renamed index.php) has the followong variable under configuration options

                        // Set the following variable useFopenURL to one if you want/need to use
                        // fopen() instead of CURL
                        $useFopenURL = 1;

                        It is default set to o

                        Changed to 1 and it worked

                        Comment


                        • #13
                          Great !

                          Originally posted by kwansan

                          Than I placed this code in the test.php:
                          =========
                          <?php
                          $feed_url = "https://login.*************1.com/rss/?mode=rp&username=go247&md5=123456789";
                          $filter = "issues";
                          $show_date = "off";

                          include("rp_news.php");
                          ?>
                          ==========
                          Sorry I forgot to point that out when I posted that. It is in our rsp control panel as <? when it should be <?php.

                          Milen, that needs to be fixed. thanks.

                          Sincerely,
                          Song

                          Comment


                          • #14
                            WTG !! Great job

                            I zoomed right past that line in the rss2html file. Alot of times it is just simple things.

                            Your site looks nice with the newsfeed you added. There is extra white space below the header when viewed in FF that is not there in IE. Maybe just a simple td valign top or td height thing.

                            Now I am considering using the newsfeed. Thanks.

                            Sincerely,
                            Song

                            Comment


                            • #15
                              Originally posted by kwansan
                              Sorry I forgot to point that out when I posted that. It is in our rsp control panel as <? when it should be <?php.

                              Milen, that needs to be fixed. thanks.
                              kwansan, thank you for reporting this error. I will ask our developers to fix it.

                              Comment

                              Working...
                              X