Jump to content

UrDrive

Clients
  • Posts

    22
  • Joined

  • Last visited

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Forums

Events

Store

Gallery

Everything posted by UrDrive

  1. Hello, I was wondering if we could get the ability to sync roles with Discord but in reverse. Change Role on Discord also changes role on Invision
  2. Thank you for your reply, I actually just fixed it by saving the invoice first and then marking it as paid. <?php require $_SERVER['DOCUMENT_ROOT'] . '/community/init.php'; \IPS\Session\Front::i(); $member = \IPS\Member::loggedIn(); $package = \IPS\nexus\Package::load( 26 ); $invoice = new \IPS\nexus\Invoice; $invoice->member = \IPS\Member::load( $member->member_id ); $invoice->currency = "USD"; $invoice->title = $package->title; $invoice->total = $package->price(); $item = $package->createItemForCart( $package->price() ); $invoice->addItem( $item ); $invoice->save(); $invoice->markPaid(); ?>
  3. I am trying to create an Invoice with a Regular Product Purchase (No Renewal, Lifetime Purchase, No Shipping Required) when someone calls an external php script however, it is failing due to My Script require $_SERVER['DOCUMENT_ROOT'] . '/community/init.php'; \IPS\Session\Front::i(); $member = \IPS\Member::loggedIn(); $package = \IPS\nexus\Package::load( 26 ); $invoice = new \IPS\nexus\Invoice; $invoice->member = \IPS\Member::load( $member->member_id ); $invoice->currency = "USD"; $invoice->title = $package->title; $invoice->total = $package->price(); $item = $package->createItemForCart( $package->price() ); $invoice->addItem( $item ); $invoice->markPaid(); $invoice->save();
  4. Have any clue what code I have to change to fix it? I could go hunting for it too, it just seems unusual.
  5. I'm trying to write a Notifications API since the current Rest API returns older notifications first. When writing my API, it returns invalid titles and member groups however it is returning the correct object. try { $row = \IPS\Notification\Inline::constructFromData( \IPS\Db::i()->select( '*', 'core_notifications', 'member=' . $_GET['member_id'] . ' AND read_time IS NULL' )->first() ); } catch( \UnderflowException $e ) { // error handling here - unable to find transaction } try { if (method_exists( $row, 'getData' ) ) { $ourData = $row->getData(); print_r($ourData); } else { $ourData = array(); } } catch( \LogicException $e ) { $ourData = array(); }
  6. IPS\brilliantdiscord\RateLimit\RateLimitedException::0 #0 /var/www/html/community/init.php(820) : eval()'d code(57): IPS\brilliantdiscord\_RateLimit::limitHandle('guilds/{guild.i...', '632299403591548...', Object(Closure)) #1 /var/www/html/community/system/Theme/Theme.php(847) : eval()'d code(150): IPS\brilliantdiscord_hook_member->discordMember() #2 /var/www/html/community/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_brilliantdiscord_front_invites->accept(Object(IPS\brilliantdiscord\Invite), Object(IPS\Http\Url\Friendly), Object(IPS\brilliantdiscord\LoginHandler), Array, Object(IPS\Http\Url\Friendly), Object(IPS\Http\Url\Friendly), false, false) #3 /var/www/html/community/applications/brilliantdiscord/modules/front/xinvites/invite.php(73): IPS\Theme\_SandboxedTemplate->__call('accept', Array) #4 /var/www/html/community/system/Dispatcher/Controller.php(96): IPS\brilliantdiscord\modules\front\xinvites\_invite->manage() #5 /var/www/html/community/applications/brilliantdiscord/modules/front/xinvites/invite.php(47): IPS\Dispatcher\_Controller->execute() #6 /var/www/html/community/system/Dispatcher/Dispatcher.php(152): IPS\brilliantdiscord\modules\front\xinvites\_invite->execute() #7 /var/www/html/community/index.php(13): IPS\_Dispatcher->run() #8 {main}
  7. I have your Duplicate Logger Application, I noticed this today. LinoyR shows an alt called Linoy Linoy shows an alt called LinoyR Anyway to change this? Duplicates like this will fill the table up quickly and make it harder to sort through new duplicates and this is annoying. Linoy
×
×
  • Create New...