1
nayeem
block not showing up
  • 2004/6/24 15:59

  • nayeem

  • Just popping in

  • Posts: 44

  • Since: 2004/1/3 1


i created a block and now set it to visible but its not showing up for some reason.. anyone has a clue?

the block has full permission to view by all users...


2
nayeem
Re: block not showing up
  • 2004/6/24 16:24

  • nayeem

  • Just popping in

  • Posts: 44

  • Since: 2004/1/3 1


anyone knows where is the bit of code which actually fetches the blocks?

3
tl
Re: block not showing up
  • 2004/6/24 17:01

  • tl

  • Friend of XOOPS

  • Posts: 999

  • Since: 2002/6/23


Try to turn mysql/block debug on.

4
nayeem
Re: block not showing up
  • 2004/6/24 17:28

  • nayeem

  • Just popping in

  • Posts: 44

  • Since: 2004/1/3 1


tried it just now, no new info tho... also went through the header.php and the modulesadmin.php but no clue yet.. only i noticed that it doesnt seem to update the template field in the newblocks table when creating the blocks, i tried manually adding the value but still not working...

5
tl
Re: block not showing up
  • 2004/6/24 17:42

  • tl

  • Friend of XOOPS

  • Posts: 999

  • Since: 2002/6/23


Bear with me, let me summarize

you create a custom block and set it visible
you assign access right to the block (Admin/Groups)
MySQL/Block debug turned no info

Php debug - no info?

Quote:
template field in the newblocks table when creating the blocks


What kind of block are you creating? Custom block does not necessary require templates.

6
nayeem
Re: block not showing up
  • 2004/6/24 17:53

  • nayeem

  • Just popping in

  • Posts: 44

  • Since: 2004/1/3 1


i actually found the problem, for some reason when i upload any files to the OS X server (where i have XOOPS installed) the file permission gets messed up, and the 'templates/blocks' directory had the wrong permission so the installer could not get any values for the templates and left the needed fields empty... once those permissions were fixed everything started working (after reinstalling the module).

my question though is there seems to be a lot of occassions in XOOPS where it keeps quiet if there is a problem... a problem like the above where it couldnt read a template file should be reported and the installation should be aborted instead of reporting a successfull install.


how does blocks without templates work? can i see any examples?

the functions show_block and edit_block, whats the main difference?

there also seems to be a block_file variable, any ideas what that is about?

thanks a bunch.

nayeem

7
tl
Re: block not showing up
  • 2004/6/24 17:58

  • tl

  • Friend of XOOPS

  • Posts: 999

  • Since: 2002/6/23


Quote:

my question though is there seems to be a lot of occassions in XOOPS where it keeps quiet if there is a problem...

Usually if you turn the debug(s) on, XOOPS will indicate any permission problems. Not sure what happened in your case.


Quote:

how does blocks without templates work? can i see any examples?

The welcome block on this site has no template. If the blocks are associated with a module, then the blocks will need templates.

8
nayeem
Re: block not showing up
  • 2004/6/24 20:35

  • nayeem

  • Just popping in

  • Posts: 44

  • Since: 2004/1/3 1


how come my block only shows on the top page and not on any of the other pages?

the block has full access right to all 'registered users'

9
nayeem
Re: block not showing up
  • 2004/6/24 20:38

  • nayeem

  • Just popping in

  • Posts: 44

  • Since: 2004/1/3 1


sorry found the solution. its in blocks->'edit'

10
nayeem
Re: block not showing up
  • 2004/6/25 1:03

  • nayeem

  • Just popping in

  • Posts: 44

  • Since: 2004/1/3 1


the functions show_block and edit_blockwhats the main difference?
there also seems to be a block_file variableany ideas what that is about?

anyone knows anything to these last questions i have on blocks?

thanks

Login

Who's Online

251 user(s) are online (139 user(s) are browsing Support Forums)


Members: 0


Guests: 251


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