How to use minihaku (2)

Date 2006-08-29 06:26:18 | Category: XOOPS

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.






You can read more news at PEAK XOOPS.
http://xoops.peak.ne.jp

The URL for this story is:
http://xoops.peak.ne.jp/md/news/index.php?page=article&storyid=353