The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
[OzzModz] Email Admin For Expiring Subscriptions Details »» | |||||||||||||||||||||||||||
[OzzModz] Email Admin For Expiring Subscriptions
Developer Last Online: Dec 2021
Another mod brought to you by,
This mod will allow admins to get emails for their users paid subscriptions that are about to expire. This is a cron job, and it will sent the specified email addresses the email between 2 - 3 days before the subscription expires. This should allow you to perhaps entice the member somehow to renew their subscription. Because they may have not got the mail notifying them that it is about to expire. The email title, as well as the message that is sent is phrased, so you can translate it to your language. It is a simple installation upload the contents of the UPLOAD folder, then import the product XML, ozzmodz_sub_expiry You can edit the options under the settings, [OzzModz] Email Admin For Expiring Subscriptions Settings Complete Feature List
Q. Why do I need such a thing, you ask? A. Some admins might like to know before hand that a users paid subscription is going to expire. Q. Can I send it to multiple email addresses?? A. Yes you can. ------------------------------------------------------------------------------------------- If you like this mod please hit the button to the right ----> Please remember to click the, button to the right if you installed the mod ----> What does 'Marking As Installed' do ? * It helps you to stay on top of updates - members who have installed modifications will be notified whenever new updates are available. * For security issues - vbulletin.org will contact all members who have installed a modification whenever a security issue is brought to their attention. * Marking a modification as installed also helps me know how many people are using my work, giving me extra incentive to provide more features and new modifications. I appreciate the support! ------------------------------------------------------------------------------------------- * History (Changelog) * ------------------------- v1.0.0 (January 8, 2015) - Initial public release. Show Your Support
|
Comments |
#12
|
||||
|
||||
Quote:
|
#13
|
||||
|
||||
Isn't that what status in that table is used for?
Edit: Why does that seem like grammar in a half shell ^ PHP Code:
|
#14
|
||||
|
||||
This is the lines of code that runs on the cron.
Code:
if (is_array($subobj->subscriptioncache)) { foreach ($subobj->subscriptioncache as $key => $subscription) { // disable people :) $subscribers = $vbulletin->db->query_read(" SELECT userid FROM " . TABLE_PREFIX . "subscriptionlog WHERE subscriptionid = $subscription[subscriptionid] AND expirydate <= " . TIMENOW . " AND status = 1 "); while ($subscriber = $vbulletin->db->fetch_array($subscribers)) { $subobj->delete_user_subscription($subscription['subscriptionid'], $subscriber['userid'], -1, true); } } |
#15
|
||||
|
||||
I read the same... so then perhaps add a field to your mod, when it emails them it adds their userid and subscription type then query said table every 10 days or so via cron, if their userid is present it emails admin or something like that still just spitting out ideas. One way to work around the deletion of subs and also retain prior sub info in a sense but like I said twas just an idea up to you IF you want to go through the trouble.
|
#16
|
||||
|
||||
Perhaps, if their is enough interest. but it seems like a lot of trouble to go through. IMO the records should not be deleted anyway, they should stay in the DB untill I of course want to thin out the table, then I should be able to run a cron, to delete subscriptions older than X.
To bad they did not think of it when they built the system. |
#17
|
|||
|
|||
I like the idea proposed by Superman. :up:
|
#18
|
||||
|
||||
Cool, that's two.
|
#21
|
||||
|
||||
Quote:
So could someone that actually runs paid subscriptions check their DB and see if it holds all the expired ones? |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|