The Arcive of vBulletin Modifications Site. |
|
Send PM On Promotion Details »»
|
|||||||||||||||||||||||||
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)
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
|
|||||||||||||||||||||||||
| Благодарность от: | ||
| lange | ||
| Comments |
|
#2
|
||||
|
||||
|
Perfect! This is something I have needed for a while now! Thank you, Paul!
|
|
#3
|
|||
|
|||
|
This is pretty good I'll click install when I actually have time to install it.
|
|
#4
|
|||
|
|||
|
paul41598 thank's! Clicked install.
Quote:
2. Different PM sender text for different promotions 3. Not only PM but and e-mail Is it enough?
|
|
#5
|
||||
|
||||
|
Cool will this work on vb 3.5.x ?
|
|
#6
|
||||
|
||||
|
|
|
#7
|
||||
|
||||
|
Has anyone tested this on 3.5.x ?
|
|
#8
|
||||
|
||||
|
Is this going to work whenever I have promoted a regular member to a staff member like a moderator or super mod?
|
|
#9
|
||||
|
||||
|
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();
}
Code:
else
{
$secondaryupdates["$joinusergroupid"] .= ",$promotion[userid]";
$secondarynames["$joinusergroupid"] .= iif($secondarynames["$joinusergroupid"], ", $promotion[username]", $promotion['username']);
$user['membergroupids'] .= (($user['membergroupids'] != '') ? ',' : '') . $joinusergroupid;
|
|
#10
|
||||
|
||||
|
didn't work for me and messed up my promotions to not work
|
![]() |
|
|