[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/m/altsys in the archive into XOOPS_ROOT_PATH/m/
- install it


[b]UPDATE[/b]
from 0.2x/0.3x:
 - remove XOOPS_ROOT_PATH/m/altsys/ once
 - upload/overwrite both XOOPS_ROOT_PATH/m/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 /m/(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/m/pico/templates/* and XOOPS_TRUST_PATH/m/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=/m/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 == ���إ����ƥ�⥸�塼����饤�֥��

���׻�

�Ȥ��Ť餤�����ƥ�⥸�塼�������Ȥ��ƺ�äƤ���blocksadmin��tplsadmin�Ȥ��ä������˴ؤ����������礷���⥸�塼��Ǥ���

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

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


�����󥹥ȡ���

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


�����åץǡ���

0.2x �� 0.3x ����Υ��åץǡ��ȤǤϡ��/m/S_ROOT_PATH/modules/altsys)�򤤤ä���ä��Ƥ��顢��񤭤��Ƥ���������

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


����ǽ

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


���ƥ�ץ졼�ȼ�ư������ǽ

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

(1)�ơ�����ƥ�ץ졼�ȼ�ư������ǽ
�����Ȥ�ơ��޳�ȯ�ԤˤȤä������ʵ�ǽ�Ǥ���
mainfile.php��common.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.php��common.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.php��common.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=/m/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]
