vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Display Paid Subscription Expiration Date in Header? (https://vborg.vbsupport.ru/showthread.php?t=321609)

qcforcacct 01-27-2016 09:15 AM

Display Paid Subscription Expiration Date in Header?
 
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. 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:
Code:

<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:
Code:

<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

1 Attachment(s)
https://vborg.vbsupport.ru/attachmen...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

Quote:

Originally Posted by Dave (Post 2564973)
What is the exact location in the header of where you want this to be displayed?

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


All times are GMT. The time now is 07:59 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01062 seconds
  • Memory Usage 1,730KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete