MyBB-Plugins Forums
Newpoints in Postbit - Printable Version

+- MyBB-Plugins Forums (http://forums.mybb-plugins.com)
+-- Forum: Archived Forums (http://forums.mybb-plugins.com/Forum-Archived-Forums)
+--- Forum: MyBB 1.6.x (http://forums.mybb-plugins.com/Forum-MyBB-1-6-x)
+---- Forum: NewPoints (http://forums.mybb-plugins.com/Forum-NewPoints)
+---- Thread: Newpoints in Postbit (/Thread-Newpoints-in-Postbit--5176)



Newpoints in Postbit - Gobee129 - 05-10-2014

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


RE: Newpoints in Postbit - Diogo Parrinha - 05-10-2014

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.


RE: Newpoints in Postbit - Gobee129 - 05-10-2014

(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?


RE: Newpoints in Postbit - Diogo Parrinha - 05-10-2014

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.