Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

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
  #12  
Old 04-17-2007, 11:36 AM
Sir_Yaro's Avatar
Sir_Yaro Sir_Yaro is offline
 
Join Date: Jun 2004
Location: Ireland
Posts: 98
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

did u apply Install.txt edits ?
Reply With Quote
  #13  
Old 06-06-2007, 10:03 PM
Aeolian_X Aeolian_X is offline
 
Join Date: Jun 2005
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This hack doesn't allow you to select usergroups that receive this PM. Instead, it has a global message for all promotions. It's a good idea, but doesn't have the features it needs to be great.
Reply With Quote
  #14  
Old 10-17-2007, 03:09 PM
AngelBlue AngelBlue is offline
 
Join Date: Jun 2007
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This hack failed to work for me.
After much messing around with vBulletin errors, I gave up and uninstalled.

It seemed to think that the code to put in the cron file was very wrong, despite me copying it exactly from the install file.
Reply With Quote
  #15  
Old 01-03-2008, 04:39 AM
Heika Heika is offline
 
Join Date: Nov 2007
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AngelBlue View Post
This hack failed to work for me.
After much messing around with vBulletin errors, I gave up and uninstalled.

It seemed to think that the code to put in the cron file was very wrong, despite me copying it exactly from the install file.

Same problem here. I give..
Reply With Quote
  #16  
Old 01-03-2008, 05:37 AM
Raptor Raptor is offline
 
Join Date: Nov 2001
Posts: 499
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

doesnt work

and this guy expect ppl to pay for his premium hacks ?

not very good marketing tbh
Reply With Quote
  #17  
Old 01-07-2008, 09:28 AM
neopet001 neopet001 is offline
 
Join Date: May 2007
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to replace PM by email sending on promotion?
Reply With Quote
  #18  
Old 07-23-2008, 11:19 PM
lazytown lazytown is offline
 
Join Date: Feb 2004
Posts: 503
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does such a thing exist for 3.7.2?
Reply With Quote
  #19  
Old 09-13-2008, 01:21 PM
Carly Carly is offline
 
Join Date: Sep 2005
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

FYI this doesn't work for 3.7

Wish OP's website would work, because I'd be willing to pay for this if I could get a version that had separated PMs for separate promotions and worked with 3.7...
Reply With Quote
  #20  
Old 09-17-2009, 10:49 PM
chsmith700 chsmith700 is offline
 
Join Date: Jun 2007
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This works on 3.8.2 with the following modifications:

Install calls for changing this is promotion.php:
Code:
else
							{
								break;
							}
						}
					}
				}
to:
Code:
else
							{
								break;
							}
						}
					}
					
					if ($vbulletin->options['sendpm_on_promotion_pm_on_off'])
					{			
						$pmbody = construct_phrase($vbphrase['sendpm_on_paid_promotion_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(); 
					}
				}
For it to work on 3.8.2 change this line of code in promotion.php:
Code:
else
							{
								break;
							}
						}
					}
				}
to:
Code:
else
							{
								break;
							}
						}
					}
					
					if ($vbulletin->options['sendpm_on_promotion_pm_on_off'])
					{			
						$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(); 
					}
				}
Reply With Quote
  #21  
Old 08-30-2011, 09:24 AM
furnival furnival is offline
 
Join Date: Mar 2008
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The code chsmith700 posted above does seem to work but the promotions cron job won't run any more after it's inserted!
Reply With Quote
Reply

Thread Tools

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:29 AM.


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.05279 seconds
  • Memory Usage 2,310KB
  • Queries Executed 27 (?)
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
  • (4)bbcode_code
  • (1)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
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (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_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
  • 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