first i make a summary on blilding a block:
###########################
1:[ change the Xoops_version.php file]
add:
PHP filename,
Name,
Description,
Function name,
HTML filename,
2:[ Notice the file content:]
PHP file,
HTMLfile,
Make sure that the code of the two file above have no error,
3: [Notice the filename:]
PHP file,
HTMLfile,
Make sure that the PHP filename and HTML filename you set in the xoops_version.php
is really exist.
4:[update the datebase in the XOOPS control panel]
5:[Make sure that the block is in the right sequence.]
such as:
<{$xoops_clblocks[0].content}>
<{$xoops_ccblocks[0].content}>
<{$xoops_crblocks[0].content}>
<{$xoops_lblocks[0].content}>
<{$xoops_rblocks[0].content}>
<{$xoops_clblocks[1].content}>
<{$xoops_ccblocks[2].content}>
<{$xoops_crblocks[3].content}>
<{$xoops_lblocks[4].content}>
<{$xoops_rblocks[5].content}>
ETC.
###########################
And i build over 10 blocks with the method above,
and they all work normal in the index page.
and when i just want to make one more block,
It does not work!!!!!!
When i build the new block ,and make it visible in the XOOPS control panel,the other blocks i built before are all unvisible in the index page !!!!
I am so confused!
the XOOPS system that i am building have been built by the other colleague,he make a lot of useless blocks.
Friends,please give me some suggestion.
--------------------------------------------
for example,make a new blcok ,called "test".
PHP filename: test.php,
NAME: test,
Desription: test,
Function: test(),
HTML filename: test.html
I make the Funtion empty to avoid function error,
the code of test():
test(){
}
the content of test.html:
samual2004
And by the way:
10 is not the Sequence number,i mean that i make over 10 blocks totally.
----------------------------------------------
and now i am so cofuessing,
because the system that i am building is not using
WEB 1.0 instead of WEB2.0,so the template index.php
not contain any "table" (html table),but just "DIV",
i have encountered a problem:
if missing a "DIV" or the "DIV" is not match.
for eample like this :
##########################
1
2
3
##########################
or
##########################
1
2
3
##########################
Totally say: if the "div" is in somewhat orderless,
the other blocks in the index.php will be unvisiable too.
I have checked more than once to avoide this problem.
but it is still the same(the other block will be unvisiable in the index.php),if i make the "test" block visiable in the XOOP control panel.
(To trabis)Thank you for your advice.
edit:2007-12-29 15:07(beijing time)