I just upgraded to the latest version of IP Board, and ever since then it has been taking over an area of the website. If you type in that folder location on your browser, it will say a 404 error on the forums; however, if you go to index.php on that folder, it works fine. I do not know if I am allowed to post the link to where the issue is or not, so let me know.
The only thing that area has in common with IPBoard is it uses the system to see if a user has logged in. Maybe this has changed from 3.0.x to 3.1.x and the code is messing up? But why would location/index.php work instead of location?
Here is my code to get the login information:
function getMemberData()
{
$forum_path = "../forums";
/**
* We will change directories so that proper directory is picked up
*/
chdir( $forum_path );
/**
* Get some basic IPB files
*/
define( 'IPB_THIS_SCRIPT', 'public' );
require_once( 'initdata.php' );
/**
* Get IPB registry
*/
require_once( IPS_ROOT_PATH . 'sources/base/ipsRegistry.php' );
require_once( IPS_ROOT_PATH . 'sources/base/ipsController.php' );
/**
* initialise the ipsRegistry
*/
$ipbRegistry = ipsRegistry::instance();
$ipbRegistry->init();
return $ipbRegistry->member()->fetchMemberData();
}
If somebody knows IPB, could you let me know if they changed their member data from version 3.0.x to 3.1.x? Or if you know a better way to do this?
Question
+xWhiplash Subscriber²
Hello everyone,
I just upgraded to the latest version of IP Board, and ever since then it has been taking over an area of the website. If you type in that folder location on your browser, it will say a 404 error on the forums; however, if you go to index.php on that folder, it works fine. I do not know if I am allowed to post the link to where the issue is or not, so let me know.
The only thing that area has in common with IPBoard is it uses the system to see if a user has logged in. Maybe this has changed from 3.0.x to 3.1.x and the code is messing up? But why would location/index.php work instead of location?
Here is my code to get the login information:
function getMemberData() { $forum_path = "../forums"; /** * We will change directories so that proper directory is picked up */ chdir( $forum_path ); /** * Get some basic IPB files */ define( 'IPB_THIS_SCRIPT', 'public' ); require_once( 'initdata.php' ); /** * Get IPB registry */ require_once( IPS_ROOT_PATH . 'sources/base/ipsRegistry.php' ); require_once( IPS_ROOT_PATH . 'sources/base/ipsController.php' ); /** * initialise the ipsRegistry */ $ipbRegistry = ipsRegistry::instance(); $ipbRegistry->init(); return $ipbRegistry->member()->fetchMemberData(); }If somebody knows IPB, could you let me know if they changed their member data from version 3.0.x to 3.1.x? Or if you know a better way to do this?
Thanks!
Link to comment
Share on other sites
5 answers to this question
Recommended Posts