Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 02-27-2006, 02:10 AM
Residue Residue is offline
 
Join Date: Apr 2005
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Auto PM Premium Membership after payment received

Ive searched around and wasnt able to find anything for 3.5 that had this functionality.

What I'd like to do is have vB automatically send Premium members a 'Thank you PM' after payment for their membership is recieved.

If anyone knows of an existing hack to do this, or could help me create one, I'd greatly appreciate it!
Reply With Quote
  #2  
Old 02-27-2006, 03:25 AM
Reeve of shinra's Avatar
Reeve of shinra Reeve of shinra is offline
 
Join Date: Oct 2001
Location: NYC
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good idea...
Reply With Quote
  #3  
Old 02-27-2006, 03:39 AM
bada_bing's Avatar
bada_bing bada_bing is offline
 
Join Date: Feb 2004
Location: Michigan
Posts: 1,698
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This would be nice.
Reply With Quote
  #4  
Old 02-27-2006, 03:49 AM
3z3k3l 3z3k3l is offline
 
Join Date: Feb 2006
Location: TX
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

agreed. Great idea
Reply With Quote
  #5  
Old 02-27-2006, 03:52 AM
Reeve of shinra's Avatar
Reeve of shinra Reeve of shinra is offline
 
Join Date: Oct 2001
Location: NYC
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This looks easier than I thought...

Create a new plugin.
Hook Location: paidsub_complete

Plugin PHP Code:

Copy and past the example Andreas gave in the first php code box, just be sure to change the approprate userid and message and stuff like that.

https://vborg.vbsupport.ru/showthread.php?t=82786

edit: I dont have subs yet, so I haven't tried this out.
Reply With Quote
  #6  
Old 02-27-2006, 04:13 AM
Residue Residue is offline
 
Join Date: Apr 2005
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Reeve of shinra
This looks easier than I thought...

Create a new plugin.
Hook Location: paidsub_complete

Plugin PHP Code:

Copy and past the example Andreas gave in the first php code box, just be sure to change the approprate userid and message and stuff like that.

https://vborg.vbsupport.ru/showthread.php?t=82786

edit: I dont have subs yet, so I haven't tried this out.
Interesting...good find. I will have to mess with this sometime this week to figure out how to make it do what i want.

So I would change the line

$pmdm->set_recipients('newuser', $botpermissions)

to:
$pmdm->set_recipients('paidsub_complete', $botpermissions)

?? Thanks
Reply With Quote
  #7  
Old 02-27-2006, 04:58 AM
Reeve of shinra's Avatar
Reeve of shinra Reeve of shinra is offline
 
Join Date: Oct 2001
Location: NYC
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no, when you create the new plugin, paidsub_complete should be teh HOOK that you use
Reply With Quote
  #8  
Old 02-28-2006, 12:11 PM
gonkowonko gonkowonko is offline
 
Join Date: Jun 2005
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you created a plugin how does it know to send Pm to that new member of that premium membership when they sign up??

PHP Code:
 // create the DM to do error checking and insert the new PM 
$pmdm =& datamanager_init('PM'$vbulletinERRTYPE_ARRAY); 
$pmdm->set('fromuserid'1234); 
$pmdm->set('fromusername''Welcome-Bot'); 
$pmdm->set('title''Welcom to our Forums'); 
$pmdm->set('message'"Hello\nI am a Bot and would like to give you a warm welcome :)"); 
$pmdm->set_recipients('newuser'$botpermissions); 
$pmdm->set('dateline'TIMENOW); 
Reply With Quote
Reply

Thread Tools
Display Modes

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:16 PM.


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.04130 seconds
  • Memory Usage 2,227KB
  • Queries Executed 13 (?)
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_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete