The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Disable paid subscription email reminder
I want to disable email reminders for paid subscriptions.
I know I need to edit (./includes/cron/subscriptions.php) but don't know what to remove and what to keep. Please can someone tell me what would need removing. Thanks |
#2
|
|||
|
|||
I think you want to comment out a block of code like this:
PHP Code:
(I didn't show the complete block, just where to put the comment start/end). |
#3
|
|||
|
|||
Thank you for this! I have been wanting to do this for a long, long time!
|
#4
|
|||
|
|||
Thanks kh99!
|
#5
|
|||
|
|||
This is my code. How much of this do I comment out?
// time for the reminders $subscriptions_reminders = vB::getDbAssertor()->assertQuery('getSubscriptionsReminders', array('time1' => vB::getRequest()->getTimeNow() + (86400 * 2), 'time2' => vB::getRequest()->getTimeNow() + (86400 * 3))); vB_Mail::vbmailStart(); foreach ($subscriptions_reminders as $subscriptions_reminder) { $phraseAux = vB_Api::instanceInternal('phrase')->fetch(array('sub' . $subscriptions_reminder['subscriptionid'] . '_title', 'subscription')); $subscription_title = $phraseAux['sub' . $subscriptions_reminder['subscriptionid'] . '_title']; $username = unhtmlspecialchars($subscriptions_reminder['username']); $maildata = vB_Api::instanceInternal('phrase') ->fetchEmailPhrases('paidsubscription_reminder', array($username, $subscription_title, $vbulletin->options['bburl'], $vbulletin->options['bbtitle']), array(), $subscriptions_reminder['languageid']); vB_Mail::vbmail($subscriptions_reminder['email'], $maildata['subject'], $maildata['message']); } vB_Mail::vbmailEnd(); // Legacy Hook 'cron_script_subscriptions' Removed // } log_cron_action('', $nextitem, 1); |
#6
|
|||
|
|||
from /* $subscriptions_reminders to vB_Mail::vbmailEnd(); */
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|