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

[b]SUMMARY:[/b]

The unified module of blocksadmin, tplsadmin, etc around the system.

I'm appreciated your bug reports :-)

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


[b]INSTALL:[/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


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


[b]FEATURES[/b]

- easy block administration 
- easy permission adminstration
- easy copy/delete/edit any DB templates
- easy import/export any DB templates
- displaying diff between each version of templates
- finding the template you want to edit easily
- making an Extension for Dreamweaver to edit templates
- modifying adminmenu in the left side of XOOPS 2.0.x easier
- displaying admin controll panels in any conventional themes
- supporting three types of template auto-updating into the DB
- modifying operations/developments of any versions of core (X2,XCL2.1,ImpressCMS etc.) efficient


[b]DB template auto-updating feature[/b]

This feature make your customizing/developping DB templates much efficient.
Altsys supports three types of auto-updating into the DB.

(1) auto-updating template under the theme.
This feature is useful for developper of site/theme.
Insert a line just after including common.php of mainfile.php.
[code]
		include XOOPS_ROOT_PATH."/include/common.php";
		[color=ff0000]
		include XOOPS_TRUST_PATH."/libs/altsys/include/autoupdate_from_theme.inc.php" ;
		[/color]
[/code]
Then, just modifying the templates of /themes/(your_theme)/templates/* will be updated into the DB

(2) auto-updating template under the module
This feature is useful for developper of modules.
Insert two lines just after including common.php of mainfile.php.
[code]
		include XOOPS_ROOT_PATH."/include/common.php";
		[color=ff0000]
		$tplsadmin_autoupdate_dirnames = array( '(your_module)' ) ;
		include XOOPS_TRUST_PATH."/libs/altsys/include/autoupdate_from_module.inc.php" ;
		[/color]
[/code]
Then, just modifying the templates of /modules/(your_module)/templates/* will be updated into the DB.
You can specify modules multiply. eg) array( 'piCal' , 'tinyd0' )

(3) auto-updating template under XOOPS_TRUST_PATH
This feature is useful for developper of D3 modules.
Insert two lines just after including common.php of mainfile.php.
[code]
		include XOOPS_ROOT_PATH."/include/common.php";
		[color=ff0000]
		$tplsadmin_autoupdate_mydirnames = array( 'pico' , 'd3forum' ) ;
		include XOOPS_TRUST_PATH."/libs/altsys/include/autoupdate_from_d3module.inc.php" ;
		[/color]
[/code]
Then, just modifying the templates of XOOPS_TRUST_PATH/modules/pico/templates/* and XOOPS_TRUST_PATH/modules/d3forum/templates/* will be updated into the DB.


[b]admin in theme[/b]

You can display admin side in the theme for XOOPS.
This must be useful for accessibility or mobile.

You have to make some patch for enabling this feature.

(1) XOOPS2.0.x
Insert a line just after including common.php of mainfile.php.
[code]
		include XOOPS_TRUST_PATH.'/libs/altsys/include/admin_in_theme.inc.php' ;
[/code]

(2) XOOPS Cube Legacy 2.1
Insert some lines into settings/site_custom.ini.php (If this file does not exist, make it newly)
[code]
[RenderSystems]
Legacy_AdminRenderSystem=Legacy_AltsysAdminRenderSystem

[Legacy_AltsysAdminRenderSystem]
path=/modules/altsys/include
class=Legacy_AltsysAdminRenderSystem
[/code]

(3) XOOPS 2.2 and ORETEKI
Not supported yet

Specify the theme for admin in the preferences of altsys.
This means that you can specify different themes between public and admin.
If you disable "admin in theme", set blank here.

If you want to diplaying a block into the admin, Specify "ALTSYS" as the target explicitly.


[b]Admin menu hack[/b]

Even if you turn "admin in theme" disabled, you can modify the adminmenu in the left side of admin area. (for 2.0.x)

Just change "Rewrite admin menu" in altsys's preferences.
This is not a core hack but a cache hack.
If your admin area is broken, just remove cache/adminmenu.


[b]Language constants override system[/b]

mylangadmin offers you to override the language constants of each modules.

But, there are a hardle to enable this feature.

- You always override constants of module using D3LanguageManager natively.

- With core XoopsCube Legacy2.1, you can use this feature with conventional modules just by copying preload/SetupAltsysLangMgr.class.php

- With conventinal core of XOOPS2, you have to hack the core. (follow the instruction in mylangadmin)

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

׻

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

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

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


󥹥ȡ

- mainfile.php ˤ XOOPS_TRUST_PATH ꤷƤ
- ֤xoops_trus_path/XOOPS_TRUST_PATHŸƤ
- ֤html/XOOPS_ROOT_PATHŸƤ
- ⥸塼Ȥƥ󥹥ȡ뤷Ƥ
- ̥ơ޵ǽѤϡμ˽äƤ


åץǡ

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

0.4顢altsysϸᥤĤ褦ˤʤޤᥤ˥塼ʤɤˡALTSYSɽƺϡ⥸塼ɽ0ѹƤ


ǽ

- X2Ƚ䤹֥åǤޤ
- X2Ƚ䤹´Ǥޤ
- DBƥץ졼Ȥǽ褫ԽǤޤ
- ƥץ졼ȤΥݡ/ݡȤͳߤǤ
- ƥץ졼Խκʬɽޤ
- оݥƥץ졼Ȥ򸫤Ĥ䤹Ǥޤ
- ƥץ졼Խ򤷤䤹뤿DreamWeaverExtensionưޤ
- X2̤δ˥塼ʬɽǤޤ
- ̤̾ơޤɽ뤳ȤǤޤʴ̥ơ޵ǽȡ
- ƥץ졼ȼưǽ󶡤ޤʥƥץ졼ȼưǽȡ
- X2, XCL2.1, ImpressCMS륳ȯΨ夷ޤ


ƥץ졼ȼưǽ

DBƥץ졼ȤԽݤˤϡե򹹿ǡưŪDBƥץ졼ȤȿǤƤ뵡ǽȡȤƤⳫȯΨ夷ޤaltsysǤϡ3ĤΥѥ󶡤ޤ

(1)ơƥץ졼ȼưǽ
Ȥơ޳ȯԤˤȤäʵǽǤ
mainfile.phpcommon.phpɹԤľˡʲΤ褦ˣޤ
[code]
		include XOOPS_ROOT_PATH."/include/common.php";
		[color=ff0000]
		include XOOPS_TRUST_PATH."/libs/altsys/include/autoupdate_from_theme.inc.php" ;
		[/color]
[/code]
ˤꡢ򤵤줿ơtemplates/ե֤줿ƥץ졼ȤưŪɤ߹褦ˤʤޤ

(2)⥸塼ƥץ졼ȼưǽ
⥸塼볫ȯԤˤȤäʵǽǤ
mainfile.phpcommon.phpɹԤľˡʲΤ褦ˣޤ
[code]
		include XOOPS_ROOT_PATH."/include/common.php";
		[color=ff0000]
		$tplsadmin_autoupdate_dirnames = array( 'piCal' ) ;
		include XOOPS_TRUST_PATH."/libs/altsys/include/autoupdate_from_module.inc.php" ;
		[/color]
[/code]
Τ褦˵Ҥ뤳ȤǡpiCal⥸塼Υƥץ졼ȤθեԽǡ¨˥ǡ١ȿǤޤincludeˡ$tplsadmin_autoupdate_dirnames򥻥åȤƤȤפǤ
ʣΥ⥸塼Ʊꤹ뤳ȤǽǤarray( 'piCal' , 'tinyd0' ) Τ褦˻ꤷޤ

(3)TRUST_PATHƥץ졼ȼưǽ
D3⥸塼볫ȯԤˤȤäʵǽǤ
mainfile.phpcommon.phpɹԤľˡʲΤ褦ˣޤ
[code]
		include XOOPS_ROOT_PATH."/include/common.php";
		[color=ff0000]
		$tplsadmin_autoupdate_mydirnames = array( 'pico' , 'd3forum' ) ;
		include XOOPS_TRUST_PATH."/libs/altsys/include/autoupdate_from_d3module.inc.php" ;
		[/color]
[/code]
Τ褦˵Ҥ뤳Ȥǡpico⥸塼d3forumΥƥץ졼ȤθեԽǡ¨˥ǡ١ȿǤޤincludeˡ$tplsadmin_autoupdate_mydirnames򥻥åȤƤȤפǤ

(1)(3)Τ⡢ʻѤǽǤ


̥ơ޵ǽ

̤򡢸ѤΥơޤɽޤˤꡢ̤̤Ʊ̤ǥ쥹ѤǤ褦ˤʤꡢѼԤˤȤäƤΰ´ʤʤåȤޤȤΤ⡢ơޡƥץ졼ȥ٥ǤǤ夵뤳ȤǤޤ

פˤäͭˡ㤤ޤʲŪXOOPS2.2ˤбƤޤ

(1) XOOPS2.0.x
mainfile.php common.phpɹԤľˡʲΣԤޤ
[code]
		include XOOPS_TRUST_PATH.'/libs/altsys/include/admin_in_theme.inc.php' ;
[/code]
̵ˤϡΣԤƤ

(2) XOOPS Cube Legacy 2.1
settings/site_custom.ini.php ˰ʲιԤޤʤΥե뤬ʤк
[code]
[RenderSystems]
Legacy_AdminRenderSystem=Legacy_AltsysAdminRenderSystem

[Legacy_AltsysAdminRenderSystem]
path=/modules/altsys/include
class=Legacy_AltsysAdminRenderSystem
[/code]
̵ˤϡιԤƤ

̥ơޤϡaltsysΰǻꤷޤ
Ĥޤꡢ¦ơޤȴ¦ơޤ̡ΤΤǤޤ
ˤǤ⡢̥ơޤ̵뤳ȤǤޤ
ȯˤϡˡȤΤǤ

ۤȤɤΥ֥ḁ̊ơޤɽ뤳ȤǽǤ֥åǡڡפȻꤷƤ̤ˤɽޤALTSYS⥸塼Фɽꤵ줿֥åɽޤ̤ˤ̤ˤɽ֥åǤСڡפȡALTSYSפCTRL+åξ򤷤Ƥ

̤ǤΥϥޥ򤱤뤿ˡ̤ˤϤʤ餺˥塼֥åɽޤŪɽ򤷤Ƥʤ硢֥åΰ־˶ޤɽꤵƤСΤޤɽޤ


˥塼

0.4顢ִ˥塼ץ֥åaltsysˤĤޤ֥å顢ALTSYS⥸塼Фɽꤹ뤳Ȥǡ˥֥åɽޤ󤳤ϡ̥ơޤͭˤʤäƤΤߤǤ

XOOPS2.0.x ˤơ̤̾ѤƤʴ̥ơޤѤƤʤˡaltsysΡִѥ˥塼ν񤭴פ̣ޤƤߤƤˤäƤ⤷̤ʤäʤ顢cache/adminmenu.php ȤեƤ顢餿ƴ̤줷ޤʳǧ̤ǡ֤Ϥפ򲡤Ƥ


ե륪С饤

0.5ե륪С饤ɵǽaltsysˤĤޤ顢⥸塼->->եǡɬפʬ񤭴Ǥ

줬ͭˤʤʤ¿դɬפǤ

D3LanguageManagerб⥸塼ǤС̵ͭ˵ǽޤʳΥ⥸塼ˤĤƤϡСˤ󤬤ޤ

XoopsCube Legacy2.1ǤкǤñǤźդpreloadͭˤǤǰŪʥ⥸塼Ͻ񤭴ǽǤ

XOOPS2ˤĤơεǽͭˤ뤿ˤϡHackɬפˤʤäƤޤޤեζɹ񤭴ˤʤ뤿ᡢŪϡɥ⤯ޤꤪᤷޤ󡣡ʤ⤳ǤϽ񤭤ޤ

[/xlang:ja]
