Jump to content


  • Posts

  • Joined

  • Last visited

Reputation Activity

  1. Like
    Norbee. got a reaction from Elshara Silverheart in Use payment options like iDeal and wire transfer   
    Yep  iDeal is common in the Netherlands actually i dont see any other country that using iDeal that common.
  2. Thanks
    Norbee. got a reaction from SJ77 in contact us box getting spam   
    I didnt get any spam. But you can make a little hook and put a reCAPTCHA there 😄 
  3. Like
    Norbee. reacted to Aiwa in Custome Task   
    Blah, I read extension... It's definitely  Monday. 
  4. Like
    Norbee. reacted to bfarber in Custome Task   
    Without more specific info, you should simply delete the tasks from the application developer center. This will delete from your database and update the tasks.json file, which will be reimported when someone upgrades your application.
  5. Thanks
    Norbee. reacted to bfarber in check if logged in   
    The external dispatcher sets up a few things under the premise that you're executing code but not within the Suite itself (using the framework, but in a standalone script). This is safer than simply loading the session handler, which may rely on other classes).
    Consider it a best practice tip.
  6. Thanks
    Norbee. got a reaction from achef in check if logged in   
    Yes. If you include the init.php from the forum after that like this.
    <?php /* Require the init.php file from the Community Suite root directory */ require 'init.php'; /* Initiate the session to verify who this user is */ \IPS\Session\Front::i(); echo \IPS\Member::loggedIn()->name; ?> After you include the init.php you can use most of the forum function 😄 
  7. Thanks
    Norbee. reacted to Ryan Ashbrook in check if logged in   
    Actually, I would recommend using \IPS\Dispatcher\External::i(); rather than \IPS\Session\Front::i();
  8. Thanks
    Norbee. reacted to newbie LAC in Member Sync   
    1. Pay attention on
    $form->add(new \IPS\Helpers\Form\Text('ebacore_steamid', $admininfo["steamid"], FALSE, [], NULL, NULL, NULL, 'ebacore_steamid')); $form->add(new \IPS\Helpers\Form\Text('ebacore_jelszo', $admininfo["steamid"], FALSE, [], NULL, NULL, NULL, 'ebacore_jelszo')); The $values is array with keys ebacore_steamid and ebacore_jelszo
    $values['ebacore_steamid'] $values['ebacore_jelszo'] 2.
    \IPS\Db::i()->update( 'ebacore_adminok_awp', array( 'steamid' => $values['steamid'] ), array( 'felhid=?', $member ) ); \IPS\Db::i()->update( 'ebacore_adminok_awp', array( 'jelszo' => $values['steamid'] ), array( 'felhid=?', $member ) ); You use $values['steamid'] but you don't have it. In this case you get an Undefined index: steamid. 

    BTW why do you use ['steamid'] for both inputs (ebacore_steamid and ebacore_jelszo)?

    public function _adminbealitasok() { try { $admininfo = \IPS\Db::i()->select( '*', 'ebacore_adminok_awp', array( 'felhid=?', \IPS\Member::loggedIn()->member_id ) )->first(); } catch (\Exception $e) { \IPS\Output::i()->error( 'row_not_found', '1EBACORE100/1', 404, '' ); } $form = new \IPS\Helpers\Form; $form->add(new \IPS\Helpers\Form\Text('ebacore_steamid', $admininfo["steamid"] ?? NULL, FALSE, [], NULL, NULL, NULL, 'ebacore_steamid')); $form->add(new \IPS\Helpers\Form\Text('ebacore_jelszo', $admininfo["jelszo"] ?? NULL, FALSE, [], NULL, NULL, NULL, 'ebacore_jelszo')); if ($values = $form->values()) { \IPS\Db::i()->update( 'ebacore_adminok_awp', array( 'steamid' => $values['ebacore_steamid'], 'jelszo' => $values['ebacore_jelszo'] ), array( 'felhid=?', \IPS\Member::loggedIn()->member_id ) ); \IPS\Output::i()->redirect( \IPS\Http\Url::internal( 'app=core&module=system&controller=settings&area=adminbealitasok' ), 'saved' ); } \IPS\Output::i()->output .= $form; }  
  9. Like
    Norbee. reacted to Adriano Faria in Member Sync   
    /* Handle submissions */ if ( $values = $form->values() ) { //script to update your external table }  
  10. Like
    Norbee. reacted to Nathan Explosion in Social Profiles   
    Here you go...thanks to @Norbee. for testing things out. Have a freebie!!
  11. Thanks
    Norbee. reacted to bfarber in Social Profiles   
    I'm afraid there's no way to just add a new option, however a custom plugin could do so. The brand would need to be supported by Fontawesome 4 (we do not use version 5 yet), but I confirmed that Steam is indeed supported in Fontawesome 4.7.0.
  • Create New...