Jump to content


- - - - -

Nexus


  • Please log in to reply
2 replies to this topic

#1 Cmarenburg

Cmarenburg

    Advanced Member

  • +Clients
  • 216 posts

Posted 31 January 2012 - 02:10 PM

Hey There,

I am working on an app that's going to use IPB's Session's and Member's Id (just so i don't have to custom code it my self) it's not going to be an mod. What i would like to do is offer a free version (with ad's) and a paid version(with out ad's) I know IP.Neuxs can handle both of these elements (ad's and Paid member ships) How ever i would like to know how well they can integrate together along with an app. The forums well be at my.tld/forums/ and the app is at the root so you would go to my.tld. Anyways can Ip.Nexus be integrated with an app outside of the forums directory?

IF you need clarification as to what i mean go a head and ask.
Flying RC airplanes; Owning a hobby farm; going to school; in 4-H; gee more then i thought i did, although i am having fun with most at most of those activities :D

#2 Mark

Mark

    I dropped the "iggy"

  • IPS Staff
  • 7,729 posts

Posted 31 January 2012 - 03:25 PM

Yes. You'd simply do something like:

if ( nexusApi::itemIsPurchased( $member['member_id'], 'nexus', 'product', 1 ) == 'ACTIVE' ) { /* stuff to show for paid members */ } else { /* stuff to show for non-paid members */ }

Mark Wade
Developer

Posted Image Posted Image


#3 Cmarenburg

Cmarenburg

    Advanced Member

  • +Clients
  • 216 posts

Posted 31 January 2012 - 03:44 PM

View PostMark, on 31 January 2012 - 03:25 PM, said:

Yes. You'd simply do something like:

if ( nexusApi::itemIsPurchased( $member['member_id'], 'nexus', 'product', 1 ) == 'ACTIVE' ) { /* stuff to show for paid members */ } else { /* stuff to show for non-paid members */ }

Thanks Mark! Great to know!
Flying RC airplanes; Owning a hobby farm; going to school; in 4-H; gee more then i thought i did, although i am having fun with most at most of those activities :D




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users