1 (edited by jnu 2007-11-09 10:34)

Topic: how do I integrate posts on another page

hi there
I am new to PunBB , so far I love it. Have already easily customized a style.

I want to show posts on other pages of my website.
I want to know how to do 2 things.
1. show all posts in a particular category.
2. show one particular post (by ID )

I have my test page working ok it includes the following php code, and displays my user name
define('PUN_TURN_OFF_MAINT', 1);
define('PUN_QUIET_VISIT', 1);
define('PUN_ROOT', './forum/');
require PUN_ROOT.'include/common.php';

echo pun_htmlspecialchars($pun_user['username']);

I am assuming I use $db , but I want to know if there are any shortcuts, or do I have to create sql calls and do it all manually.

I tried searching this forum and other forums, but could not find this specifically, if it is posted somewhere else could someone show me the link?
I don't want the miniportal, as that is overkill for my needs.

thanks
Johnny

Re: how do I integrate posts on another page

You have to execute SQL queries manually wink

3

Re: how do I integrate posts on another page

thanks Smartys

Re: how do I integrate posts on another page

extern.php?

5 (edited by jnu 2007-11-09 15:37)

Re: how do I integrate posts on another page

I was having trouble using SSI or php include on godaddy, I still cannot use either. does not matter what I do with .htaccess.

I don't want to construct sql strings, and luckily I finally found out that godaddy supports CURL via proxy

so I will end up using extern.php anyway.

now I just have to find documentation of extern.php.

whoops, the file is documented.

thanks