Topic: moving register.php and userlist.php outside of punbb

So I would like to remove register.php and userlist.php outside of punbb to create a better integrated site.

Now moving the files out of the punbb directory is easy...I simply move them and then change the pun_root define and path to common.php and then run them and they seem to operate as before with little change.

However I want to remove the header.php include (or at least the main.tpl influence over these files) from both files and when I do that and refresh then I am presented with a blank screen.

How would I go about ridding register.php and userlist.php of their ties to main.tpl?


Thanks in advance smile

Punbb w/coppermine and wordpress integrated

see my hack to integrate punbb with wordpress comment system.
Illustration Community

Re: moving register.php and userlist.php outside of punbb

I'm not really following, do you want to remove the links from the menu?

Re: moving register.php and userlist.php outside of punbb

i want to stop the template file being wrapped around register.php and userlist.php

and the only way I can see todo this is to remove the include to header.php, but neither page will load up at all without header.php included.

any ideas?

Punbb w/coppermine and wordpress integrated

see my hack to integrate punbb with wordpress comment system.
Illustration Community

4

Re: moving register.php and userlist.php outside of punbb

You can't. PunBB pages are produced by merging gnerated markup with main.tpl. No main.tpl, no page. You could create a custom .tpl file and then alter header.php to use that for selected pages but there has to be a template file to merge with.

Re: moving register.php and userlist.php outside of punbb

surely I can get register.php to do the same thing without header.php??

Punbb w/coppermine and wordpress integrated

see my hack to integrate punbb with wordpress comment system.
Illustration Community

6

Re: moving register.php and userlist.php outside of punbb

Header.php sets up the merging. You would have to copy the relevant bits from header.php to register.php.

Re: moving register.php and userlist.php outside of punbb

ah ok thanks for your help

Punbb w/coppermine and wordpress integrated

see my hack to integrate punbb with wordpress comment system.
Illustration Community