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

Reply
 
Thread Tools
Automatic PM on New Thread Details »»
Automatic PM on New Thread
Version: 1.1, by Michael Biddle Michael Biddle is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.7.x Rating:
Released: 07-01-2008 Last Update: 07-01-2008 Installs: 22
Supported DB Changes Uses Plugins Template Edits Auto-Templates
 

Automatic PM on New Thread
by: whitemike


What this hack does?


This hack will allow the admin to setup a certain usergroup to receive an instant PM notification informing that usergroup that a new thread in the specified forum has been created.

How to install?
  1. Import the Product
  2. Template Edit: newthread
    • Find the following:
      HTML Code:
      <tr>
                  <if condition="$prefix_options">
    • Replace with:
      HTML Code:
      $sendpm
              
              <tr>
                  <if condition="$prefix_options">
You will need to go into your vBulletin Admin Control Center and do the following.
  1. On the left frame find: User Profile Fields
  2. Then click on: Add New User Profile Field. Set with these properties
    • Single Selection Menu
    • Title and description you can set to how you want it
    • Options: Yes and No (Make sure you separate by a line break)
    • Set Default: Yes, But No First Blank Option
    • Field Required: No, but display at registration
    • Field Editable by User: Yes
    • Display Page: Other:Options
    • Note: You can change the other settings that I did not list to how you want it
    • Important: After it saves you will be taken back to the User Profile Field Manager, here you will see what field# you have, such as field5, remember that number for later use.
Settings?
  1. vBulletin Options:
    • Userid - Enter the userid that the PM will be sent from
    • Username - Enter the username that the PM will be sent from
    • Usergroupid's - Enter the usergroupid's (separated by a coma) to send the PM to.
    • Custom Profile Field - Enter the custom profile field number that you set up above.
  2. Forum Manager
    • Enable/Disable
Customize it for yourself?

You can go ahead and edit the six phrases to suite your needs with it. The variables are prefixed with autopm_.

Please click install if you use!

Suggestions are always welcomed!

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 07-02-2008, 02:06 AM
Michael Biddle Michael Biddle is offline
 
Join Date: Apr 2004
Location: Anaheim, CA
Posts: 774
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Reserved for future use
Reply With Quote
  #3  
Old 07-02-2008, 02:08 AM
Lizard King Lizard King is offline
 
Join Date: Jan 2005
Location: Mersin
Posts: 907
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great mod mike
Reply With Quote
  #4  
Old 07-02-2008, 04:21 AM
Itworx4me's Avatar
Itworx4me Itworx4me is offline
 
Join Date: Feb 2002
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you explain in detail as to what the custom profile field does and why it is needed. Do you have to do the custom profile field in order for this hack to work?

Thanks,
Itworx4me
Reply With Quote
  #5  
Old 07-02-2008, 04:44 AM
Michael Biddle Michael Biddle is offline
 
Join Date: Apr 2004
Location: Anaheim, CA
Posts: 774
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It gives the person in the usergroup (set by admin) a chance to opt on on being auto pmed.
Reply With Quote
  #6  
Old 07-02-2008, 06:53 AM
xorex's Avatar
xorex xorex is offline
 
Join Date: Jan 2008
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
Error BD vBulletin 3.7.0:

Invalid SQL:

	ALTER TABLE thread
    ADD sendpm varchar(100) UNSIGNED NOT NULL;

Error MySQL     : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'UNSIGNED NOT NULL' at line 2
number error     : 1064
date      : Wednesday, July 2nd 2008 @ 11:49:54 AM
error date      : Wednesday, July 2nd 2008 @ 11:49:55 AM
script          : /forums/admincp/plugin.php?do=productimport
referer         : /forums/admincp/plugin.php?do=productadd
IP adress         : localhost
Name User : admin
Name class       : vB_Database
Version MySQL     : 5.0.51a
ideas ?
Reply With Quote
  #7  
Old 07-02-2008, 08:12 AM
sensimilla sensimilla is offline
 
Join Date: Dec 2004
Location: Poland
Posts: 555
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod, would be usefull to send PM to users subscribed to certain vb social group.
for example BMX lovers about posts in Bikes forum... ect..

thanks great mod I might install it later
Reply With Quote
  #8  
Old 07-02-2008, 08:29 AM
maroceve maroceve is offline
 
Join Date: Oct 2005
Location: Casablanca, Morocco
Posts: 232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how would this work for large databases ?

if a usergroup has more than 30 000 people..Will it crash my server ? or does it send a certain amount of mail at a time ? etc ?
Reply With Quote
  #9  
Old 07-02-2008, 08:32 AM
maroceve maroceve is offline
 
Join Date: Oct 2005
Location: Casablanca, Morocco
Posts: 232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes i get the same db error :

Database error in vBulletin 3.7.1:

Invalid SQL:

ALTER TABLE thread
ADD sendpm varchar(100) UNSIGNED NOT NULL;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'UNSIGNED NOT NULL' at line 2
Error Number : 1064
Request Date : Wednesday, July 2nd 2008 @ 05:31:41 AM
Error Date : Wednesday, July 2nd 2008 @ 05:31:42 AM
Script : http://www.maroceve.com/forums/admin...=productimport
Referrer : http://www.maroceve.com/forums/admin...?do=productadd
IP Address : 41.251.65.88
Username : Ez
Classname : vB_Database
MySQL Version : 4.1.22-standard
Reply With Quote
  #10  
Old 07-02-2008, 06:49 PM
Michael Biddle Michael Biddle is offline
 
Join Date: Apr 2004
Location: Anaheim, CA
Posts: 774
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Updated. Should have the fix now.
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 06:35 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.07082 seconds
  • Memory Usage 2,291KB
  • Queries Executed 24 (?)
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)bbcode_code
  • (2)bbcode_html
  • (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
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (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
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete