Posted 16 марта, 20223 yr Hello I want the expiration date of the VIP user to be specified in the user's post on which date the subscription will be deactivated.
16 марта, 20223 yr On 16.03.2022 at 09:12, Zero108 said: Пиши на русском. Есть google-переводчик. 🙂 Показать контент
16 марта, 20223 yr avangcom {{$membersub = \IPS\nexus\Subscription::loadActiveByMember($comment->author());}} {{if $membersub->expire > time()}} {datetime="$membersub->expire" dateonly="true"} {{endif}}
16 марта, 20223 yr Author Thanx Tested ok Пожалуйста, измените код, чтобы изменить его, как показано ниже.
16 марта, 20223 yr {{$membersub = \IPS\nexus\Subscription::loadActiveByMember($comment->author());}} {{if $membersub->expire > time()}} <span style="color:red;">Expaire vip:</span> {datetime="$membersub->expire" dateonly="true"} {{endif}}
16 марта, 20223 yr Author Пожалуйста, покажите, как добавить окончание подписки, как показано ниже Куда мне добавить эти предметы? by_ix
16 марта, 20223 yr в шаблон profileSubscription: <span style="color:red;">Expaire vip:</span> {datetime="$subscription->expire" dateonly="true"}
16 марта, 20223 yr <span style="color:red; align:center;">Expaire vip:</span> {datetime="$subscription->expire" dateonly="true"}
17 марта, 20223 yr avangcom замени всё: {{if $subscription = \IPS\nexus\Subscription::loadActiveByMember( $member )}} <div class='cProfileSidebarBlock ipsSpacer_bottom'> <a href='{url="app=nexus&module=subscriptions&controller=subscriptions" seoTemplate="nexus_subscriptions"}'> <div class='cProfileSubscription {{if $subscription->package->_image}}cProfileSubscription--with-image{{else}}cProfileSubscription--no-image{{endif}}' style='display:grid;align-items:center;padding:10px 0;'> {{if $subscription->package->_image}} <div class="cProfileSubscription_bg" style='background-image: url( "{expression="str_replace( array( '(', ')' ), array( '\(', '\)' ), $subscription->package->_image->url )"}" )'></div> <div class='cProfileSubscription_gradient'></div> {{endif}} <span class='cProfileSubscription_text'><i class="fa fa-certificate"></i> {lang="nexus_subs_subscriber" sprintf="$subscription->package->_title"}</span> <span class='cProfileSubscription_text' style='color:red;margin-top:-10px;'>Expaire vip: {datetime="$subscription->expire" dateonly="true"}</span> </div> </a> </div> {{endif}} Edited 17 марта, 20223 yr by by_ix
17 марта, 20223 yr @avangcom you're from Iran!!!!!!!! follow this simple step: Go to ACP --> APPEARANCE --> Themes --> Your Theme --> Edit CSS and HTML --> Type profileSubscription in Search Box. Go to profileSubscription template. Find: <span class = 'cProfileSubscription_text' ><i class = "fa fa-certificate" ></i> {lang="nexus_subs_subscriber" sprintf="$subscription->package->_title"} </span> Change to: <span class = 'cProfileSubscription_text' > <i class = "fa fa-certificate" ></i> {lang="nexus_subs_subscriber" sprintf="$subscription->package->_title"} {{if $member->member_id == \IPS\Member::loggedIn()->member_id}} <br/> {$subscription->currentBlurb()} {{endif}} </span> output: Показать контент good lock @avangcomyou're from Iran!!!!!!!! follow this simple step: Go to ACP --> APPEARANCE --> Themes --> Your Theme --> Edit CSS and HTML --> Type profileSubscription in Search Box. Go to profileSubscription template. Find: <span class='cProfileSubscription_text'><i class="fa fa-certificate"></i> {lang="nexus_subs_subscriber" sprintf="$subscription->package->_title"}</span> Change to: <span class='cProfileSubscription_text'> <i class="fa fa-certificate"></i> {lang="nexus_subs_subscriber" sprintf="$subscription->package->_title"} {{if $member->member_id == \IPS\Member::loggedIn()->member_id}} <br/> {$subscription->currentBlurb()} {{endif}} </span> output: Показать контент Edited 17 марта, 20223 yr by LoveHate
17 марта, 20223 yr On 17.03.2022 at 20:00, SlawkA said: my father is Iranian Действительно? Откуда ты?
17 марта, 20223 yr On 17.03.2022 at 21:06, LoveHate said: Действительно? Откуда ты? это долгая история)) и не по теме здесь, но я Русский Иранец это точно
28 марта, 20223 yr On 17.03.2022 at 21:06, LoveHate said: Действительно? Откуда ты? земляки встретились
1 марта, 20232 yr On 17.03.2022 at 08:08, by_ix said: avangcom замени всё: @by_ix Этот код показывает неправильную дату для меня. В чем проблема? https://ibb.co/Wp2P0Sh
1 марта, 20232 yr Author On 01.03.2023 at 13:26, turk said: @by_ix Этот код показывает неправильную дату для меня. В чем проблема? https://ibb.co/Wp2P0Sh Время и дата сервера установлены?
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.