Nein. Meinst Du die Option im ACP -> Newspoint -> Maintenance ->
Reconstruct TemplatesReconstruct templates
The templates: postbit, postbit_classic and member_profile will be edited in order to fix variable duplicates.
/*************************************************************/****************************************************************************
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
****************************************************************************/
// Templates used by NewPoints
$templatelist = "newpoints_home,newpoints_donate,newpoints_statistics,newpoints_statistics_richest_user,newpoints_statistics_donation,newpoints_no_results,newpoints_option";
require_once "./global.php";
$plugins->run_hooks("newpoints_begin");
add_breadcrumb(Konto);
// Allow guests here? Some plugins may allow guest access and they may hook to newpoints_start
if (!$mybb->user['uid'] && NP_DISABLE_GUESTS == 1)
error_no_permission();
// load language
$lang->load("newpoints");
// build the menu
$menu = array();
// default menu options
$menu[0] = '<a href="'.$mybb->settings['bburl'].'/newpoints.php">'.$lang->newpoints_home.'</a>';
if ($mybb->settings['newpoints_main_statsvisible'] == 1)
$menu[1] = '<a href="'.$mybb->settings['bburl'].'/newpoints.php?action=stats">'.$lang->newpoints_statistics.'</a>';
if ($mybb->settings['newpoints_main_donationsenabled'] == 1)
$menu[2] = '<a href="'.$mybb->settings['bburl'].'/newpoints.php?action=donate">'.$lang->newpoints_donate.'</a>';
// Block guests here
if (!$mybb->user['uid'])
error_no_permission();
// no action = home
if (!$mybb->input['action'])
{
$plugins->run_hooks("newpoints_home_start");
$income_settings = '';
// get income settings' titles, descriptions and its value
$query = $db->simple_select('newpoints_settings', '*', 'plugin=\'income\'');
while ($setting = $db->fetch_array($query))
{
if ($setting['name'] == 'newpoints_income_minchar')
$value = $setting['value']." ".$lang->newpoints_chars;
else
$value = newpoints_format_points($setting['value']);
if ($mybb->settings['newpoints_main_donationsenabled'] != 1)
error($lang->newpoints_donations_disabled);
$plugins->run_hooks("newpoints_do_donate_start");
// make sure we're not trying to send a donation to ourselves
$username = trim($mybb->input['username']);
if ($username == $mybb->user['username'])
error($lang->newpoints_cant_donate_self);
// do we have enough points?
if ($amount <= 0 || $amount > $mybb->user['newpoints'])
error($lang->newpoints_invalid_amount);
// make sure we're sending points to a valid user
$touser = newpoints_getuser_byname($username, 'uid,username');
if (!$touser)
{
error($lang->newpoints_invalid_user);
}
// remove points from us
newpoints_addpoints($mybb->user['uid'], -($amount));
// give points to user
newpoints_addpoints($username, $amount, 1, 1, true);
// send pm to the user if the "Send PM on donate" setting is set to Yes
if ($mybb->settings['newpoints_main_donationspm'] != 0)
{
if ($mybb->input['reason'] != '')
newpoints_send_pm(array('subject' => $lang->newpoints_donate_subject, 'message' => $lang->sprintf($lang->newpoints_donate_message_reason, newpoints_format_points($amount), htmlspecialchars_uni($mybb->input['reason'])), 'receivepms' => 1, 'touid' => $touser['uid']));
else
newpoints_send_pm(array('subject' => $lang->newpoints_donate_subject, 'message' => $lang->sprintf($lang->newpoints_donate_message, newpoints_format_points($amount)), 'receivepms' => 1, 'touid' => $touser['uid']));
}
Sorry, ich habe das Plugin nicht im Einsatz und kann mich da auch nicht mal "einfach so" in den Code rein denken. Noch dazu, dass man erst einmal großartig suchen müsste, was Du wo alles geändert hast.
Evtl. machst Du Deine Änderungen einfach mal rückgängig. Ich frage mich eh, warum immer so viele Plugins geändert werden "müssen", wenn man u.U. nicht wirklich weiß, was man da macht.