1
streetwalkin
user rank = user group

Is there any way I can get the user's rank and group to be connected so that when the user posts and ranks up in its rank (forum rank) it's group will also go up allowing it do access more modules.

2
tripmon
Re: user rank = user group
  • 2006/3/30 7:21

  • tripmon

  • Module Developer

  • Posts: 462

  • Since: 2004/2/28


it would have to be a core hack, and a potentially dangerous one (at least at first glance) as permissions and user rank are in no way related, and as allowing rank to elevate group status would require tighter security restrictions than are currently imposed on rank (imwo).

Not to say that somewhere there isn't something that will do this, but just saying unless it was well orchestrated, I bet it would open some nasty little security holes.

3
Mantooth
Re: user rank = user group
  • 2006/3/30 15:41

  • Mantooth

  • Friend of XOOPS

  • Posts: 189

  • Since: 2004/11/2


i've been wanting something like that ever since i started using xoops!

it seems like any security problems wouldn't be that bad as long as you had special groups that couldn't be touched, like "webmaster" and "moderator".

or it might work if module administration could be done by either group or rank. but i guess a lot of people who didn't want the feature would complain about it being there.
...


I hate Mortal Kombat

4
streetwalkin
Re: user rank = user group

Is there a way to have a module deny access to a user with a low post count?

5
Mantooth
Re: user rank = user group
  • 2006/3/31 17:48

  • Mantooth

  • Friend of XOOPS

  • Posts: 189

  • Since: 2004/11/2


You could insert a few lines of code into the module's header to do that. I don't know php, but it would be VERY easy for one of the module developers to show you.

if you find anything out, let me know because i would like to do that on one of my modules also.
...


I hate Mortal Kombat

6
migoe
Re: user rank = user group
  • 2006/5/15 18:47

  • migoe

  • Just popping in

  • Posts: 68

  • Since: 2003/4/2 9


I'm looking for a hack like this too. Is there a chance, that someone give us a little code?

migoe
whttp://www.liedermacher-forum.de | German Singers and Songwriters

http://www.weltladen-rothenburg.de | German Site about Fair trade Project

7
migoe
Re: user rank = user group
  • 2006/5/30 20:17

  • migoe

  • Just popping in

  • Posts: 68

  • Since: 2003/4/2 9


An Admin from the german support site http://www.myxoops.org have give this solution:

Quote:
insert in XOOPS_ROOT/header.php this code:

if ($xoopsUser) { // Abfrage ob User eingeloggt
  
$xoopsTpl->assign('member_posts'$xoopsUser->posts());
  
$mrank=$xoopsUser->rank();
  
$xoopsTpl->assign('member_rank'$mrank['title']);
  
$member_posts=intval($xoopsUser->posts());
  
$member_rank=trim($mrank['title']);
} else {
  
$xoopsTpl->assign('member_posts',0);
  
$xoopsTpl->assign('member_rank','');
  
$member_posts=0;
  
$member_rank=0;
}


and in XOOPS_ROOT/modules/modulename/index.php this:

if ($member_posts 10) {
  
redirect_header(XOOPS_URL."/"3,_NOPERM);
  exit();
}



but, it doesn't work? Have anyone an idea?

migoe
whttp://www.liedermacher-forum.de | German Singers and Songwriters

http://www.weltladen-rothenburg.de | German Site about Fair trade Project

Login

Who's Online

290 user(s) are online (253 user(s) are browsing Support Forums)


Members: 0


Guests: 290


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