Boofo
05-11-2010, 10:45 AM
I just finished updating an old hack of mine, more to learn the new ways of doing things than anything else. And I ran into something tonight that still has me baffled, but supposedly it is "Working as designed". Here is the post of the bug report for it, and it doesn't make a lick of sense to me.
http://www.vbulletin.com/forum/project.php?issueid=25495
Can someone please explain why the only hook that is in the "memberinfo_block_ministats" template can't be used from the "member_complete" hook? You have to hook into the "member_profileblock_fetch_unwrapped" hook to either run your code or globalize the variable before you run your code. I tried globalizing the template_hook variable there and running the code in the member_complete, but that didn't work. In order to make it work, I had to run my code from the "member_profileblock_fetch_unwrapped" hook. Does anyone else think that is a little wrong? Or am I missing something right in front of me? Please, someone, enlighten me. ;)
http://www.vbulletin.com/forum/project.php?issueid=25495
Can someone please explain why the only hook that is in the "memberinfo_block_ministats" template can't be used from the "member_complete" hook? You have to hook into the "member_profileblock_fetch_unwrapped" hook to either run your code or globalize the variable before you run your code. I tried globalizing the template_hook variable there and running the code in the member_complete, but that didn't work. In order to make it work, I had to run my code from the "member_profileblock_fetch_unwrapped" hook. Does anyone else think that is a little wrong? Or am I missing something right in front of me? Please, someone, enlighten me. ;)