Register Members List Search Today's Posts Mark Forums Read

Thread Tools
Old 14 Feb 2012, 11:16
Danny-E's Avatar
Danny-E Danny-E is offline
Join Date: Aug 2007
Real name: Daniel
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.
Reply With Quote
Old 15 Feb 2012, 14:56
kh99 kh99 is offline
Join Date: Aug 2009
Real name: Kevin
I think you want to comment out a block of code like this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

(I didn't show the complete block, just where to put the comment start/end).
Reply With Quote
Old 24 Aug 2012, 19:06
scottelkin scottelkin is offline
Join Date: Jan 2009
Thank you for this! I have been wanting to do this for a long, long time!
Reply With Quote
Old 12 Oct 2012, 21:41
Jennifer2010 Jennifer2010 is offline
Join Date: Mar 2011
Thanks kh99!
Reply With Quote
Old 10 Apr 2018, 21:54
Join Date: Sep 2012
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)));

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']);

// Legacy Hook 'cron_script_subscriptions' Removed //

log_cron_action('', $nextitem, 1);
Reply With Quote
Old 11 Apr 2018, 09:13
snakes1100 snakes1100 is offline
Join Date: Dec 2001
Real name: Anthony
from /* $subscriptions_reminders to vB_Mail::vbmailEnd(); */
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

New To Site? Need Help?

All times are GMT. The time now is 07:57.

Layout Options | Width: Wide Color: