vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   New Posting Features - Automatic PM on New Thread (https://vborg.vbsupport.ru/showthread.php?t=184123)

Michael Biddle 07-01-2008 10:00 PM

Automatic PM on New Thread
 
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!

Michael Biddle 07-02-2008 02:06 AM

Reserved for future use

Lizard King 07-02-2008 02:08 AM

great mod mike

Itworx4me 07-02-2008 04:21 AM

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

Michael Biddle 07-02-2008 04:44 AM

It gives the person in the usergroup (set by admin) a chance to opt on on being auto pmed.

xorex 07-02-2008 06:53 AM

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 ?

sensimilla 07-02-2008 08:12 AM

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

maroceve 07-02-2008 08:29 AM

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 ?

maroceve 07-02-2008 08:32 AM

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

Michael Biddle 07-02-2008 06:49 PM

Updated. Should have the fix now.


All times are GMT. The time now is 12:57 AM.

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.01171 seconds
  • Memory Usage 1,740KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_html_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