How to set difference view page after user login at zikula  Bottom

  • Hi there..
    What should i do for set up difference page after user login at Zikula ????

    Example :
    When someone user login, first page view after login is depend of group membership.

    Thanks..
  • MMMMmmmmm
    i'm afraid that is not possible to implement that without hack the core by now...
    in Zikula 2.0, we'll have some global hooks (like 'systeminit'),
    'afterlogin' can be another point to register a customized behavior,
    but in this point, you need to add that customized code in the Users module
    hacking and not in a clean way...

    --
    - Mateo T. -
    Mis principios... son mis fines
  • Couldn't a plugin be used to cause a group membership based redirect from the default homepage?

    --
    Under Construction!
  • I do not know what exactly you want to achieve, but permissions may be your friend. You could create a Pagesetter document type for the front page, and then create two or three documents of that type. Next, set permissions for each document so that each group sees only one of the documents - or something along these lines, but with a different module...

    --
    And out of the chaos sounded a voice and spoke: "Be happy and smile, for it could have come worse."
    And I was happy and smiled - and it came worse...
  • system/Users/pnuser.php

    edit

    Code

    function users_user_login()
    {
    ...
     if ($login_redirect == 1) {
                // WCAG compliant login
                return pnRedirect($url);
            } else {
                // meta refresh
                users_print_redirectpage(_USERS_LOGGINGYOUIN, $url);
            }
    ...
    }


    and customize the $URL variable

    with some modification this will help you to implement group check
    http://community.zikula.org/module-Database-viewpub-tid-8-pid-23.htm



    edited by: mumuri, Aug 30, 2008 - 09:03 AM
  • i will try..
    thanks for advice :D
  • 0 users

This list is based on users active over the last 60 minutes.