+ Reply to Thread
Results 1 to 9 of 9

Thread: News and Headlines both of them doesn't work

  1. Join Date
    May 2005
    Posts
    5

    News and Headlines both of them doesn't work

    when i use
    Code:
    <?php include_once("/home/freeforlife/public_html/forum/forum-news/news.php");
    $forum_obj = new EP_Dev_Forum_News();
    $forum_obj->display_Headlines("10", "2", "13", "0"); ?>
    it displays "No posts found in selected forum category."


    and when use
    Code:
    <?php include_once("/home/freeforlife/public_html/forum/forum-news/news.php");
    $forum_obj = new EP_Dev_Forum_News();
    $forum_obj->display_News("10", "2", "13", "0"); ?>
    it displays "Fatal error: Call to a member function on a non-object in /home/freeforlife/public_html/forum/forum-news/news.php on line 278"


    --------------------------------

    tried trick
    Find:

    CODE*
    $this->display_News($number=NULL, $ids=NULL, $forums=NULL, $template_id=0, true);



    and Replace with:

    CODE*
    $this->display_News($number, $ids, $forums, $template_id, true);
    but still same errors.

    i use vb 3.0.7, i believe that i make everything necessary. is there a problem with this version ?

  2. Join Date
    Aug 2004
    Posts
    781

    News and Headlines both of them doesn't work

    I have look through the code and thought about it. I guess the first question is: Is the forum enabled in the EP-Dev Forum News Adminstration panel? My guess is that it isn't, as that would cause such an error. Go to the "Forum Settings" page in the admin panel and make sure that it is enabled.

  3. Join Date
    May 2005
    Posts
    5

    News and Headlines both of them doesn't work

    yes it is already enabled

    i set up forum 2 for vbulletin3, enter same settings as in the vb config. Db connection is ok becase i made a mistake before it gave me db error than i rearranged and it is ok.

    forum url, db prefix also right

    Default Category Ids -> 2

    where is the mistake
    :wacko:

  4. Join Date
    May 2005
    Posts
    5

    News and Headlines both of them doesn't work

    i find that when i enter

    $forum_obj->display_News("5", "1", "0", "1"); ?>

    and want news display it says "No posts found in selected forum category."

    otherside i enter a number other than 0 it always says "Fatal error: Call to a member function on a non-object in /home/freeforlife/public_html/forum/forum-news/news.php on line 278"

    ----------------------------

    different forum numbers for headlines doesn't change anything. it is always "No posts found in selected forum category."



    for vb 3.0.7 for ex. showthread.php?t=552
    i use 552 for forum number am i right ?

  5. Join Date
    Aug 2004
    Posts
    781

    News and Headlines both of them doesn't work

    No, that is wrong. That appears to be the "topic id", not the forum category.

    The forum category is http://domain.com/forumdisplay.php?f=##

    where ## is the category. Perhaps this is your problem?

  6. Join Date
    May 2005
    Posts
    5

    News and Headlines both of them doesn't work

    sorry i wrote a wrong example

    i mean like yours http://domain.com/forumdisplay.php?f=##

    ## this is the category than i have no problem with this.


    i wonder , have anyone ever tried script with vb 3.0.x ??

  7. Join Date
    Aug 2004
    Posts
    781

    News and Headlines both of them doesn't work

    The script was designed for 3.0.3, but your problem is not an SQL problem (which would indicate version conflict), but instead a basic PHP scripting problem. What version of PHP are you using?

    Place the following into phpinfo.php and visit in browser to find out:
    Code:
    <?php phpinfo(); ?>

  8. Join Date
    May 2005
    Posts
    5

    News and Headlines both of them doesn't work

    i look through: php 4.3.10 and mysql 4.0.22

    what do you think about ?

  9. Join Date
    Aug 2004
    Posts
    781

    News and Headlines both of them doesn't work

    I can take a look at this myself if you want. PM me your FTP details if you wish.

    I am not seeing where the problem is from here.

+ 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