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
Send PM On Promotion Details »»
Send PM On Promotion
Version: 1.00, by paul41598 paul41598 is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.6.4 Rating:
Released: 02-26-2007 Last Update: Never Installs: 32
Uses Plugins
Code Changes  
No support by the author.

Due To Popular Demand........
Send PM On Promotion (LITE VER)

Description:
- This LITE version of Send PM On Promotion will send a private message to a member when he/she is promoted to another usergroup via the Usergroup --> Promotions setup

Inspiration:
- Actually I was inspired from my previous hack related to this one here. Others thought it would be cool if this worked with promotions.

Features: (Lite Version)
  • Fully Customizable AdminCP Options
  • Ability To Turn On PM Alert
  • Ability To Change All PM Options Including (Sender, Subject, Body)
  • Only Works On Primary Usergroups!
Features: (Premium Version Only)
  • Fully Customizable AdminCP Options
  • Ability To Turn On PM Alert
  • Ability To Change All PM Options Including (Sender, Subject, Body)
  • Will Work On Both Primary & Secondary Usergroups!
Installation:
1.) Read Install.txt Apply File Edits
2.) Upload Product
3.) Enjoy Release

Possible Future Plans:
- ??

Important Notes:
- Please be aware that this hack does involve file edits. More specifically the cron that handles promotions. It is the only way to do it, so please don't ask why I did it this way I have tested it pretty thoroughly, and it should work, but use at your own risk. Always backup your files!


Find Premium Hacks Here

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
lange

Comments
  #2  
Old 02-27-2007, 08:21 PM
projectego's Avatar
projectego projectego is offline
 
Join Date: Feb 2006
Location: UK
Posts: 724
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Perfect! This is something I have needed for a while now! Thank you, Paul!
Reply With Quote
  #3  
Old 02-27-2007, 08:43 PM
Tanabe Tanabe is offline
 
Join Date: Feb 2007
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is pretty good I'll click install when I actually have time to install it.
Reply With Quote
  #4  
Old 02-28-2007, 05:24 AM
D.Ilyin D.Ilyin is offline
 
Join Date: Oct 2005
Posts: 193
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

paul41598 thank's! Clicked install.
Quote:
Possible Future Plans:
- ??
1. Different custumizeable PM text for different promotions
2. Different PM sender text for different promotions
3. Not only PM but and e-mail

Is it enough?
Reply With Quote
  #5  
Old 02-28-2007, 06:41 PM
bada_bing's Avatar
bada_bing bada_bing is offline
 
Join Date: Feb 2004
Location: Michigan
Posts: 1,698
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool will this work on vb 3.5.x ?
Reply With Quote
  #6  
Old 02-28-2007, 07:02 PM
paul41598's Avatar
paul41598 paul41598 is offline
 
Join Date: Jun 2004
Location: MI
Posts: 732
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bada_bing View Post
Cool will this work on vb 3.5.x ?
untested
Reply With Quote
  #7  
Old 03-01-2007, 02:30 PM
bada_bing's Avatar
bada_bing bada_bing is offline
 
Join Date: Feb 2004
Location: Michigan
Posts: 1,698
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone tested this on 3.5.x ?
Reply With Quote
  #8  
Old 04-06-2007, 09:38 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this going to work whenever I have promoted a regular member to a staff member like a moderator or super mod?
Reply With Quote
  #9  
Old 04-16-2007, 10:08 PM
Sir_Yaro's Avatar
Sir_Yaro Sir_Yaro is offline
 
Join Date: Jun 2004
Location: Ireland
Posts: 98
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's ridicule to ask for money for such simple hack.
it’s a disgrace....

to make it work for secondary groups add:
Code:
			if ($vbulletin->options['sendpm_on_promotion_pm_on_off'])
			{
				$botpermissions['adminpermissions'] = 2;
				$pmbody = construct_phrase($vbphrase['sendpm_on_paid_promotion_primary_alertpm'], $promotion['username'], $promotion['title']);
				$pmdm =& datamanager_init('PM', $vbulletin, ERRTYPE_ARRAY);
				$pmdm->set('fromuserid', $vbulletin->options['sendpm_on_promotion_fromuserid']);
				$pmdm->set('fromusername', $vbulletin->options['sendpm_on_promotion_fromusername']);
				$pmdm->set('title', $vbulletin->options['sendpm_on_promotion_pm_subject']);
				$pmdm->set('message', "$pmbody");
				$pmdm->set_recipients($promotion[username], $botpermissions); 
				$pmdm->set('dateline', TIMENOW);
				$pmdm->save();
			}
below:
Code:
			else
			{
				$secondaryupdates["$joinusergroupid"] .= ",$promotion[userid]";
				$secondarynames["$joinusergroupid"] .= iif($secondarynames["$joinusergroupid"], ", $promotion[username]", $promotion['username']);
				$user['membergroupids'] .= (($user['membergroupids'] != '') ? ',' : '') . $joinusergroupid;
Reply With Quote
  #10  
Old 04-17-2007, 12:35 AM
PinkDaisy's Avatar
PinkDaisy PinkDaisy is offline
 
Join Date: Sep 2006
Posts: 274
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

didn't work for me and messed up my promotions to not work
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 03:04 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.04511 seconds
  • Memory Usage 2,301KB
  • 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
  • (2)bbcode_code
  • (2)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
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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