PDA

View Full Version : Variable in Threadbits not working


Andr? Noberto
01-21-2017, 11:03 AM
I'm trying to place additional information in threadbit but nothing is happening, there is the code.

Hook: threadbit_display

$getting = new dm_extraInfo;
$threadExtraInfo = $getting->obter_extraInfo($thread['threadid']);

//Just for debugging
print_r($threadExtraInfo );


vB_Template::preRegister('threadbit', $threadExtraInfo);


I've tried to register the variable but that doesn't work
vB_Template::preRegister('threadbit', $threadExtraInfo);

I'm using print_r just to see if the correct data is being received
print_r($threadExtraInfo );
It's show all extra information from all threads in that page but at threadbit the variable acts like empty.

Can you help me with this?