Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons

Reply
 
Thread Tools
Subscription Notifications -- Drive paid subscriptions & renewals Details »»
Subscription Notifications -- Drive paid subscriptions & renewals
Version: 1.2.3, by Ted S Ted S is offline
Developer Last Online: Nov 2020 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.7.x Rating:
Released: 05-19-2008 Last Update: 12-23-2008 Installs: 170
Uses Plugins Template Edits
 
No support by the author.

vB 4 beta version: https://vborg.vbsupport.ru/showthread.php?t=241224

Paid Subscriptions are a means of driving revenue for thousands of forums but what do you do when a subscription is about to expire? On most forums, if the subscription does not recur automatically, users lose their status and only if they notice a change in benefits do they think to renew. By proactively informing users of their subscription expiration you can help increase paid subscription renewal rates and decrease support inquiries from subscribers.

Notifications Options & Customizations:

The Subscription Notifications System can appear on your Forum Home and/or User CP pages and can display the following messages:

Expired Alert
24 Hour Alert
48 Hour Alert
7 Day Alert
1 Month Alert
Long Term Membership
No Membership

All of these messages can be configured using phrases and customized with HTML code to meet your forum's needs.

Each message is enabled/ disabled through your vB control panel with a link provided to modify the message contents using the phrase system.

Modifications/ Instructions:
Template edits: 1-2
Plugins: 1 (adds 1 template and several phrases & settings)
SQL Queries Added: 1-2

This addon should take under 5 minutes to implement and customize. Note: Minor template modifications are required for this addon to show up (see instructions file for more details)!

Compatibility with 3.6.x versions:

This addon will work with 3.6.x but the admin cp phrase links will appear broken. Users of 3.6.x versions will need to manually search for the phrases to customize.

Updates:
- 12/24/2008 - Minor bug fix to support table prefixes
- 08/26/2008 - Minor bug fix to change expired subscription message.
- 06/12/2008 - Update recent subscriber feature
- 06/06/2008 - Update to fix urls to relative path
- 06/05/2008 - Update to resolve bug with date format and multiple subscriptions

Credit goes to tspore for providing the original idea for this addon.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #172  
Old 02-16-2011, 04:59 PM
Ted S Ted S is offline
 
Join Date: Dec 2003
Location: SoCal
Posts: 3,954
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by vitrag24 View Post
update for vbulletin 4 plz?
It's been out for over almost a year... https://vborg.vbsupport.ru/showthread.php?t=241224
Reply With Quote
  #173  
Old 05-11-2013, 05:56 PM
Drareg's Avatar
Drareg Drareg is offline
 
Join Date: Aug 2009
Location: Holland
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A question, users are notified when a subscription will expire, but what about notifying an Admin when a users subscription will expire?

I could not find anything about this, just a simple email to the admin to notify him or is this just a silly question?

Does this mod also work on 3.8.4?
Reply With Quote
  #174  
Old 05-11-2013, 07:33 PM
Ted S Ted S is offline
 
Join Date: Dec 2003
Location: SoCal
Posts: 3,954
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Drareg View Post
A question, users are notified when a subscription will expire, but what about notifying an Admin when a users subscription will expire?

I could not find anything about this, just a simple email to the admin to notify him or is this just a silly question?

Does this mod also work on 3.8.4?
This mod does not notify admins.
Reply With Quote
  #175  
Old 05-12-2013, 10:03 AM
Drareg's Avatar
Drareg Drareg is offline
 
Join Date: Aug 2009
Location: Holland
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I thought so. We do not use PayPal or anything else, just members pay per bank. But when the member gets an expire email, it would just be nice that the Admin also gets a notification of this. I could not find anything so far about this, suggestions?

Maybe it's simpel by coding the subscriptions.php in includes/cron and add the Admins email address, but I'm not a coder unfortunatly.

PHP Code:
    vbmail_start();
    while (
$subscriptions_reminder $vbulletin->db->fetch_array($subscriptions_reminders))
    {
        require_once(
DIR '/includes/functions_misc.php');
        
$subscription_title fetch_phrase('sub' $subscriptions_reminder['subscriptionid'] . '_title''subscription'''truetrue$subscriptions_reminder['languageid']);

        
$username unhtmlspecialchars($subscriptions_reminder['username']);
        eval(
fetch_email_phrases('paidsubscription_reminder'$subscriptions_reminder['languageid']));
        
vbmail($subscriptions_reminder['email'], $subject$message);
    }
    
vbmail_end(); 
Something else, below in subscriptions.php is this line:
PHP 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
    "
); 
Can I change TIMENOW + (86400 * 2) and TIMENOW + (86400 * 3) to longer periods without problems? For example TIMENOW + (86400 * 7) and TIMENOW + (86400 * 14)

Thanks.
Reply With Quote
  #176  
Old 05-12-2013, 04:39 PM
Ted S Ted S is offline
 
Join Date: Dec 2003
Location: SoCal
Posts: 3,954
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Drareg View Post
I thought so. We do not use PayPal or anything else, just members pay per bank. But when the member gets an expire email, it would just be nice that the Admin also gets a notification of this. I could not find anything so far about this, suggestions?

Maybe it's simpel by coding the subscriptions.php in includes/cron and add the Admins email address, but I'm not a coder unfortunatly.

PHP Code:
    vbmail_start();
    while (
$subscriptions_reminder $vbulletin->db->fetch_array($subscriptions_reminders))
    {
        require_once(
DIR '/includes/functions_misc.php');
        
$subscription_title fetch_phrase('sub' $subscriptions_reminder['subscriptionid'] . '_title''subscription'''truetrue$subscriptions_reminder['languageid']);

        
$username unhtmlspecialchars($subscriptions_reminder['username']);
        eval(
fetch_email_phrases('paidsubscription_reminder'$subscriptions_reminder['languageid']));
        
vbmail($subscriptions_reminder['email'], $subject$message);
    }
    
vbmail_end(); 
Something else, below in subscriptions.php is this line:
PHP 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
    "
); 
Can I change TIMENOW + (86400 * 2) and TIMENOW + (86400 * 3) to longer periods without problems? For example TIMENOW + (86400 * 7) and TIMENOW + (86400 * 14)

Thanks.
You'll need to write a script to query the susbcriptions, generate an email and save it as a cron. Questions on coding like that are far better directed to the coding forum here where you get access to all sorts of individuals rather than a support thread like this one which is visited by very few developers.
Reply With Quote
  #177  
Old 05-12-2013, 04:57 PM
Drareg's Avatar
Drareg Drareg is offline
 
Join Date: Aug 2009
Location: Holland
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Ted for the effort, I will do so.
Reply With Quote
  #178  
Old 02-16-2014, 04:08 PM
jnmann jnmann is offline
 
Join Date: Dec 2010
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can this work on 4.2.1?
Reply With Quote
  #179  
Old 02-17-2014, 02:18 AM
Ted S Ted S is offline
 
Join Date: Dec 2003
Location: SoCal
Posts: 3,954
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jnmann View Post
Can this work on 4.2.1?
3.x mods do not work on 4.x

Of course the 4.x version will work fine...
Reply With Quote
Reply

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

Forum Jump


All times are GMT. The time now is 02:11 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04973 seconds
  • Memory Usage 2,312KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete