1
je1024
Troublous problem 1.0
  • 2008/1/29 5:28

  • je1024

  • Just popping in

  • Posts: 4

  • Since: 2007/12/29


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)

2
je1024
Re: Troublous problem...........TROUBLOUS PROBLEM........
  • 2008/1/29 5:37

  • je1024

  • Just popping in

  • Posts: 4

  • Since: 2007/12/29


I am sorry that i repeat putting the same questions,but i thought the title "Troublous problems on building a new block BUT i built blocks successfully before" is too long, noone willing to view that page.

And i just can not edit the title ,so i have to summit again.

3
je1024
Re: Troublous problem 1.0
  • 2008/4/10 9:20

  • je1024

  • Just popping in

  • Posts: 4

  • Since: 2007/12/29


IF anyone have faced the farmiliar problem
(the problem that you can not build a block),
please tell me the way how you solve it.

Thanks.

4
avtx30
Re: Troublous problem 1.0
  • 2008/4/10 9:34

  • avtx30

  • Not too shy to talk

  • Posts: 181

  • Since: 2006/10/12


As I know, we don't build blocks that way. Custom blocks should be built from the control panel, not by writing php files.

Login

Who's Online

448 user(s) are online (330 user(s) are browsing Support Forums)


Members: 0


Guests: 448


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits