MyBB-Plugins Forums

Full Version: Newpoints in Postbit
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey Pirata,

I changed my postbit layout a little bit, and added definition lists <dl> <dt> etc.

[attachment=1151]

Sadly, the newpoints dont accept that. I tried editing the newpoints_postbit template:

Code:
<dt>Bounty:</dt><dd><a href="{$mybb->settings['bburl']}/newpoints.php"> {$points}</a></dd>

This way, it worked with everything else (as you can see on my screenshot), even with the Thank You/Like plugin.

But the newpoints dont accept the definitionlist somehow. Can you tell me how I can make this work? Maybe instead of {$post} I can create a language variable $post['points'] or something similar?

Thanks
NewPoints's postbit information is not in the user details template - which is likely where you have your list. Hence why it wouldn't work properly.
(05-10-2014, 02:42 AM)Pirata Nervo Wrote: [ -> ]NewPoints's postbit information is not in the user details template - which is likely where you have your list. Hence why it wouldn't work properly.

I tried to put this

Code:
{$post['newpoints_postbit']}

out of the postbit_classic template and into the postbit_author_user template, but it didnt work.

Is there a way to put the newpoints into the user details, maybe with a different syntax?
It's not possible. The code inside that template isn't eval'd after the postbit hook so to put it there we'd need to use replacements on the fly and NewPoints doesn't do that.