If you do code in a pMachine db import will ya, it'll make the changeover that much easier for me :-)
2 2003-11-19 00:12
Re: Putting forum in a div (9 replies, posted in Programming)
Oddly enough, although I'm not gonna complain, I dropped Punbb into an iframe and the cookie setting issue I experienced previously with other forums within a frameset has not reared it's ugly head.
IMO Layout using an iframe bytes but it's workable :-)
Thanks again
M
3 2003-11-18 00:20
Re: Putting forum in a div (9 replies, posted in Programming)
It is an option - the one of last resort really :-)
I've used forums within frames and iframes that require that a cookie be set (such as the login cookie) that worked erratically in the past, read.... the cookie didn't always get set for right frame.
This is a new install so there is always the option of reinstalling in the /pmachine directory (will just have to check and make sure it wouldn't overwrite any files that happen to share a file name) and it would work fine.
I'll test the iframe option first though.
Thanks for looking into this.
M
4 2003-11-17 22:11
Re: Putting forum in a div (9 replies, posted in Programming)
The forum and everything related to it are going to live in one div.
I really appreciate this Kennel, thanks !!
M
5 2003-11-17 19:04
Re: Putting forum in a div (9 replies, posted in Programming)
So, if I understand correctly, if I put
set_include_path(get_include_path().':path/to/forum');
at the head of the code in the index.php file at which point I can use include() to get the forum into the content div on a page one level up from /forum?
Just for greater certainty the main blog lives in a directory /pmachine and is displayed by /pmachine/weblog.php.
The weblog.php page has 3 div's.... left - content - right
The forum has been installed in /pmachine/forum and is displayed by /pmachine/forum/index.php
I want the forum to show up in a page called forum.php (in /pmachine) by inserting something in the content div that will allow the forum (and all supporting files below /pmachine/forum/) to be found and operate properly.
Did that make any sense at all?
Thanks
6 2003-11-17 01:22
Topic: Putting forum in a div (9 replies, posted in Programming)
I'd like to integrate PunBB into a 3 column blog, layout is all css.
The left & right div's have links, nav, and such with the middle div holding content.
I've tried using include() to get the forum, which lives in a sub dir of the root directory, to get it in but have experienced no joy as index.php seems to lose track of where the files it requires are.
Has anyone already accomplished what I'm looking to do? If so how.
Thanks