vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   How can i show paid subscription expire day time left on header? (https://vborg.vbsupport.ru/showthread.php?t=324371)

JesWhite 02-04-2017 08:38 AM

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

JesWhite 02-11-2017 10:40 AM

is there any way?

cellarius 02-11-2017 12:17 PM

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 02-25-2017 04:20 AM

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 02-25-2017 10:39 AM

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.


All times are GMT. The time now is 09:25 AM.

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.01022 seconds
  • Memory Usage 1,718KB
  • 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
  • (1)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