1
subirdkimo
Re: Howto get the current block id?
  • 2006/5/23 7:19

  • subirdkimo

  • Just popping in

  • Posts: 3

  • Since: 2005/11/21


Thanks a lots,anyway!
But due to I use the 2.2.3 final version, and I explore the kernel/block.php file, I cannot find the keywords "$block = $show_func($options);" that you mention about. And the detail in kernel/block.php is not easy for me to understand, does anyone can help me more? thanks again!



2
subirdkimo
Re: Howto get the current block id?
  • 2006/5/23 2:55

  • subirdkimo

  • Just popping in

  • Posts: 3

  • Since: 2005/11/21


Thanks your kindly reply!
and sorry for my unclearly describe, the real question I fact to is when I design a block in my module, I have specified
$modversion['blocks'][1]['file'] = "CH_blocks.php";
$modversion['blocks'][1]['show_func'] = "block_show"; in the xoops_version.php file.
And now I try to get the block id in the block_show function by php code in the CH_blocks.php file, but I don't know how to get the current block(or instance) id which I just design or to get the property of the block(for example: the title of the block...).



3
subirdkimo
Howto get the current block id?
  • 2006/5/22 10:41

  • subirdkimo

  • Just popping in

  • Posts: 3

  • Since: 2005/11/21


Dear All
How can I get the current block id in the block_show function?
thankx!




TopTop



Login

Who's Online

159 user(s) are online (83 user(s) are browsing Support Forums)


Members: 0


Guests: 159


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