PDA

View Full Version : News and Headlines both of them doesn't work



Rondar
05-13-2005, 05:38 PM
when i use
<?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
<?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 ?

Patrick
05-13-2005, 07:29 PM
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.

Rondar
05-14-2005, 03:55 AM
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:

Rondar
05-14-2005, 04:26 PM
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 ?

Patrick
05-14-2005, 07:21 PM
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?

Rondar
05-15-2005, 05:37 AM
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 ??

Patrick
05-15-2005, 12:30 PM
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:

<?php phpinfo(); ?>

Rondar
05-17-2005, 05:46 PM
i look through: php 4.3.10 and mysql 4.0.22

what do you think about ?

Patrick
05-18-2005, 05:13 PM
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.