Announcement

Collapse
No announcement yet.

Paid Subscribtion - Select Box Edit Page

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Paid Subscribtion - Select Box Edit Page

    Hello,
    Does anyone know which page template I should change for the select box in User Settings?

    Please advise me.

    Thank you in advance.
    Attached Files

  • #2
    usersettings_subscriptions

    It would be drawn using this code (approximately lines 61-85):
    Code:
                        <vb:each from="subscriptions.cansubscribe" value="subscription">
                            {vb:set titleparse, 'sub'}
                            {vb:strcat titleparse, {vb:var subscription.subscriptionid}}
                            {vb:strcat titleparse, '_title'}
                            {vb:set descparse, 'sub'}
                            {vb:strcat descparse, {vb:var subscription.subscriptionid}}
                            {vb:strcat descparse, '_desc'}
                            <div class="js-newsubscription_row h-padding-bottom-xxl" data-id="{vb:var subscription.subscriptionid}" data-allowedapis="{vb:var subscription.allowedapis}">
                                <div>{vb:phrase {vb:var titleparse}}</div>
                                <p>{vb:phrase {vb:var descparse}}</p>
    
                                <select class="js-subscription-cost b-form-select__select">
                                    <option value="">{vb:phrase select}</option>
                                    <vb:each from="subscription.cost" key="subid" value="cost">
                                        <optgroup label="{vb:var cost.subscription_length}">
                                            <vb:each from="cost.cost" key="currency" value="value">
                                                {vb:set currencysymbol, {vb:if "isset($currencysymbols[$currency])", {vb:raw currencysymbols[$currency]}, {vb:php strtoupper, {vb:raw currency}}}}
    
                                                <option data-subid="{vb:var subid}" data-subtitle="{vb:phrase {vb:var titleparse}}" data-duration="{vb:var cost.subscription_length}" data-currency="{vb:var currency}" data-recurring="{vb:var cost.recurring}" data-value="{vb:raw currencysymbol} {vb:number {vb:var value}, 2}">{vb:raw currencysymbol} {vb:number {vb:var value}, 2}</option>
                                            </vb:each>
                                        </optgroup>
                                    </vb:each>
                                </select>
                            </div>
                        </vb:each>
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API - Full / Mobile
    Vote for your favorite feature requests and the bugs you want to see fixed.

    Comment

    Related Topics

    Collapse

    Working...
    X