Log in

View Full Version : Show thanks count for each post on threadbit


root2012
11-18-2013, 03:42 PM
I figured out what I have to do, sorta...

I have to preregister the variable for use in another template. So I tried creating a plugin/hook to threadbit_display with PHP Code..

$post_thanks_count = $templater->render();
vB_Template::preRegister('thanks_postbit',array('p ost_thanks_count' => $post_thanks_count));

What this is supposed to be doing is registering the {vb:raw post_thanks_count} variable from 'thanks_postbit' template so I can display it in 'threadbit_display' template. But I'm doing something wrong.

vS-Hide Hack Resurrection

vb4.2

thx

tbworld
11-18-2013, 07:49 PM
What thank you MOD?

1.) Does that variable actually exist at that point where you are pre-registering?
2.) Is $post_thanks_count a template? Not quite sure why you are trying to render it there? I thought you were just pushing "thanks" count.

A few more details would help and we might be able to get you there. :)

root2012
11-19-2013, 06:57 PM
this is the mod I use my
https://vborg.vbsupport.ru/showthread.php?t=237057&page=6

so that there are
{vb:raw post_thanks_count}

I would like to have that so if you know
147235

thx

tbworld
11-20-2013, 08:22 AM
I checked for that variable in the "mod" posted there, it does not exist. I do not own the expanded version of the "mod", so at this point I cannot be of any assistance.

Sorry :(