Announcement

Collapse
No announcement yet.

[RELEASE v2] Last XX Posts on non-vB page

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

  • #31
    It works!

    Tubedogg:

    After trying what you suggested, it works ok now after I put the code above in. Also, I had to change the include for my .shtml file from include "file" to include "virtual" as well. Doing all the above now produces the active table ok. I don't know what caused this, but we found the solution.

    Jeff

    Comment


    • #32
      That's very odd. Well, in any case, I'm glad it's working now.

      Comment


      • #33
        Originally posted by tubedogg
        Jeff: Hmm. I was expecting those two files to fail. What doesn't make sense is if they worked, why the other one wouldn't. Or, more succinctly, why the other one fails where it does. If it's having problems connecting, it should fail at the connect step, not at the select database step.

        Here's what I suggest. Since the only thing I'm pulling from the vB files for this is username, password, db host, and database name, put these up at the top of the last10.php file as so:
        Find
        Code:
        // let's get connected
        require("last10config.php");
        require("$path/config.php");
        and replace it with
        Code:
        // let's get connected
        require("last10config.php");
        $servername = "localhost";
        $dbusername = "dbusername";
        $dbpassword = "dbpassword";
        $dbname = "dbname";
        and change the info to your details. That should work. If it still doesn't let me know and I'll look into it some more.

        :scratching head:
        Need to correct that on my hack?

        Comment


        • #34
          Nope Just if it isn't working. His for whatever reason wasn't working, so I had him change that.

          Yours is fine.

          Comment


          • #35
            Originally posted by tubedogg
            Nope Just if it isn't working. His for whatever reason wasn't working, so I had him change that.

            Yours is fine.
            Ok thx tubedogg

            Comment


            • #36
              Robert and tubedogg:

              I have deleted the cookie from my computer, closed down the browser and rebooted my computer so that all I get when I get on the board is the nonregwelcome message and I do not get the header error message when clicking on the link to take me to the last10.php file using the bbparsecode for the message.

              Just so you know that on my board the script is working great with the bbparsecode being used with no error messages at all.

              Parker

              Comment


              • #37
                Originally posted by Parker Clack
                Robert and tubedogg:

                I have deleted the cookie from my computer, closed down the browser and rebooted my computer so that all I get when I get on the board is the nonregwelcome message and I do not get the header error message when clicking on the link to take me to the last10.php file using the bbparsecode for the message.

                Just so you know that on my board the script is working great with the bbparsecode being used with no error messages at all.

                Parker
                Where is the page you have it on?

                I'll visit and see if it gives me the error message.

                Comment


                • #38
                  jojo: No problem.

                  Parker: I don't have first-hand knowledge of the error Sportbikeworld is talking about. But if it truly does work, I'll look into it.

                  Comment


                  • #39
                    Robert:

                    Go to http://www.hometheaterforum.com/htforum/index.php

                    Click on the Today's Active Topics link under the threads in total count on the left hand side at the top.

                    This board is still in beta and I haven't moved any posts over from UBB yet so not much is going to be seen.

                    Let me know if you get the error or not.

                    Parker

                    Comment


                    • #40
                      Originally posted by Parker Clack
                      Robert:

                      Go to http://www.hometheaterforum.com/htforum/index.php

                      Click on the Today's Active Topics link under the threads in total count on the left hand side at the top.

                      This board is still in beta and I haven't moved any posts over from UBB yet so not much is going to be seen.

                      Let me know if you get the error or not.

                      Parker
                      Parker,

                      If I visit that way I will already have visited your forum. I need a direct link to the page that you have the hack on. There error will only show up if I have never visited your forums.

                      Comment


                      • #41
                        Ok,

                        Go to

                        http://www.hometheaterforum.com/htforum/active.php

                        Parker

                        Comment


                        • #42
                          Ok,

                          I see if you go to that page directly what you are talking about. I doubt that anyone would go to the page directly like this so.............

                          Again, thanks for the heads up.

                          Parker

                          Comment


                          • #43
                            Originally posted by Parker Clack
                            Ok,

                            I see if you go to that page directly what you are talking about. I doubt that anyone would go to the page directly like this so.............

                            Again, thanks for the heads up.

                            Parker
                            So now you see why most of us can't use it because we place the code on our front page.

                            Comment


                            • #44
                              problem with Private forum
                              any one can see .....

                              Comment


                              • #45
                                fahad,

                                You must use the exclude forums variable for any forums which you wish to exclude.

                                Find the ID number of the forum. (Go to your main forums page (index.php) and roll your mouse over the link of the forum you wish to exclude. In the status bar at the bottom, look for forumid= and then make a note of that number.) Then, edit the last10config.php file, and find where it says
                                PHP Code:
                                $excludeforums ""
                                In between the " and the other " put the number of the forum you wish to exclude.

                                Comment

                                Related Topics

                                Collapse

                                Working...
                                X