Jump to content

Put the expiration date of the vip user in the postbit

Featured Replies

comment_178800
17 минут назад, Zero108 сказал:

Пиши на русском. Есть google-переводчик. 

🙂

Спойлер

3434.thumb.PNG.57f27359c2ff5bd123ea316d119e6adc.PNG

 

comment_178804

avangcom 

{{$membersub = \IPS\nexus\Subscription::loadActiveByMember($comment->author());}}
{{if $membersub->expire > time()}}
	{datetime="$membersub->expire" dateonly="true"}
{{endif}}

 

comment_178809
{{$membersub = \IPS\nexus\Subscription::loadActiveByMember($comment->author());}}
{{if $membersub->expire > time()}}
	<span style="color:red;">Expaire vip:</span> {datetime="$membersub->expire" dateonly="true"}
{{endif}}

 

comment_178836

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

comment_178849

@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

comment_178851
2 часа назад, LoveHate сказал:

you're from Iran!!!!!!!!

мой Отец Иранец

comment_178853
2 минуты назад, LoveHate сказал:

Действительно? Откуда ты?

это долгая история))

и не по теме здесь, но я Русский Иранец это точно

  • 2 недели спустя...
comment_179138
В 18.03.2022 в 02:06, LoveHate сказал:

Действительно? Откуда ты?

земляки встретились :D 

  • 11 месяцев спустя...
comment_190582
On 3/17/2022 at 11:38 AM, by_ix said:

avangcom замени всё:

 
		 
			      
					   
				  
			
		
	

 

@by_ix Этот код показывает неправильную дату для меня. В чем проблема?

https://ibb.co/Wp2P0Sh

  • Author
comment_190586
4 hours ago, 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.


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

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

  • No registered users viewing this page.