vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=324371

How can i show paid subscription expire day time left on header?
by JesWhite
04 Feb 2017 10:38

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...

JesWhite 11 Feb 2017 12:40

is there any way?

cellarius 11 Feb 2017 14:17

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.

JesWhite 25 Feb 2017 06:20

Quote:

Originally Posted by cellarius (Post 2582197)
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.

cellarius 25 Feb 2017 12:39

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.


All times are GMT. The time now is 14:18.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.