[mlimg]
[xlang:en]
== ALTSYS == alternative system module & library

[b]SUMMARY:[/b]

The unified module of blocksadmin, tplsadmin, etc.

Just a alpha version.
I'm appreciated your bug reports :-)

I'll maintain this module instead of blocksadmin, tplsadmin, avaman etc.


[b]INSTALL (as a module):[/b]

- set XOOPS_TRUST_PATH into mainfile.php
- copy xoops_trus_path/libs/ in the archive into XOOPS_TRUST_PATH/
- copy html/modules/altsys in the archive into XOOPS_ROOT_PATH/modules/
- install it

With this procedure, you are ready to use a library of altsys.


[b]INSTALL (as a library for D3 modules):[/b]

- comfirm XOOPS_TRUST_PATH is written in mainfile.php correctly.
- copy xoops_trus_path/libs/ in the archive into XOOPS_TRUST_PATH/

Duplicatable V3 (D3) module recognize this library automatically.
You will get blocks,templates menu in your D3 module.
Since mypreferences is automatically enabled too, you will be easy to operate module's prefences.


[b]UPDATE[/b]
from 0.2x to 0.30:
 - remove XOOPS_ROOT_PATH/modules/altsys/ once
 - upload/overwrite both XOOPS_ROOT_PATH/modules/altsys and XOOPS_TRUST_PATH/libs/altsys

from 0.3x to the latter versions
 - just overwrite XOOPS_TRUST_PATH/libs/altsys


[b]USAGE:[/b]

refer blocksadmin about operating 'blocks'.
refer tplsadmin about operating 'templates'.

The new feature as altsys:

(1) myblocksadmin is ready for XOOPS 2.2.x
(2) auto updating feature of templates from not only under /themes/(your theme)/templates but also under /modules/(your module)/templates

If you want auto-update feature from /themes/(your theme)/templates, insert a line into mainfile.php
(A feature for site managers or designers)
[code]
	if (!isset($xoopsOption['nocommon'])) {
		include XOOPS_ROOT_PATH."/include/common.php";
		include XOOPS_TRUST_PATH."/libs/altsys/include/autoupdate_from_theme.inc.php" ;

	}
[/code]

If you want auto-update feature from /modules/(dirname of your module)/templates, insert two lines into mainfile.php
(A feature for programmers or module developpers)
[code]
	if (!isset($xoopsOption['nocommon'])) {
		include XOOPS_ROOT_PATH."/include/common.php";
		$tplsadmin_autoupdate_dirnames = array( '(dirname of your module)' ) ;
		include XOOPS_TRUST_PATH."/libs/altsys/include/autoupdate_from_module.inc.php" ;
	}
[/code]



[/xlang:en]
[xlang:ja]
== ALTSYS == إƥ⥸塼饤֥

׻

ȤŤ餤ƥ⥸塼ȤƺäƤblocksadmintplsadminȤä˴ؤ礷⥸塼Ǥ

Duplicatable V3⥸塼뤫顢饤֥ȤѤǤˤᡢ¤礭ľƤޤ

ߤϦǤǤХ򴿷ޤޤ

ϡavamanۼ伫ȤΥƥʥ󥹤ڤˤȻפޤ


󥹥ȡʥ⥸塼Ȥơ

- mainfile.php ˤ XOOPS_TRUST_PATH ꤷƤ
- ֤xoops_trus_path/XOOPS_TRUST_PATHŸƤ
- ֤html/XOOPS_ROOT_PATHŸƤ
- ⥸塼Ȥƥ󥹥ȡ뤷Ƥ

ξ硢ʲΥ饤֥ȤƤΥ󥹥ȡƱ˴λޤ


󥹥ȡDuplicatable V3⥸塼ѤΥ饤֥Ȥơ

- mainfile.php  XOOPS_TRUST_PATH ꤵƤ뤳ȤǧƤ
- ֤xoops_trus_path/XOOPS_TRUST_PATHŸƤ

D3⥸塼ǤСǼưŪ˥饤֥ǧơ֥åƥץ졼ȴ˥塼ɲäޤˤĤƤ⡢mymenu--⥸塼ǰ꤬뤹--֤ޤʤʬmypreferencesȸƤӤޤˡ


åץǡ

0.2x  0.30 ؤΥåץǡȤǤϡ¦(XOOPS_ROOT_PATH/modules/altsys)򤤤ääƤ顢񤭤Ƥ

0.30ΥåץǡȤǤϡTRUST_PATH¦ξ񤭤ǺѤߤޤ


Ȥ

֥åطblocksadminƱǤ
ƥץ졼ȴطtplsadminƱǤ

altsysȤƤοǽϰʲΤ褦ʤΤǤ

(1) myblocksadmin  XOOPS 2.2.xб
(2) ⥸塼ƥץ졼ȥեμưȿǵǽ

Ȥtplsadminˤϡmainfile.phpcommon.phpɹľˡ
[code]
	if (!isset($xoopsOption['nocommon'])) {
		include XOOPS_ROOT_PATH."/include/common.php";
		include XOOPS_ROOT_PATH."/modules/tplsadmins/include/autoupdate.inc.php" ;
	}
[/code]
Ƚ񤯤Ȥǡơtemplates/ե֤줿ƥץ졼ȤưŪɤ߹ൡǽĤƤޤεǽaltsysǤѤƤޤ
[code]
	if (!isset($xoopsOption['nocommon'])) {
		include XOOPS_ROOT_PATH."/include/common.php";
		include XOOPS_TRUST_PATH."/libs/altsys/include/autoupdate_from_theme.inc.php" ;

	}
[/code]
ե̾κǸˡ"_from_theme" ȤʸɲäƤ뤳ȤդƤ

ϥơޤȥƥץ졼Ȥ˳ȯ롢륵ȹۻ˰ϤȯˡǤ

Фơ⥸塼볫ȯΩĤ褦ˤѰդΤҤ(2)Ǥ
[code]
	if (!isset($xoopsOption['nocommon'])) {
		include XOOPS_ROOT_PATH."/include/common.php";
		$tplsadmin_autoupdate_dirnames = array( 'piCal' ) ;
		include XOOPS_TRUST_PATH."/libs/altsys/include/autoupdate_from_module.inc.php" ;
	}
[/code]
Τ褦˵Ҥ뤳ȤǡpiCal⥸塼Υƥץ졼ȤθեԽǡ¨˥ǡ١ȿǤޤincludeˡ$tplsadmin_autoupdate_dirnamesarray 򥻥åȤƤȤפǡʣΥ⥸塼Ʊꤹ뤳ȤǽǤ

ΨŪʥ⥸塼볫ȯˤΩƤ


[/xlang:ja]
