Customizing SMF > Modifications and Packages

Automatic Newsletter for SMF2

<< < (3/38) > >>

!RFAN:
after installation i got this error after redirection:

function ModifyNewsltrSettings($return_config = false) { global $txt, $scripturl, $context, $settings, $sc, $modSettings, $smcFunc; // get list of boards... $result = $smcFunc['db_query']('', 'SELECT id_board, name FROM {db_prefix}boards'); $boards = array(0=>$txt['newsltr_includeall']); // include all boards while ($row = $smcFunc['db_fetch_assoc']($result)) $boards[$row['id_board']] = $row['name']; // get total subscribers $result = $smcFunc['db_query']('', 'SELECT COUNT(*) AS c FROM {db_prefix}hcb_newsletter'); $c = $smcFunc['db_fetch_assoc']($result); $count = $c['c']; $smcFunc['db_free_result']($result); $config_vars = array( array('check', 'newsltr_stats'), array('check', 'newsltr_news'), array('check', 'newsltr_events'), '', array('int', 'newsltr_topic_count'), array('check', 'newsltr_use_perms'), array('select', 'newsltr_exclude_boards', $boards, 'multiple'=>true,), array('desc','newsltr_prev', 'text_label'=>'[' . $txt['newsubscribe_mod_preview'] . ']'), array('desc','newsltr_subscribed', 'text_label'=> $count . $txt['newsubscribe_mod_subscribed']), array('desc','newsltr_delete', 'text_label'=>'[' . $txt['newsubscribe_mod_delmail'] . ']'), ); if ($return_config) return $config_vars; $context['post_url'] = $scripturl . '?action=admin;area=modsettings;save;sa=newsltr'; $context['settings_title'] = $txt['newsubscribe_mod_title']; // Saving? if (isset($_GET['save'])) { checkSession(); $save_vars = $config_vars; saveDBSettings($save_vars); redirectexit('action=admin;area=modsettings;sa=newsltr'); } prepareDBSettingContext($config_vars); }
Fatal error: Call to undefined function ModifyNewsltrSettings() in /home/XXXX/public_html/Sources/ManageSettings.php on line 219

Old Fossil:

--- Quote from: !RFAN on April 10, 2012, 11:13:42 PM ---after installation i got this error after redirection:

f
--- Code: ---unction ModifyNewsltrSettings($return_config = false) { global $txt, $scripturl, $context, $settings, $sc, $modSettings, $smcFunc; // get list of boards... $result = $smcFunc['db_query']('', 'SELECT id_board, name FROM {db_prefix}boards'); $boards = array(0=>$txt['newsltr_includeall']); // include all boards while ($row = $smcFunc['db_fetch_assoc']($result)) $boards[$row['id_board']] = $row['name']; // get total subscribers $result = $smcFunc['db_query']('', 'SELECT COUNT(*) AS c FROM {db_prefix}hcb_newsletter'); $c = $smcFunc['db_fetch_assoc']($result); $count = $c['c']; $smcFunc['db_free_result']($result); $config_vars = array( array('check', 'newsltr_stats'), array('check', 'newsltr_news'), array('check', 'newsltr_events'), '', array('int', 'newsltr_topic_count'), array('check', 'newsltr_use_perms'), array('select', 'newsltr_exclude_boards', $boards, 'multiple'=>true,), array('desc','newsltr_prev', 'text_label'=>'[' . $txt['newsubscribe_mod_preview'] . ']'), array('desc','newsltr_subscribed', 'text_label'=> $count . $txt['newsubscribe_mod_subscribed']), array('desc','newsltr_delete', 'text_label'=>'[' . $txt['newsubscribe_mod_delmail'] . ']'), ); if ($return_config) return $config_vars; $context['post_url'] = $scripturl . '?action=admin;area=modsettings;save;sa=newsltr'; $context['settings_title'] = $txt['newsubscribe_mod_title']; // Saving? if (isset($_GET['save'])) { checkSession(); $save_vars = $config_vars; saveDBSettings($save_vars); redirectexit('action=admin;area=modsettings;sa=newsltr'); } prepareDBSettingContext($config_vars); }
Fatal error: Call to undefined function ModifyNewsltrSettings() in /home/XXXX/public_html/Sources/ManageSettings.php on line 219
--- End code ---

--- End quote ---

Rather than use the quote bbc code woulda been more suitable.

How many times did you try and install the mod?

mikeymx5:

--- Code: ---Fatal error: require_once() [function.require]: Failed opening required '/htdocs/SMF2/Sources/Subs-Newsletter.php' (include_path='.:/usr/lib/php5') in /homepages/27/d239035776/htdocs/SMF2/Sources/NewsSubscribe.php on line 35
--- End code ---

Thanks for the update, Im getting a error when trying to preview, im looking into it but if you have any ideas.

HoverClub:
A little filename case issue  :-[ - now fixed and updated.

Alpay:
Good job , thank you ;)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version