PEAK XOOPS - How to use minihaku (2) in englishin japanese

Archive | RSS |
XOOPS
XOOPS : How to use minihaku (2)
Poster : GIJOE on 2006-08-29 06:26:18 (14100 reads)

in englishin japanese
How to manage groups on registering user.

If you want some "Regkey" to register the user into specific groups, write like this:

config.php


<?php
	if( @$_POST['regkey'] == 'REGKEY_AS_YOU_LIKE' ) {
		$auto_belong_groups = array( 4 ) ;
	} else {
		$auto_belong_groups = array( 2 ) ;
	}
?>


Of course, you should write an element into registering form.

minihaku_register.html

Regkey: <input type="text" name="regkey" id="regkey" size="25" maxlength="25" value="<{$regkey|escape}>" /> - set blank if you don't know it.


0 comments

Related articles
Printer friendly page Send this story to a friend

Comments list

Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!