I [:"red"]
L O V E [/] Queen!!!
Bohemiam Rhapsody is my favorite. I think I'm gonna have to put that on here in the office while I type this.
I made a directory on my site.... for example "mma2om" and put an IIP index page and a pals folder in there.
Then in that directories index.php file... I modified this:
For
$palspath = "/home/measurection/htdocs/mma2om";
I made this the path to this new special directory INSTEAD of my threads install
Then I added this:
$threadspath = "/home/measurection/htdocs/forums";
which is the path to my real threads install.
Then I changed this:
include "{$palspath}/main.inc.php";
to:
include "{$threadspath}/main.inc.php";
Then in currentthreadspal.php I found this:
SELECT B_Number,B_Posted,B_Last_Post,B_Username,B_Subject,B_Main,B_Replies,B_Counter,B_Board
FROM {$config['tbprefix']}Posts
WHERE B_Number = B_Main
AND B_Posted > '$date'
AND B_Approved = 'yes'
and added:
AND B_Board = 'mma2om'
to it. *mma2om" is the board keyword I wanted to limit it to.
Same things in topthreadspal.php
Find this:
SELECT B_Number,B_Posted,B_Last_Post,B_Username,B_Subject,B_Main,B_Replies,B_Counter,B_Board
FROM {$config['tbprefix']}Posts
WHERE B_Number = B_Main
AND B_Last_Post > '$date'
AND B_Approved = 'yes'
add this:
AND B_Board = 'mma2om'
I didn't fool with making the online config editor work. I think there's another path change needed to make it work and update. I didn't play with it much, I edited the configpal manually for this directory.
If you were doing a bunch of these.... I guess you could define a board keyword variable in the config pal, then call it in the pal scripts for B_Board. I didn't get that fancy. Mine was down and dirty, and quick.
Hope that helps.