I could really do with a few hints on this one.. please?

anyone? hmm

I'm setting up one of the final features of my site, and have one little request for assistance with this problem.

How easy/hard/possible would it be to do the punBB part of the following script:

? someone navigates to page
? they enter data about a 'project' (title, description, etc)
? information is added to one database table (title, date started, user id, etc etc)
? [punbb part] title, description, userid, date posted, etc are used to create a new subforum and first thread in that subforum.

i don't have the subforum mod installed yet (it's on the list).

i have decent enough php/mysql knowledge, but i'm having trouble understanding "post.php".

how would i go about, let's say, just having the content of a file called http://site.net/create/project/index.php, containing "subject" and "message" fields, and a submit button, where "subject" is used for both the subforum and the thread title.

what would the code be?


thanks muchly wink

i've been trying to integrate punBB stuff on to other pages on my website. the forum is at /discussion/, and my PUN_ROOT is set to './'

if i go in to the /my/ directory, and try and link back by putting in

define('PUN_ROOT', './discussion/');
require PUN_ROOT.'include/common.php';

it doesn't work, despite the "integration docs" saying this. if i change the /discussion/index.php (the punbb homepage) to './discussion/' from './', it just tanks, giving the following response:

response from /my/

Warning: require(./discussion/include/common.php) [function.require]: failed to open stream: No such file or directory in /home/main/public_html/my/index.php on line 6

Fatal error: require() [function.require]: Failed opening required './discussion/include/common.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/main/public_html/my/index.php on line 6

response from /discussions/ with PUN_ROOT set other than './'

Warning: require(./discussion/include/common.php) [function.require]: failed to open stream: No such file or directory in /home/main/public_html/discussion/index.php on line 27

Fatal error: require() [function.require]: Failed opening required './discussion/include/common.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/main/public_html/discussion/index.php on line 27

this is confusing the hell out of me, i can't grasp how PUN_ROOT is expected to work, and why it's not. it seems like it should be an absolute from the / of the site, but it doesn't function this way. and something's locked so that anything outside of /discussion/ can't talk to punBB.

all i want to do is have a line on each page (in all the different directories, such as /my/, /watch/, /create/, and so on), that says 'you're logged in', or 'you aren't logged in'. with a few extra links of course... plus i installed and spent 22hrs customising punBB so i could use the authentication and base user management for the whole site! eep.

i hope someone can help clear all this up for moose! thanks in advance smile