1
iHackCode
How Do You Retreive A Block's Properties From The Module's Page?

my current solution has been to run a query on the newblocks table for the mid and func_num of the block..

How do you retrieve the $options from the properties from a block that belongs to a module? is there an object/method/function that handles this already?
CBB / LatestNews / Publisher / XM-Spotlight

(ノ◕ヮ◕)ノ*:・゚✧

2
kaotik
Re: How Do You Retreive A Blocks Properties From The Modules Page?
  • 2007/9/17 14:12

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


use $XoopsBlock
open xoops/class/xoopsblock.php and read through it's functions.
after defining $XoopsBlock($blockid);
you can access
$myoptions=$XoopsBlock->options;

I haven't tried this myself, this is just a sugestion from reading xoopsblock.php

3
iHackCode
Re: How Do You Retreive A Blocks Properties From The Modules Page?

thanks. thats what i'm looking for.
CBB / LatestNews / Publisher / XM-Spotlight

(ノ◕ヮ◕)ノ*:・゚✧

Login

Who's Online

311 user(s) are online (258 user(s) are browsing Support Forums)


Members: 0


Guests: 311


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