The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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 Code:
<vb:if condition="$show['activesubscriptions']"> <div class="block" id="activesubs"> <h2 class="blockhead">{vb:rawphrase active_subscriptions}</h2> <div class="blockbody"> <ol> {vb:raw subscribedbits} </ol> </div> </div> </vb:if> i added {vb:raw subscribedbits} this code but not worked on header.. how can i workable {vb:raw subscribedbits} this code..? thanks for helps... |
#2
|
|||
|
|||
is there any way?
|
#3
|
||||
|
||||
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. |
#4
|
|||
|
|||
Quote:
maybe someone create a plugin for this option. |
#5
|
||||
|
||||
If you have some coding skills this addon of mine might give you an idea of what to do:
https://vborg.vbsupport.ru/showthread.php?t=228095 Or it may even cover your needs, although there is no option for the header. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|