PDA

View Full Version : category id's. help.



deko
01-23-2005, 02:31 PM
ok sorry to sound like a n00b but i dont have a clue what category id's are. i go through everything in admin and generate code and it gives me this.


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

i put that in a basic php page and i get this


No posts found in selected forum category.

my page where i want the page displayed is. http://gtagames.southsidedesigns.net/new.php

my forums are at http://gtagames.southsidedesigns.net/forums.

thanks.



if you could consider taking a look yourself post and ill pm you details. thanks a lot.

Patrick
01-23-2005, 04:47 PM
I used the word category ID because almost everyone ( ;) ) who uses a forum knows what a category refers to. In your case, the category may be called a forum or something similar. I look on your forum and the link to your site news forum is:
http://www.gtagames.southsidedesigns.net/forums/index.php?showforum=4

See the bolded text above? The 4 is your category id. Either set the default category id in the control panel under Forum Settings or specify it when you go to generate code on the Generate Code page.

deko
01-23-2005, 05:04 PM
ok cool. thanks. im kinda just learning. ill try it.

Patrick
01-23-2005, 05:07 PM
Oh, do not forget that you probably still have caching enabled. If you are testing this stuff out I suggest you turn it off until you get the layout and all the way you want. Otherwise your news will only update every x minutes (where x is your cache time setting).

Go to Script Settings page of Control Panel and set caching time to 0.

deko
01-23-2005, 05:44 PM
ok thanks. it works like a dream. thanks a lot.

now all i have top do is change the templates and im done. thanks.