I got a question for you guys who aren't really confident with mods.
What makes you think like that? It's actually quite easy and here's a tip:
Most of the time if you have to find something like this (taken from cash mod for example):
Find:
Code:
if (!$config['allow_attachments'] && !$config['allow_pm_attach'])
{
trigger_error('ATTACHMENT_FUNCTIONALITY_DISABLED');
}
Add after:
Code:
// Start Ultimate Points
$sql_array = array(
'SELECT' => '*',
'FROM' => array(
POINTS_VALUES_TABLE => 'v',
),
);
$sql = $db->sql_build_query('SELECT', $sql_array);
$result = $db->sql_query($sql);
$points_values = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
if ($config['allow_attachments'] && $config['points_enable'] && ($user->data['user_points'] < $points_values['points_dl_cost_per_attach']))
{
$message = sprintf($user->lang['POINTS_ATTACHMENT_MINI_POSTS'], $config['points_name']) . '<br /><br /><a href="' . append_sid("{$phpbb_root_path}index.$phpEx") . '">« ' . $user->lang['POINTS_RETURN_INDEX'] . '</a>';
trigger_error($message);
}
// End Ultimate Points
If you notice the line you have to add ends with the same as the line you have to find. Most of the time it's because of that reason most mods go bad. So if you look for that you'll be alright
😉.