+ Reply to Thread
Results 1 to 8 of 8

Thread: News not appearing

  1. Join Date
    Mar 2005
    Posts
    5

    News not appearing

    I am using phpbb 2.0.11.

    I have tried this news script with everything I could and I get a blank page.

    http://nscrnbr27.webplanethost.com/forum is the forum directory

    http://nscrnbr27.webplanethost.com/news/ is the news directory.

    I attempted to include the news.php file into the main page in the center body but I get a blank page.

    I have tried different id numbers, forum setups and nothing seems to work. What do you guys think the problem is? I have php and mysql on the server.

  2. Join Date
    Aug 2004
    Posts
    781

    News not appearing

    Well, your forum id should be set to 1. Your forum type should be set to phpBB. Ensure that your database information is correct.

    Other than that, you need to make sure that you are copying and pasting the generated code from within the script.

    It is difficult to say what the problem is since there isn't an error. However, I do notice that your page is stoping its execution (look at the html output, it stops at the point where the news would be displayed).

    For this reason I think that there has to be some error happening somewhere due to misconfiguration.

    1. Make sure news script is up-to-date from within control panel.
    2. Ensure script settings are correct (including absolute path, etc).
    3. Ensure database settings correspond to those that are found within your phpBB's config file.

    I would love to help troubleshoot this situation further and ensure that it isn't a bug in the script. If you could PM me some ftp details I could assist you further (or you can email them to me at patiek[no spam @]ep-dev.com .

    I could probably fix your problem relatively quickly once I am able to troubleshoot it (as I wrote the script and know it inside and out ).

  3. Join Date
    Mar 2005
    Posts
    5

    News not appearing


    1. Make sure news script is up-to-date from within control panel. Check
    2. Ensure script settings are correct (including absolute path, etc). Check
    3. Ensure database settings correspond to those that are found within your phpBB's config file. Check

  4. Join Date
    Mar 2005
    Posts
    5

    News not appearing

    Here is the code that is generated

    <?php include_once("/home/jimd/public_html/news/news.php");
    $forum_obj = new EP_Dev_Forum_News();
    $forum_obj->display_News("2", "1", "1", "2"); ?>

    now I understand the part with the php include statement but.... How do I handel the $forum_obj variables? The program sets them up but it appears to not display them.

  5. Join Date
    Aug 2004
    Posts
    781

    News not appearing

    Ok, your problem was with your absolute path. While the path was set correctly inside the config, it was not correct inside news.php. You must have manually edited the config file at some point (which is a big no-no ).

    I have modified your absolute paths to match up again. You will need to enter into the control panel and change it (currently it is set to blank).

  6. Join Date
    Mar 2005
    Posts
    5

    News not appearing

    So would the correct absolute path be /home/jimd/public_html/news/ ?

  7. Join Date
    Aug 2004
    Posts
    781

    News not appearing

    Whatever you had set as your absolute path looked like it was probably correct. Once again, your absolute path was probably set correctly, but the problem was in the way you set it. You manually edited config (instead of via admin panel) at some point and put in the absolute path. You cannot do this as the control panel handles writing that absolute path to BOTH config and news. As a result, you threw the absolute path out of sync, and the admin panel no longer had control over the absolute path in the news.php, which is used to include the config file (that then loads settings to include the rest of the script).

    Anyway, don't ever edit the config file manually.

  8. Join Date
    Mar 2005
    Posts
    5

    News not appearing

    Thanks!!! Got it to work finnally.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts