Jump to content

deple

Clients
  • Posts

    14
  • Joined

  • Last visited

Reputation Activity

  1. Agree
    deple reacted to DawPi in Table with external database.   
    Did you specify the $table->rowsTemplate value? 🙂
    It's required for a front DB Helpers if I'm not wrong.
  2. Like
    deple reacted to teraßyte in Table with external database.   
    You need to establish a connection to the external/remote database you want to use, and then run the queries with the usual framework code to retrieve/display the data:
     
    The first codebox shows an example of how to start an external database connection.
  3. Thanks
    deple reacted to Randy Calvert in Problem with test install   
    By default on new installs, you would use email address to login. Did you use the email specified when you setup the software?
  4. Thanks
    deple reacted to Adlago in Problem with test install   
    Try logging with a different browser, or clear the cookies and cache of the browser you are using.
  5. Like
    deple reacted to Adriano Faria in How to send private message   
    One example I use:
    /** * Send pm */ public function messageMembersSend( $member, $subject, $content ) { /* Setup pm title and msg */ $msgTitle = $subject; $msgPost = $content; \IPS\Member::loggedIn()->language()->parseOutputForDisplay( $msgTitle ); \IPS\Member::loggedIn()->language()->parseOutputForDisplay( $msgPost ); /* Set the receiver */ try { $member = \IPS\Member::load( $member ); } catch( \OutOfRangeException $ex ) { return; } /* Set pm sender */ try { $pmSender = \IPS\Member::loggedIn(); } catch( \OutOfRangeException $ex ) { return; } /* Valid sender? */ if( !$pmSender->member_id ) { return; } /* Create conversation */ $conversation = \IPS\core\Messenger\Conversation::createItem( $pmSender, $pmSender->ip_address, \IPS\DateTime::ts( time() ) ); $conversation->title = $msgTitle; $conversation->to_member_id = $member->member_id; $conversation->save(); /* Add message */ $message = \IPS\core\Messenger\Message::create( $conversation, $msgPost, TRUE, NULL, NULL, $pmSender ); $conversation->first_msg_id = $message->id; $conversation->save(); /* Authorize everyone */ $conversation->authorize( $member ); $conversation->authorize( $pmSender ); /* Send notification */ $notification = new \IPS\Notification( \IPS\Application::load('core'), 'private_message_added', $conversation, array( $conversation, $pmSender ) ); $notification->send(); }  
×
×
  • Create New...