Hi, it is necessary to add the
Redirect To
URL to the
Excepted Scripts
code, otherwise you will find yourself into a loop that will lead to some time out or white page.
By default the plugin redirects to the registration page and this is already part of the exception code, so I missed to document this properly in the REAME file.
For the portal the settings would match the following :
Redirect To: portal.php
Excepted Scripts:
{
 "captcha.php": "",
 "contact.php": "",
 "css.php": "",
 "member.php": {
  "action": [
   "register",
   "do_register",
   "login",
   "do_login",
   "logout"
  ]
 },
 "task.php": "",
 "xmlhttp.php": "",
 "portal.php": ""
}
For a custom page using the OUGC Pages plugin the settings would match the following :
Redirect To: pages.php?page=unique-url
(Should work with _friendly URLs_ if you enabled them but I didn't test.)
Excepted Scripts:
{
 "captcha.php": "",
 "contact.php": "",
 "css.php": "",
 "member.php": {
  "action": [
   "register",
   "do_register",
   "login",
   "do_login",
   "logout"
  ]
 },
 "task.php": "",
 "xmlhttp.php": "",
 "pages.php": {
  "category": [
   "unique-url"
  ],
  "page": [
   "unique-url"
  ]
 }
}
(I did add a category exemption example in case it is useful.)
Also note that most of the exception list is so that the forum doesn't break, for instance by failing to load CSS files, breaking the captcha, or stopping users from either logging in or logging out, etc. So I simply added the pages you did ask for to the default exception list but you are free to configure as you think it fits your forum.
I also pushed a quick fix for when using multiple action keys for the same file, as I did in my second code above for the
pages.php
file. The code did work fine only with single input keys. Apply the patch yourself :
https://github.com/OUGC-Network/OUGC-Lan...94b1624a17
Or simply download from the
develop
branch :
https://github.com/OUGC-Network/OUGC-Lan...ee/develop
I will update the Extend version once I update the README.
Regards.