The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
counter: days left in free trial
On my forums I have it set up so that a new member gets 90 days free to use the site and then they have to pay. I need a line of code to put on the index page that says "you have XX days left in your 90 day free trial" can somebody please help me with this?
|
#2
|
||||
|
||||
You would need to add a small piece of code to index.php which subtracts the current time from the users join date, then converts this to a number of days, and then subtracts that from 90. You then add a bit to the forumhome template to display the value. You would need to surround this with some sort of conditional to only display it if they were in the "non paid" usergroup(s).
|
#3
|
||||
|
||||
hey thanks for the qucik response. how can i get the code into date format? as in: todays date (-) join date (=) XX ?? basically, do you havy any suggestions on how to code the conditional? Sorry, I've been away from my small knowlege of coding for too many months now. Thanks
|
#4
|
|||
|
|||
Sounds like u asking for free service when this is $$$ u are talking about. This is quite specialize code :lick:
|
#5
|
||||
|
||||
Quote:
I'm at work atm so I don't have time to look in detail, possibly tonight (which is another 12+ hours uk time). |
#6
|
|||
|
|||
Quote:
|
#7
|
||||
|
||||
Quote:
|
#8
|
|||
|
|||
Quote:
|
#9
|
||||
|
||||
um, okay, whatever. What planet are you from again ...
|
#10
|
|||
|
|||
@btappan
The best way to go seems to be is to use the Payed Subscriptions for this (without a charge ofcourse). There is already a hack available that will show how many days you have got left for your subscription. @LEAD_WEIGHT What got CPanel to do with access to vB forum? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|