vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   find out when subscription is up for renewal (https://vborg.vbsupport.ru/showthread.php?t=121757)

zemic 07-21-2006 11:59 AM

find out when subscription is up for renewal
 
Hiya,

The other day I came accross this thread:
http://www.vbulletin.com/forum/showthread.php?t=184194

Its proved really useful because I've started doing trial membership on the site.

What would be really cool is if I could have something which says how long until re-newal for those that have purchased a subscription. Any ideas?

Im guessing its just a case of changing the "joindate" variable to something else, but what?

Hope you can help,

Thanks

peterska2 07-21-2006 12:46 PM

Did you see the second set of instructions in that thread called Inform active trials of how long they have left? This can be used for all usergroups, and so will work to tell how long remaining memberships have got left. The conditional is used to only show the message if the time left is less than x hours/days.

zemic 07-21-2006 01:34 PM

Nah doesnt work. It looks at the joindate and then works out the math, rather than looking at the date subscription started, and is due to end. Does that make sense?

So if I use that code for those that have subscribed, it says something like -577 (minus xx days left), depending how long they've been a member for.

The code above is only useful for new users who sign up. Stick them in a group and then using the "promotion" tool to de-promote them into another group after XX days.


All times are GMT. The time now is 09:03 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.01713 seconds
  • Memory Usage 1,710KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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