1
trewdy
Blank php block
  • 2006/9/11 20:51

  • trewdy

  • Just popping in

  • Posts: 4

  • Since: 2003/5/2 2


I've recently upgraded from 2.0.13 to 2.0.15 as well as from newbb1 to newbb2.02. I'm having troubles with adding a new block to display recent posts to a forum. The script I add works fine in the add block preview window, but when I go to view it outside of the preview I end up with a block that has a title but no content. This is what I've entered in the block content. Any ideas what my problem is?

include_once(XOOPS_ROOT_PATH . /modules/newbb/blocks/newbb_block.php');
$options = "10|0|time|1";
b_newbb_custom($options);

Thanks for your help.

2
Quest
Re: Blank php block
  • 2006/9/11 21:01

  • Quest

  • Friend of XOOPS

  • Posts: 1034

  • Since: 2005/11/19


I am not completely sure as I am so below even a novice when it comes to php but it looks like you are missing a '.

include_once(XOOPS_ROOT_PATH . '/modules/newbb/blocks/newbb_block.php');
$options = "10|0|time|1";
b_newbb_custom($options);

HTH
Quest

3
trewdy
Re: Blank php block
  • 2006/10/31 23:18

  • trewdy

  • Just popping in

  • Posts: 4

  • Since: 2003/5/2 2


Qwest,

Took me a while to see this reply. You're right, the missing ' would have been a problem, but it turns out that I've got it in the block - just not here in this forum post.

Still without an answer to this one I guess.

Thanks anyway,
trewdy

4
Mithrandir
Re: Blank php block

1) PHP debug showing anything?
2) $options should be an array when calling the function
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."

Cusix Software

5
kidx
Re: Blank php block
  • 2011/3/29 11:52

  • kidx

  • Just popping in

  • Posts: 28

  • Since: 2011/3/29


how do you even get a block to go i have php nuke blocks will they work.

Login

Who's Online

451 user(s) are online (309 user(s) are browsing Support Forums)


Members: 0


Guests: 451


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