Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 04 Feb 2017, 10:38
JesWhite JesWhite is offline
 
Join Date: Apr 2014
Real name: Jes
How can i show paid subscription expire day time left on header?

hi...
i want to add expire day on header template..

but i tried to add {vb:raw enddate} but not worked.


there is this code on subscription template


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


i added {vb:raw subscribedbits} this code but not worked on header..

how can i workable {vb:raw subscribedbits} this code..?


thanks for helps...
Reply With Quote
  #2  
Old 11 Feb 2017, 12:40
JesWhite JesWhite is offline
 
Join Date: Apr 2014
Real name: Jes
is there any way?
Reply With Quote
  #3  
Old 11 Feb 2017, 14:17
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Real name: Sven
You can't just move variables around like that. That information is not available in header template, or on any page in vB, for that matter.

Not an easy way by simple template edit. You need to add php code to a plugin to find out if the current user has any active subscriptions, if so, which ones, get the expiry dates, and register that information for the header template. If you have more than one subscriptions, you need to decide which one to show, or show them all.
__________________
Please note that there will be no further updates to my addons, especially they will not be upgraded for vB5. I'm leaving vB, since IB choose to go the banana-way yet again.

http://www.roma-antiqua.de
Reply With Quote
  #4  
Old 25 Feb 2017, 06:20
JesWhite JesWhite is offline
 
Join Date: Apr 2014
Real name: Jes
Originally Posted by cellarius View Post
You can't just move variables around like that. That information is not available in header template, or on any page in vB, for that matter.

Not an easy way by simple template edit. You need to add php code to a plugin to find out if the current user has any active subscriptions, if so, which ones, get the expiry dates, and register that information for the header template. If you have more than one subscriptions, you need to decide which one to show, or show them all.
ok i understood.
maybe someone create a plugin for this option.
Reply With Quote
  #5  
Old 25 Feb 2017, 12:39
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Real name: Sven
If you have some coding skills this addon of mine might give you an idea of what to do:
http://www.vbulletin.org/forum/showthread.php?t=228095

Or it may even cover your needs, although there is no option for the header.
__________________
Please note that there will be no further updates to my addons, especially they will not be upgraded for vB5. I'm leaving vB, since IB choose to go the banana-way yet again.

http://www.roma-antiqua.de
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 09:56.

Layout Options | Width: Wide Color: