Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
6 + 7 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: user rank = user group
by migoe on 2006/5/30 20:17:32

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

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

le="color: #000000"><?php 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:

le="color: #000000"><?php if ($member_posts < 10) { redirect_header(XOOPS_URL."/", 3,_NOPERM); exit(); }



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

migoe
Re: user rank = user group
by migoe on 2006/5/15 18:47:06

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

migoe
Re: user rank = user group
by Mantooth on 2006/3/31 17:48:18

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.
Re: user rank = user group
by streetwalkin on 2006/3/30 20:56:04

Is there a way to have a module deny access to a user with a low post count?
Re: user rank = user group
by Mantooth on 2006/3/30 15:41:44

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.

Who's Online

367 user(s) are online (311 user(s) are browsing Support Forums)


Members: 0


Guests: 367


more...

Donat-O-Meter

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

Latest GitHub Commits