Jump to content

Put the expiration date of the vip user in the postbit

Featured Replies

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> &nbsp;{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 by by_ix

@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>  &nbsp;{lang="nexus_subs_subscriber" sprintf="$subscription->package->_title"} </span> 

Change to:

<span  class = 'cProfileSubscription_text' > 
<i  class = "fa fa-certificate" ></i> &nbsp;{lang="nexus_subs_subscriber" sprintf="$subscription->package->_title"}
{{if $member->member_id == \IPS\Member::loggedIn()->member_id}}
 <br/> 
{$subscription->currentBlurb()}
{{endif}}
 </span> 

output:

Spoiler

expires-subscription-date-in-profile-Invision-Community-Pecetowicz.png.bff69501bb039548c431a2ab25baa7e9.png.0a1eec942401a9b7bffca7e7a23b13ea.png

 

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> &nbsp;{lang="nexus_subs_subscriber" sprintf="$subscription->package->_title"}</span>

Change to:

<span class='cProfileSubscription_text'>
<i class="fa fa-certificate"></i>&nbsp;{lang="nexus_subs_subscriber" sprintf="$subscription->package->_title"}
{{if $member->member_id == \IPS\Member::loggedIn()->member_id}}
<br/>
{$subscription->currentBlurb()}
{{endif}}
</span>

output:

Spoiler

expires-subscription-date-in-profile-Invision-Community-Pecetowicz.png.bff69501bb039548c431a2ab25baa7e9.png.e1f86593e11c63c27d6957d5aca9c5e1.png

 

Edited by LoveHate

  • 2 недели спустя...
  • 11 месяцев спустя...

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.

Guest
Ответить в этой теме...

Последние посетители 0

  • No registered users viewing this page.