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