vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Mini Mods - MNG - Send Custom PM or Email to User on Paid Subscription (https://vborg.vbsupport.ru/showthread.php?t=174436)

ringleader 03-27-2008 10:00 PM

MNG - Send Custom PM or Email to User on Paid Subscription
 
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.

ringleader 03-28-2008 03:34 PM

*** Reserved, just in case ***

DssCrazy 03-28-2008 05:23 PM

Am a little confused on what this does. Here is my understanding. When someone buys Paid Subscription it will send the staff a message stating that someone has used?

Thanks

DssCrazy 03-28-2008 05:28 PM

Will this send an email/pm to the user telling them that their Paid Subscription is almost up is that what it does?

ringleader 03-28-2008 05:29 PM

Quote:

Originally Posted by DssCrazy (Post 1476977)
Am a little confused on what this does. Here is my understanding. When someone buys Paid Subscription it will send the staff a message stating that someone has used?

Thanks

No, currently when someone buys a subscription vbulletin will inform the admin (or whoever you nominate in the admincp).

The only information the customer/user receives is from paypal that their payment has gone through.

This allows you to send your own custom message to the customer/user using either a PM or email (or both), depending on the subscription purchased.

The kind of thing this would be used for is to give them information about what they're entitled to with their subscription, etc, or to tell them that you yourself acknowledge receiving their subscription payment.

It's a lot more professional than relying on paypal to inform them, but having no word from the forum itself about anything.

Edit: A user receives an email 2 days before their subscription is up, currently.

In future I'll be adding a configurable system that you can send custom PM's or emails to them whenever you choose to, e.g. weeks before it's up, etc.

DssCrazy 03-28-2008 05:31 PM

I should have looked at the screen shot first lol. i see now it gives you the abillity to auto send a pm/email when a member buys a Paid Subscription. ok perfect installed. Will it also give a warning message when Paid Subscription is almost up?

Thanks

ringleader 03-28-2008 05:46 PM

Quote:

Originally Posted by DssCrazy (Post 1476984)
I should have looked at the screen shot first lol. i see now it gives you the abillity to auto send a pm/email when a member buys a Paid Subscription. ok perfect installed. Will it also give a warning message when Paid Subscription is almost up?

A user receives an email 2 days before their subscription is up, currently.

In future I'll be adding a configurable system that you can send custom PM's or emails to them whenever you choose to, e.g. weeks before it's up, etc.
That part may be made a paid mod though.

rmxs 03-28-2008 07:25 PM

Can we use something like $user etc???

Xeder 03-28-2008 08:17 PM

Thanks for this.
But i was hoping if u could add an option to send a copy of that pm to a defined staff?

DssCrazy 03-28-2008 11:14 PM

Can you add the option to send pm certain staff?

Also where do you type in the message to let the member know when their Paid Subscription is almost up?

Thanks


All times are GMT. The time now is 01:19 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01224 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete