Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-27-2005, 09:58 AM
PVO_Dave PVO_Dave is offline
 
Join Date: Jan 2002
Location: UK
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Subscription Expiry email / notification

Hi,

From what I understand VB Auto emails 2 days before a sub is about to expire, for me thats not really enough notice, was thinking more like 2 weeks lol

I have tried searching this forum a lot today, but had no luck, can this be easily changed?

Have also replied to another thread to see if there is any kind of hack yet to display the expiry date for the members for 3.5!

Thanks
Dave.
Reply With Quote
  #2  
Old 10-28-2005, 12:57 PM
PVO_Dave PVO_Dave is offline
 
Join Date: Jan 2002
Location: UK
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No one?

You have all left the subscription reminders wait until 2 days before?!
Reply With Quote
  #3  
Old 11-08-2005, 06:46 AM
PVO_Dave PVO_Dave is offline
 
Join Date: Jan 2002
Location: UK
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello??
Reply With Quote
  #4  
Old 01-05-2006, 05:36 AM
ChurchMedia's Avatar
ChurchMedia ChurchMedia is offline
 
Join Date: Dec 2002
Location: Las Cruces, NM
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have one that isn't quite ready to release, but you shouldn't have any problems. It will send an email to the admin and user when someone pays for a subscription and then also send an email to the admin and user when it expires (at midnight it sends out the expiration emails).

Just go through the code and customize it for your needs. Then add it as a product.

I'm using it with no problems.
Attached Files
File Type: xml email-subscriber2.xml (2.3 KB, 109 views)
Reply With Quote
  #5  
Old 05-10-2006, 02:47 AM
kyrnel's Avatar
kyrnel kyrnel is offline
 
Join Date: Nov 2001
Location: Houston, TX
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the plugin. It is certainly helpful to get an email when a new subscriber signs up and when they expire.

Any ideas on how to modify this to send a reminder to the user 30 days before the paid subscription expires? Right now, you are using the "paidsub_delete" hook that triggers the day of expiration. Right now, vB sends a reminder 2-3 days in advance, but I would like to change that to around 2-3 weeks.
Reply With Quote
  #6  
Old 05-14-2006, 06:25 PM
kyrnel's Avatar
kyrnel kyrnel is offline
 
Join Date: Nov 2001
Location: Houston, TX
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I found the answer. You can just edit /includes/cron/subscriptions.php

There is very little code in the file. So you can easily see the '2' and '3' in the code. This means that the email notice goes out between 2 and 3 days from expiration.

I simply changed this to 30 and 31.

It would be nice for this to be an control panel option in the future.
Reply With Quote
  #7  
Old 05-14-2006, 08:19 PM
arossphoto arossphoto is offline
 
Join Date: Jan 2006
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for figuring this out. I was also wondering when the emails went out.

For anyone else here's the code you need to edit:

Code:
WHERE subscriptionlog.expirydate >= " . (TIMENOW + (86400 * 2)) . "
			AND subscriptionlog.expirydate <= " . (TIMENOW + (86400 * 3)) . "
Are you sure you can just change the 2 and 3 to anything you want? What's the 86400 for?

Some of my members pay by cheque, so I want to give them sufficient notice to send their payment. It would be ideal if vB sent a couple of reminders a few weeks apart.

I also edited the email that gets sent and if anyone else wants to do this I found it in the phrase: paidsubscription_reminder

Thanks,

Andrew
Reply With Quote
  #8  
Old 05-19-2006, 06:33 PM
arossphoto arossphoto is offline
 
Join Date: Jan 2006
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by arossphoto
Are you sure you can just change the 2 and 3 to anything you want? What's the 86400 for?
Can anyone confirm that it is okay to just change the 2 and 3? If I change this to 30 and 31 will they receive the notification in 30 days?

I'd just like to make sure it works before I start messing with the code.

Thanks,

Andrew
Reply With Quote
  #9  
Old 05-31-2006, 07:49 AM
PVO_Dave PVO_Dave is offline
 
Join Date: Jan 2002
Location: UK
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

86400 is how many seconds in a day right? so this should work! Thanks! Will change it now
Reply With Quote
  #10  
Old 12-03-2006, 07:43 PM
kontrabass kontrabass is offline
 
Join Date: Feb 2002
Posts: 139
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ChurchMedia View Post
I have one that isn't quite ready to release, but you shouldn't have any problems. It will send an email to the admin and user when someone pays for a subscription and then also send an email to the admin and user when it expires (at midnight it sends out the expiration emails).

Just go through the code and customize it for your needs. Then add it as a product.

I'm using it with no problems.
To date this is the only mod that will send an email to a user when they subscribe (ie, THANK YOU!). It worked great for me in 3.5, but it doesn't work in 3.6. I mean it works, but the subscription name is blank:

"test1026 has subscribed to . "

Would you be able to do a 3.6 fix? TIA!!
Reply With Quote
Reply


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 04:54 PM.


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.04333 seconds
  • Memory Usage 2,270KB
  • Queries Executed 12 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete