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)
-   -   Miscellaneous Hacks - Send PM On Promotion (https://vborg.vbsupport.ru/showthread.php?t=140629)

paul41598 02-26-2007 10:00 PM

Send PM On Promotion
 
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 :rolleyes: I have tested it pretty thoroughly, and it should work, but use at your own risk. Always backup your files!


Find Premium Hacks Here

projectego 02-27-2007 08:21 PM

Perfect! This is something I have needed for a while now! Thank you, Paul! ;)

Tanabe 02-27-2007 08:43 PM

This is pretty good I'll click install when I actually have time to install it.

D.Ilyin 02-28-2007 05:24 AM

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? :)

bada_bing 02-28-2007 06:41 PM

Cool will this work on vb 3.5.x ?

paul41598 02-28-2007 07:02 PM

Quote:

Originally Posted by bada_bing (Post 1192819)
Cool will this work on vb 3.5.x ?

untested

bada_bing 03-01-2007 02:30 PM

Has anyone tested this on 3.5.x ?

Snake 04-06-2007 09:38 PM

Is this going to work whenever I have promoted a regular member to a staff member like a moderator or super mod?

Sir_Yaro 04-16-2007 10:08 PM

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;


PinkDaisy 04-17-2007 12:35 AM

didn't work for me and messed up my promotions to not work :(


All times are GMT. The time now is 02:52 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.00981 seconds
  • Memory Usage 1,739KB
  • 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_code_printable
  • (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