1
calvinhobbes
permission related question.

..I am modifying XOOPS a bit and have the few questions...

Permissions related : When a unregistered user clicks on say submit link XOOPS displays message that you have to be registered and directs to signup page.

But if any anonymous user is trying to access say something which he is not allowed to..xoops displays a message saying you are not allowed to access this and redirects back to homepage...

how do i change this to display like the first one ? i want anonymous users to be redirected to signup page..if they are accessing something which is out of bounds

2
TheNewbie
Re: permission related question.
  • 2006/9/17 8:09

  • TheNewbie

  • Just popping in

  • Posts: 25

  • Since: 2006/9/11


Yes, that would be useful. Anyone know this?

3
bleu_
Re: permission related question.
  • 2006/9/17 8:16

  • bleu_

  • Just popping in

  • Posts: 32

  • Since: 2006/8/1 2


what is the difference between an unregistered user and an anonymous user?

4
jensclas
Re: permission related question.

Quote:
what is the difference between an unregistered user and an anonymous user?


There isn't - unregistered are our anonymous. I think the difference is where moudule directs a user to when they try and do something they are not registered to do. From what calvinhobbes is saying I would guess that the links module redirects to a register now page, while other modules redirect to the home page. I have found this when exploring sites when not logging in - some modules go to a sign up, others go to a home page.

What we need here is a coder to assist us with clear instructions on how to make modules redirect to a sign up page rather than home. For example which file is it that needs to be edited and what code needs to be changed. Perhaps you could put in a feature request so this is an option in the core.

5
zyspec
Re: permission related question.
  • 2006/9/17 21:45

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


This is module specific, depending on the design choice of the developer. Unfortunately you'll have to modify the module if you want to change the way a module behaves.

Usually near the top of the file you'll find the code that looks something like:
if (empty($xoopsUser) && !$xoopsModuleConfig['anonpost']) {
  
redirect_header(XOOPS_URL."/index.php",2,_MD_MUSTREGFIRST);
  exit();
}

You'll want to change it to something like:
if (empty($xoopsUser) && !$xoopsModuleConfig['anonpost']) {
  
redirect_header(XOOPS_URL."/user.php",2,_MD_MUSTREGFIRST);
  exit();
}

6
calvinhobbes
Re: permission related question.

..I think this thing got included in 2.0.15 :) i dont have a problem ne more..

yee ha !

Login

Who's Online

223 user(s) are online (145 user(s) are browsing Support Forums)


Members: 0


Guests: 223


more...

Donat-O-Meter

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

Latest GitHub Commits