MyBB-Plugins Forums
Displaying NewPoints in Preview Post window - 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)
+----- Forum: Development (http://forums.mybb-plugins.com/Forum-Development)
+----- Thread: Displaying NewPoints in Preview Post window (/Thread-Displaying-NewPoints-in-Preview-Post-window)



Displaying NewPoints in Preview Post window - seahawk2000 - 02-26-2013

I have updated the announcement.php file to handle the display of NewPoints; however, I have the same issue in the Preview Post window. It is displaying the _NEWPOINTS_ rather than the user points.

Is there an identified fix for this?


RE: Displaying NewPoints in Preview Post window - Omar G. - 02-26-2013

It is currently not supported, you will need some core edits to make it work.

Open 'ROO/inc/plugins/newpoints/core/hooks.php' and find:
PHP Code:
$plugins->add_hook('postbit''newpoints_postbit'50); // set priority to 50 

Add after:
PHP Code:
$plugins->add_hook('postbit_prev''newpoints_postbit'50); // set priority to 50
$plugins->add_hook('postbit_pm''newpoints_postbit'50); // set priority to 50
$plugins->add_hook('postbit_announcement''newpoints_postbit'50); // set priority to 50 

This should hopefully work.