1
je1024
Troublous problems on building a new block BUT i built blocks successfully before.
  • 2007/12/29 3:06

  • 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 just encountered a problem:

if missing a "DIV" or the "DIV" is not match.


for eample like this :
##########################
<div>1</div>
<div>2</div>
<div>3</div>
<div>
##########################
or
##########################
<div>1</div>
<div>2</div>
<div>3</div>
</div>
##########################

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
trabis
Re: Troublous problems on building a new block BUT i built blocks successfully before.
  • 2007/12/29 3:17

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Maybe you reached your disk space limit, eheh!
Well, I donĀ“t think XOOPS has problems with the number 11, or was it the 13?
Hum...
Double check your code, see if you have a repeated function, comment some lines, debug it.

What do you mean with:
5:[Make sur that the block is in the right sequence.]
???

Login

Who's Online

229 user(s) are online (143 user(s) are browsing Support Forums)


Members: 0


Guests: 229


more...

Donat-O-Meter

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

Latest GitHub Commits