Saturday, January 21, 2006

Update on phpBB and PostNuke permissions


I just found out today that the page, linked from this post, that described how to make phpBB respect PostNuke permissions is not up.  Here are the instructions that I used, as I remember them.


Update the following files:


faq.php, index.php, memberlist.php, search.php, viewforum.php, viewonline.php and viewtopic.php


and add the following chunk of code to the beginning:




// Begin PNphpBB2 Module
if (!defined("LOADED_AS_MODULE")) {
die ("You can't access this file directly...");
}
// Security check
if (!pnSecAuthAction(0, 'PNphpBB2::', '::', ACCESS_READ)) {
include 'header.php';
echo '<div align="center"><center><table border="0" width="400" height="100%">
<tr><td height="300" width="100%" valign="middle">     In or
der to protect the privacy of the home owers, you must login in order to access
the forums.</td></tr></table></center></div>';
include 'footer.php';
return;
}


Technorati Tags: , ,