1
arlindo
Diferent startup module for diferent groups
  • 2009/11/2 12:14

  • arlindo

  • Just popping in

  • Posts: 23

  • Since: 2007/10/9


Hi There!

Does anyone knows how i may have one diferent startup module for the registered users, diferent then the regular one i choose in the Main preferences?

I would like to have this:

- If Anonimous - Shows the module configurated has initial in the XOOPS preferences;

- If Registered User - Go to one diferente module when logs in or opens the page if already logged in.

Possible?

Best Regards!!

Arlindo

2
trabis
Re: Diferent startup module for diferent groups
  • 2009/11/2 12:49

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


open index.php
// start of hack
if (is_object($xoopsUser)) {
    
$xoopsConfig['startpage'] = 'the_other_module_dirname';
}
//end of hack

//check if start page is defined
if (isset($xoopsConfig['startpage']) && $xoopsConfig['startpage'] != "" && $xoopsConfig['startpage'] != "--") {
    
// Temporary solution for start page redirection
    
define("XOOPS_STARTPAGE_REDIRECTED"1);

3
Mazarin
Re: Diferent startup module for diferent groups
  • 2009/11/3 12:00

  • Mazarin

  • Just can't stay away

  • Posts: 533

  • Since: 2008/12/10


Actually, there was a module for this:
https://xoops.org/modules/repository/singlefile.php?cid=101&lid=1731

Unfortunately, I think it needs to be upgraded to work with XOOPS 2.3 and higher.

4
arlindo
Re: Diferent startup module for diferent groups
  • 2009/11/10 19:08

  • arlindo

  • Just popping in

  • Posts: 23

  • Since: 2007/10/9


Hi there,

I made the Hack that trabis suggested, but if the module Mazarin refers worked, it would be great!! Infortunetly i use one version higher then 2.3...

Thanks Trabis!! You are the men! ( again... !)

Best Regards!!


5
arlindo
Re: Diferent startup module for diferent groups
  • 2009/11/24 22:18

  • arlindo

  • Just popping in

  • Posts: 23

  • Since: 2007/10/9


Hi there,

This HACK works OK, but i also wanted this feature:

With the Hack it happens this:
- I go to my Website not logged in and i see the startup Module configurated in the XOOPS Main Configurations.
- If i go to my Website already logged in, I see the module designated by the Hack.


But Imagine This:

If go to my website not logged in , i see the startup Module configurated in the XOOPS Main Configurations, Then, if I login it stays in the same module. How do we make to redirect to one diferent module after login?

Hope you can help me!

Arlindo


Login

Who's Online

429 user(s) are online (317 user(s) are browsing Support Forums)


Members: 1


Guests: 428


Runeher2,

more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits