Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
MNG - Send Custom PM or Email to User on Paid Subscription Details »»
MNG - Send Custom PM or Email to User on Paid Subscription
Version: 1.00, by ringleader ringleader is offline
Developer Last Online: Dec 2011 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.6.8 Rating:
Released: 03-27-2008 Last Update: Never Installs: 55
DB Changes Uses Plugins
Re-useable Code Additional Files Translations  
No support by the author.

Send Custom PM or Email on Paid Subscription v1.0

About this mod:

I have seen a number of requests for the ability to send a custom PM and/or a custom email when a user buys a Paid Subscription from your board. This would be used if you want to tell them their payment has been received, rather than relying on, say, paypal to do it for you. You can write a custom message in the PM or email to explain what they've bought and are entitled to now.

This is also good for when you receive a donation from users, as you want them to feel like they've been acknowledged in some way, by PM or email.

I had to code this for my own board anyway, so I thought I'd release it here.
I'm just that nice.

This hack allows you to configure text for a PM and/or an email on a per-subscription basis.
You can set either the PM or email or both to send when someone purchases a subscription.

Configurable:
* The PM sender
* The PM subject
* The body of the PM
* PM active/inactive for a particular subscription.
* The email sender address
* The email subject
* The body of the email
* Email active/inactive for a particular subscription.
* The Paid Subscription ID that the PM and/or Email are to be sent for when one of the subscriptions is bought.
* Email text always includes the expiry date of the subscription (hardcoded).
* Email text always includes a link to the members' profile.


Input on features you would like to see for this hack is very welcome, but may not be possible to implement. The Paid Subscriptions are very tightly coded by default in vbulletin.

What this mod does to your board: (nice to know beforehand)

* 1 plugin added.
* 1 table added (called 'subscriptionpmemail').
* 1 Admincp menu xml file.
* 1 function file for use by the admincp.
* Time to install: 1 min

Updates:


Version 1.0 (28th March 2008):

* Release of this hack for vBulletin version 3.6.8

MAKE SURE YOU CLICK INSTALL!
If you like this hack and use it then DONATE!


Pictures (attached):

1. Admincp: Configure PM or Email text to send.
2. PM that is sent to user upon purchase of a particular subscription.
3. Email that is sent to a user upon purchase of a particular subscription.

Show Your Support

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

Comments
  #22  
Old 06-25-2008, 02:06 PM
stamos2003 stamos2003 is offline
 
Join Date: Nov 2003
Location: Berlin
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

awesome, I will give it a try!
Reply With Quote
  #23  
Old 07-19-2008, 07:33 AM
Konstantinos Konstantinos is offline
 
Join Date: Apr 2006
Posts: 443
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
* Email text always includes the expiry date of the subscription (hardcoded).
* Email text always includes a link to the members' profile.
how do we include this in pm too
Reply With Quote
  #24  
Old 08-02-2008, 05:59 AM
Konstantinos Konstantinos is offline
 
Join Date: Apr 2006
Posts: 443
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by fariborz View Post
I installed in 3.7.1 PL2
I have not any problem with this product, just can't send any email to users.
well if this is not a problem than what whould be ?
Reply With Quote
  #25  
Old 08-08-2008, 10:09 AM
MrEyes MrEyes is offline
 
Join Date: Nov 2004
Posts: 380
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have installed this on my 3.7.2 test forum and everything seems to work as intended which is great.

However, I have noticed a quirk....

If an admin goes to ACP Paid Sub Manager and edits an existing user subscription then a PM is also sent to the user. Is there anyway to stop this from happening?

And, I have a couple of suggestions....

It would be great to have replacement variables in the PM text, for example:

Quote:
Hello {UserName}

Thanks for subscribing to {PaidSubName}, I can confirm that we have received your payment of {PaidSubAmount} and your account has now been upgraded
So this would be received as


Quote:
Hello JohnDoe

Thanks for subscribing to The Greatest Subscription on Earth, I can confirm that we have received your payment of ?1,000,000 and your account has now been upgraded
Another suggestion, which I am sure many people will really appreciate is the ability to run custom SQL calls on subscription. As a silly example, buying a paid sub increases your post count by 100 and gives you 1000 in casino money (see Casino mod here on vb.org) So you would define additional SQL as:

Quote:
update user set posts = posts + 100 where userid = {userid}
update user set casino_cash = casino_cash + 1000 where userid = {userid}
And finally, another suggestion - have the ability to exclude usergroups/userid from receiving the PM

EDIT: Note to self, read the entire mod description before wading in with a "quirk report" However having the ability to exclude userid from the PM could prevent this. So if an admin is making a sub edit they temporarily add the userid into exclusions, make the edit and then remove it.

EDIT 2: If for whatever reason you do not want to make these changes do you mind if I take the current mod code base and extend it to perform these functions?
Reply With Quote
  #26  
Old 08-13-2008, 08:11 PM
ringleader's Avatar
ringleader ringleader is offline
 
Join Date: Dec 2006
Location: Dublin, Ireland
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey guys, I've been reading the posts and keeping up with the suggestions and such on this thread, but I've been snowed under with work for the past while (new job and all that jazz).

I will be free in about 2 weeks to begin working on this again immediately. Thanks for supporting the mod! Apologies for not getting the time to respond earlier.
Reply With Quote
  #27  
Old 08-18-2008, 11:35 AM
fariborz fariborz is offline
 
Join Date: Sep 2006
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm using vBulletin 3.7.2 PL2, and i'm moving my second DataBase to other server.
After that your problem is not worked for me!!
and after add paid i received this error:

FATAL ERROR

Unable to proceed with save while $errors array is not empty in class vB_DataManager_PM in [path]/includes/class_dm.php on line 810
#0 vb_error_handler(256,

===================

What can i do now?
Reply With Quote
  #28  
Old 09-11-2008, 09:10 AM
kafi kafi is offline
 
Join Date: Apr 2004
Posts: 379
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Some of my users got PM and Email although I havent updated or changed their subscriptions.
The time when messages was sent gives me hint that this happen somehow along with subscription script reminder.

Is that possible? What really trigger these mesages in this add-on?
Reply With Quote
  #29  
Old 09-15-2008, 12:25 AM
fariborz fariborz is offline
 
Join Date: Sep 2006
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

please update this plugin, i so need to using this
Reply With Quote
  #30  
Old 12-07-2008, 01:29 PM
nocturnix nocturnix is offline
 
Join Date: Jul 2002
Location: USofA
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would love to see an update too!
Reply With Quote
  #31  
Old 01-29-2009, 01:49 PM
stamos2003 stamos2003 is offline
 
Join Date: Nov 2003
Location: Berlin
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what about an option for sending PMs on subscription end?
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 07:53 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.06375 seconds
  • Memory Usage 2,310KB
  • Queries Executed 25 (?)
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
  • (5)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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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