The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Paid subscription renewel email, how to change the time.
This is from vbulletin.com so I wanted to post this here to see if any one can help me out here as I describe below. Here is the original thread on the .com board.
Quote:
Code:
// time for the reminders $subscriptions_reminders = $vbulletin->db->query_read(" SELECT subscriptionlog.subscriptionid, subscriptionlog.userid, subscriptionlog.expirydate, user.username, user.email, user.languageid FROM " . TABLE_PREFIX . "subscriptionlog AS subscriptionlog LEFT JOIN " . TABLE_PREFIX . "user AS user ON (user.userid = subscriptionlog.userid) WHERE subscriptionlog.expirydate >= " . (TIMENOW + (86400 * 2)) . " AND subscriptionlog.expirydate <= " . (TIMENOW + (86400 * 3)) . " AND status = 1 "); I got basic html knowledge and that is about it. Would like to change this to 2 weeks and then 3 days. Is this the right section? |
#2
|
|||
|
|||
TIMENOW is the time when the script runs, and there are 86400 seconds in a 24 hour period, so this:
Code:
subscriptionlog.expirydate >= " . (TIMENOW + (86400 * 2)) . " Code:
subscriptionlog.expirydate <= " . (TIMENOW + (86400 * 3)) . " So when the subscriptions cron runs it looks for subscription data from those active subscriptions set to expire between two and three days into the future. Not sure what you mean by "change this to 2 weeks and then 3 days" but maybe you can now edit that query using the above information. |
#3
|
|||
|
|||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|