Announcement

Collapse
No announcement yet.

PHP - How do Paid Subscriptions work?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • PHP - How do Paid Subscriptions work?

    So basically, I'm writing an external "plugin" that grabs the paid subscriptions and outputs them in a list.

    However I am stuck, where is the Subscription title/name?
    I can't seem to locate the subscription title/name?
    In what table is it?

    Thanks!

    EDIT:
    After doing some DB searching the sub title is saved in `vb_phrase` as `sub1_title` and sub2 for each subscription respectively.
    I can loop through `vb_subscription` to grab subscription id's and replace the 1 in sub1_title with the subscription id, but this is a very nasty way.
    Anyways this is the solution.

    Enjoy

  • #2
    The cost is like this saved in DB:
    PHP Code:
    a:1:{i:0;a:6:{s:4:"cost";a:5:{s:3:"usd";s:5:"10.00";s:3:"gbp";s:4:"0.00";s:3:"eur";s:4:"0.00";s:3:"aud";s:4:"0.00";s:3:"cad";s:4:"0.00";}s:6:"length";i:30;s:5:"units";s:1:"D";s:11:"ccbillsubid";s:0:"";s:18:"twocheckout_prodid";s:0:"";s:9:"recurring";i:0;}} 
    How can I get the the first value the most efficient way in PHP? (the 10.00 usd)

    Comment


    • #3
      Hi

      This is outside of the scope of official support....you'd probably get more help on our peer-to-peer modification and customisation site, www.vbulletin.org.

      They have a vB3 Programming Discussions forum there, which would be a better place to ask as people with the necessary programming skills frequent that site.
      MARK.B | vBULLETIN SUPPORT

      TalkNewsUK - My vBulletin 5.5.2 Demo
      AdminAmmo - My Cloud Demo

      Comment


      • #4
        hey JamesStPattrick, how did u end up handling this?

        Comment


        • #5
          found it, it's a serialized format of php, see http://www.phpinternalsbook.com/clas...alization.html

          Comment


          • #6
            This discussion belongs over at www.vbulletin.org.
            Translations provided by Google.

            Wayne Luke
            The Rabid Badger - a vBulletin Cloud customization and demonstration site.
            vBulletin 5 Documentation - Updated every Friday. Report issues here.
            vBulletin 5 API - Full / Mobile
            I am not currently available for vB Messenger Chats.

            Comment

            widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
            Working...
            X