PDA

View Full Version : Create array for thread, fetch data from it in posts


zardos
10-07-2010, 10:44 AM
Hey I'm looking to acomplish something like this:

I want to fill an array with data in showthread and then I want to fetch data from this array in every post that belongs to this thread:

#Thread - create array
--Postbit in thread - fetch data from array
--Postbit in thread - fetch data from array

and so on. Any suggestions on how I could do this? What hooks should I use.

Tried creating the array in showthread_start and then fetch data from the array in postbit_display_start (where I would output to $template_hook[postbit_signature_end] but didn't success with this - The array I created in showthread_start couldn't be reached by postbit_display_start.

Thankfull for input.

kh99
10-07-2010, 12:46 PM
Did you try declaring your array as global in your postbit_display_start plugin?

zardos
10-07-2010, 02:36 PM
Did you try declaring your array as global in your postbit_display_start plugin?

ofcourse :erm: ! thanks