PDA

View Full Version : Display Paid Subscription Expiration Date in Header?


qcforcacct
01-27-2016, 09:15 AM
Is it possible to display the join & expiration dates of a user's paid subscription in the main page header? The join/expiration date info is listed on the payments.php page but I can't figure out how to display it elsewhere. After searching for 2 hours, the only helpful (I think) info I've come across is this post (http://www.vbulletin.com/forum/forum/vbulletin-4/vbulletin-4-questions-problems-and-troubleshooting/3973406-hook-to-provide-a-membership-number-on-paid-subscription-page?p=3973636#post3973636). I'm not experienced enough to know what all of that means though.

Excerpt from the subscription_activebit template which displays the informaiton I want on the payments.php page:

<li class="blockrow floatcontainer">
<dl class="stats">
<dt>{vb:rawphrase start_date}</dt>
<dd>{vb:raw joindate}</dd>
<dt>{vb:rawphrase expiry_date}</dt>
<dd>{vb:raw enddate}</dd>
</dl>
<p class="description">{vb:raw subscription.title}</p>
</li>


Here is the code I am trying to insert into the header:

<ul>
<vb:if condition="is_member_of($bbuserinfo, 10,9)"> //only visible to users with active subscriptions
<li >
<dl>
<dt>{vb:raw subscription.title} expires:</dt>
<dd>{vb:raw enddate}</dd>
</dl>
</li>
</vb:if>
</ul>


The subscription.title and enddate variables are not showing up but the "expires:" text is. I'm guessing these variables are not available to access at this point. How do I go about making them accessible?

Any help would be greatly appreciated.:)

qcforcacct
02-15-2016, 07:59 PM
Can anyone help me figure this out? Is it even possible?

Dave
02-15-2016, 08:09 PM
What is the exact location in the header of where you want this to be displayed?

qcforcacct
02-18-2016, 03:01 AM
https://vborg.vbsupport.ru/attachment.php?attachmentid=154207&stc=1&d=1455771505

Within the toplinks div in a drop down list as shown in the attached image.

JesWhite
02-04-2017, 06:31 AM
What is the exact location in the header of where you want this to be displayed?

i want to display tooo...
but not working..