The following warnings occurred:
Warning [2] Undefined array key "pointsview" - Line: 1442 - File: inc/plugins/newpoints/core/hooks.php PHP 8.2.11 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/newpoints/core/hooks.php 1442 errorHandler->error_callback
/inc/class_plugins.php 142 newpoints_blockview
/showthread.php 471 pluginSystem->run_hooks



This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

How can I set my settings directly in the plugin files?
Files
#1
For security reasons, you might decide to keep specific settings outside the front-end to avoid undesired manipulation or simply to keep them outside the DB.

For this reason, it is possible to set specific settings directly by editing the plugin files. To do so follow the next steps.

  1. Open file `/inc/plugins/ougc_withdraw_points.php`
  2. Find the following piece of code:
    PHP Code:
    // You can uncomment the lines below to avoid storing some settings in the DB
    //define('OUGC_WITHDRAW_POINTS_PUBLICKEY', '');
    //define('OUGC_WITHDRAW_POINTS_PRIVATEKEY', '');
    //define('OUGC_WITHDRAW_POINTS_IPNSECRET', '');
    //define('OUGC_WITHDRAW_POINTS_MERCHANTID', '');
    //define('OUGC_WITHDRAW_POINTS_ADDTXFEE', 0);
    //define('OUGC_WITHDRAW_POINTS_AUTOCONFIRM', 0);
    //define('OUGC_WITHDRAW_POINTS_PMLOGS', 0); 
  3. Uncomment all or individual lines to hard-code specific settings. An all-uncommented example is below.
    PHP Code:
    // You can uncomment the lines below to avoid storing some settings in the DB
    define('OUGC_WITHDRAW_POINTS_PUBLICKEY''ekDQw2xob5Akaf6PuqxV');
    define('OUGC_WITHDRAW_POINTS_PRIVATEKEY''UPhMBslDWfP7bl5B8Jae');
    define('OUGC_WITHDRAW_POINTS_IPNSECRET''cN6smHwggqRnQCAceikh');
    define('OUGC_WITHDRAW_POINTS_MERCHANTID''ucybkW52FoD1hp6J3j50');
    define('OUGC_WITHDRAW_POINTS_ADDTXFEE'0);
    define('OUGC_WITHDRAW_POINTS_AUTOCONFIRM'0);
    //define('OUGC_WITHDRAW_POINTS_PMLOGS', 0); 
  4. Save the file and close.
  5. Done.

You can then clean any front-end setting value for all the settings you hard-code or define within the plugin file.
Reply