2012-06-18, 02:58 PM
My plugin uses the showthread_start and postbit hooks.
When the former is called, it queries the database and assembles a multidimensional array.
Each time the latter is called, that multidimensional array is compared to the current postbit's author and some HTML is displayed (or not).
As such, the data collected at thread start needs to be available when each postbit is written. Currently I am just dumping it into $_SESSION['somekey'] and pulling it back out again for examination in each postbit, but I figured there was probably a "right myBB way" of doing this.
Is there?
When the former is called, it queries the database and assembles a multidimensional array.
Each time the latter is called, that multidimensional array is compared to the current postbit's author and some HTML is displayed (or not).
As such, the data collected at thread start needs to be available when each postbit is written. Currently I am just dumping it into $_SESSION['somekey'] and pulling it back out again for examination in each postbit, but I figured there was probably a "right myBB way" of doing this.
Is there?