Hey guys,
So, I have deployed an extensive network of Non-VB Pages utilizing the framework released with this mod (
https://vborg.vbsupport.ru/showthread.php?t=62164).
Now, in addition to the instructions in that thread, I have included the following code to prohibit guests from viewing the pages that I have uploaded.
Code:
// ########################## REQUIRE BACK-END ############################
chdir('/home2/charmeddark/public_html/forums');
require_once('global.php');
if (!$vbulletin->userinfo['userid'])
{
print_no_permission();
}
Now, my problem is, because you can't view it as a guest, you get redirected to a login page. And once you input your credentials and login, it tries to find the page in the /forums directory, and because its in a non-vb directory, it returns with a 404 error.
Any advice?