View Thread
 Print Thread
Different Homepage For Each User Group?
FreedomIOPList
Does anyone know what line of code I'd need to put in a custom page (not PHP-Fusion's Custom Pages but custom PHP Pages I'm creating) that would redirect users to a specific homepage after login based on their user group? I am creating different homepages for each user group they will see after login to the site.
[b][center]My PHP-Fusion Siteshttp://www.freedomioplist.comhttp://www.heavenshandmades.com/news.php
[b][color=#333366]PHP-Fusion Projects Portal
[url]http://www.p
 
http://www.freedomioplist.com
NetriX
You could edit setuser.php in your base directory.

Just replace and/or add group id.
Download source  PHP
  1. <?php
  2. /*-------------------------------------------------------+
  3. | PHP-Fusion Content Management System
  4. | Copyright (C) PHP-Fusion Inc
  5. | https://www.php-fusion.co.uk/
  6. +--------------------------------------------------------+
  7. | Filename: setuser.php
  8. | Author: Nick Jones (Digitanium)
  9. +--------------------------------------------------------+
  10. | This program is released as free software under the
  11. | Affero GPL license. You can redistribute it and/or
  12. | modify it under the terms of this license which you
  13. | can read by viewing the included agpl.txt or online
  14. | at http://www.gnu.org/licenses/agpl.html. Removal of this
  15. | copyright header is strictly prohibited without
  16. | written permission from the original author(s).
  17. +--------------------------------------------------------*/
  18. require_once "maincore.php";
  19.  
  20. if (checkgroup("1")) {
  21.  redirect("group1.php");
  22. }
  23.  
  24. redirect($settings&#91;'opening_page'&#93;);
  25.  
  26. mysql_close($db_connect);
  27. ?>

Need help? Having trouble?
» View our Documentation for guides, functions and more - including the [url=https://php-fusion.co.uk/articles.php?cat_
 
https://netrixhosting.com
douwe_yntema
Maybe we can create some dynamically option frome here: https://www.php-fusion.co.uk/forum/vi...ost_203662
 
Jump to Forum
Similar Threads
Thread Forum Replies Last Post
Adding Selz Link to User Profile Addon Requests 1 10-14-2017 07:42
Any way to restrict individual forum posts by group? Addon Requests 2 05-08-2016 13:39
User Store help [7.02.XX] General Development 2 09-15-2015 03:49
away to list certain user group Addon Requests 24 04-30-2015 13:28
User rights and Prilidges General Chat 11 01-23-2015 16:54