Announcement

Collapse
No announcement yet.

[RELEASE] PluhNews 1.0

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

  • Check this out: http://www.particlesun.com

    It's based off the same concept, just looks different.

    Comment


    • Great script
      But I get this error when making a include of the headlines from the amin page (/index.php3)
      Fatal error: Failed opening required './admin/config.php' (include_path='.:/usr/lib/php') in /var/www/pulsorock/foro/global.php on line 72
      But if I go to the script directly, it works fine.

      Any help on how to use the script using the php include?
      Last edited by pulsorock; Thu 30th Aug '01, 10:50pm.

      Comment


      • Hi Guillermo,
        add this line before the require command:

        PHP Code:
        chdir("yourpath/toforum/admin/config.php"); 
        and this one to the end of the script:

        PHP Code:
        chdir("yourpath"); 
        Bye

        Renato
        Renato

        Comment


        • Hi Rostor,
          So I should add this line
          PHP Code:
          chdir("/var/www/pulsorock/foro/admin/config.php"); 
          To the index.php located in the root folder of my web site before the include line and add
          PHP Code:
          chdir("/var/www/pulsorock"); 
          at the end of the headlines script located in the /foro folder?

          Thanks

          Comment


          • ReHI

            The line must be added in the first and the last lines of pluhHeadlines.php.


            First part:
            PHP Code:
            require("./global.php");
            require(
            "./PluhConfig.php");
            chdir("/var/www/pulsorock/foro/admin/");  // <----- HERE
            require("./config.php"); 
            Last part:
            PHP Code:
            mysql_free_result($sql_result);
            mysql_close($connection);
            chdir("/var/www/pulsorock");  // <---- HERE 
            Renato

            Comment


            • ohh...

              I'll will try them now

              Thanks for all the help

              Comment


              • No Problem i'm here for other 3 hours lol
                Renato

                Comment




                • I tried as you said, but now I get thi error:
                  Fatal error: Failed opening required './global.php' (include_path='.:/usr/lib/php') in /var/www/pulsorock/foro/PluhHeadlines.php on line 6
                  any idea?

                  Comment


                  • Try to send me the file

                    [email protected]
                    Renato

                    Comment


                    • Thanks!
                      It worked

                      Comment


                      • this script is really good but I have a problem when I try to use this script twice on the same page.
                        In fact I need two headlines displaying on my homepage.
                        Each headline related to a distinct subforum.
                        So I use the script 2 times but I rename PluhHeadlines.php and Pluconfig.php for the second headline.

                        When I try I get this error for the second headline script :
                        Code:
                         Fatal error: Cannot redeclare stripslashesarray() in /forum/global.php on line 10
                        What can I do to fix this error ?
                        thank you in advance
                        Last edited by Bouddha; Fri 7th Sep '01, 11:27am.

                        Comment


                        • Date?

                          Is there any way to pull a date with this so it could look like this.
                          09-07-2001 05:54 PM - News Here - Posted By User name

                          Just want to be able to add the date to it.. Not a bug php guy so easier the better..

                          Comment


                          • look here
                            http://www.realwebhost.net/PluhNews.php
                            Real Web Host

                            Comment


                            • Is version 1.5 up in the first message the most recent version of PluhNews?

                              deb

                              Comment


                              • I found my error (see above), I just put in comment the require global.php in the PluhConfig.php and now I can run this script twice on the same page.

                                Comment

                                widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                                Working...
                                X