Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
0 + 6 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
   

Re: Accessing xoopsModuleConfig from a block
by Mazarin on 2009/10/21 11:04:11

I must be blind. Terribly sorry for not paying enough attention to the previous post. Thanks for pointing it out to me.
Re: Accessing xoopsModuleConfig from a block
by ghia on 2009/10/20 22:46:43

See this.
Re: Accessing xoopsModuleConfig from a block
by Mazarin on 2009/10/20 20:38:01

OK, I went at this again and right now it looks like I may get it to work using stefan88's code to call the handlers. However, not being a php pro (n00b rather), I can't figure out one thing.

When using the handlers as described by stefan88, I get a variable. I can only get the values from that array through a loop and not by calling an index in the array (e.g. $resultArray[0]). Is it so that this array only has specific keys and not automatic index numbers? If so, how can I get hold of those keys to get the value?
Re: Accessing xoopsModuleConfig from a block
by Mazarin on 2009/10/17 7:37:28

Update: I finally figured out that it was actually a call for the user id that made the screen go blank when I wasn't logged in. With that fixed, we can go back to the original problem

Even if it should work to do what you stated above in the block function, I'm very reluctant to do so. The reason for this being that it would mean having the same logic in two different places. I guess I'll just keep trying different things, but if anyone has any sudden revelations regarding how to call a specific module's parameters from a block, please post.
Re: Accessing xoopsModuleConfig from a block
by Mazarin on 2009/10/16 18:34:46

Things are getting weirder by the hour here. It didn't work turning it into a block function, so I gave in and did a query directly to the config table (which is bad, because that means I can't release these small improvement as an updated verison of XoopsPoll ).

However, now it turns out that when I try to access the static function from the block without being logged in, it just gives me a blank screen. WTF?! Works fine if I'm logged in, but if not, calling the function from the block just renders a blank page without even any debug info (I've checked, it's the call to the static function that causes it). Any ideas what could be wrong?

Who's Online

184 user(s) are online (133 user(s) are browsing Support Forums)


Members: 0


Guests: 184


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits