PDA

View Full Version : Showing data in postbit via plugins


Jelmertjee
12-01-2007, 10:50 AM
I'm trying to show some custom data in threads, but can't get it too work via plugins. I've tried all the possible hooks and added a variable in the postbit template (which I defined in the plugin of course) but it's never showing up.

Getting the data from the db is not a problem, but it's no use if I can't even get a simple variable in a plugin to work, any ideas how to do this?? Which hooks should work, or which files should I edit if there are no possible hooks for this?

Opserty
12-01-2007, 02:46 PM
It would help if you said what data you were trying to get. Based on what you have said you need to use one of the postbit hooks. (Off the top of my head something like postbit_display_start would do).

What code are you using to get the data?
Is any data actually returned? (Run a var_dump() on the variable which you are using.)
Try manually setting the variable in the plugin to test it and seeing if you can see it in the postbit.

Jelmertjee
12-07-2007, 09:14 AM
Thanks! That worked, I was actually just using a simple variable to test it but have managed to setup everything how I want it now, postbit_display_start was the right hook like you said.

I'm not sure if i forgot that one or it works now for another reason. It doesn't really matter as long as it works now.