MyBB Community Forums

Full Version: OUGC Landing Page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
[Image: preview_25096_1702347776_0b6dc0cbefc37e9...243480.png]
Set a forced landing page for certain groups.

🚀 About

Introducing OUGC Landing Page by OUGC.Network, a plugin that lets you guide specific user groups to unique pages and offers the flexibility to skip redirects for chosen bypass scripts. Whether you want to force registration, share exclusive content, or important updates, this plugin empowers you to create tailored interactions for different users.

âž• More Information

You can find more information in the plugin GitHub repository or the official OUGC.Network web page.

Download

Download the latest package from the MyBB Extend site or from the repository releases.
Hello Omar, when I redirect to a page made with OUGC Pages it sends me an error or tells me that there is a cookie error, I also wanted to redirect to the portal and it doesn't support it either, what could I be doing wrong?
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.