1
nthomson
Customized block contents not displaying
  • 2004/8/4 21:57

  • nthomson

  • Just popping in

  • Posts: 49

  • Since: 2004/4/13


Hi,

I had created few customized blocks. I set it to appear by setting visible to "Yes" in Block Administration.

When I try to view the page, the block header shows up but not the block content..I tried with different themes and checked the code of themes. Every thing is fine..

I checked the database. The block content is saved there..

I also have given all the groups access to this block.

Has any one come across the same problem?

Thanks,
Ann

2
Bassman
Re: Customized block contents not displaying
  • 2004/8/4 23:20

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


What type of block content is it? HTML or PHP?

3
nthomson
Re: Customized block contents not displaying
  • 2004/8/5 2:34

  • nthomson

  • Just popping in

  • Posts: 49

  • Since: 2004/4/13


Hi Bassman,

It's HTML blocks...

Ann

4
Bassman
Re: Customized block contents not displaying
  • 2004/8/5 2:40

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


hmmmm....
2 suggestions, I haven't tried either to see what happens, but....

1) did you select HTML as the content type?

2) In the custom blocks i've done, I have no <html> or <head> or <body> tags, did you enclose yours in them? all my content is in a table.

5
nthomson
Re: Customized block contents not displaying
  • 2004/8/5 3:45

  • nthomson

  • Just popping in

  • Posts: 49

  • Since: 2004/4/13


Hi Bassman,

I had selected HTML as the contenttype. And i put the content in <table> tags

for eg: this is the content

<table>

This is a test

</table>

The content body just wouldn't appear tho' the header of the customized block appears...

Thanks,
Ann

6
Bassman
Re: Customized block contents not displaying
  • 2004/8/5 3:54

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


Ann, that's bizarre, because I just tried the same thing on my site and it worked. I doubt it makes any difference, but you could try selecting "Yes" in the "Update module template .html files from themes/your theme/templates directory?" in Preferences if it's not already.

7
nthomson
Re: Customized block contents not displaying
  • 2004/8/5 14:06

  • nthomson

  • Just popping in

  • Posts: 49

  • Since: 2004/4/13


Hey Bassman,

I did that too...I am still trying to figure out what's happening .Will definitely post if i find a solution..

Ann

8
nthomson
Re: Customized block contents not displaying
  • 2004/8/5 14:42

  • nthomson

  • Just popping in

  • Posts: 49

  • Since: 2004/4/13


Hey Bassman,

Today I was checking the database again, and it looked like the new customized blocks were not written into xoops_newblocks.Havw you come across this problem?

Thanks,
Ann

9
nthomson
Re: Customized block contents not displaying
  • 2004/8/5 15:14

  • nthomson

  • Just popping in

  • Posts: 49

  • Since: 2004/4/13


ooops..soory.,..it is getting saved in the database fine..

It shows side, weight, visible, block_type, c_type, isactive for the new customized block as 5, 1, 1, C, H, 1 respectively..

I think the "'content' => $bcontent" portion in following in /htm/header.php is failing..

$xoopsTpl->append('xoops_ccblocks', array('title' => $block_arr[$i]->getVar('title'), 'content' => $bcontent));

I get the block title displayed but not the content...

Thanks

Ann

Login

Who's Online

217 user(s) are online (151 user(s) are browsing Support Forums)


Members: 0


Guests: 217


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