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

Reply
 
Thread Tools
Super PM (Mass PM) Details »»
Super PM (Mass PM)
Version: 1.0.4, by msgotit msgotit is offline
Developer Last Online: Mar 2009 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 11-06-2005 Last Update: 05-30-2006 Installs: 266
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

-------------------------------------
Super Private Message
-------------------------------------
Hack Version: 1.0.4
vB-version: 3.5.x
Developer: msgotit
Install-difficulty: Easy

Description:
Allows specified users to send a Private Message to certain groups of people.

This is basically the same as the hack created by UAE and in talking with him I have posted this here.

Super Private Message will give you the convenience and ability to provide many different options for sending mass private messages to users by any one you choose to assign this task to based on Conditionals (if):

User's Usergroup is Y.
User's has posts greater than x posts.
User's has posts less than x posts.
User's Join Date is After (yyyy-mm-dd).
User's Join Date is Befor (yyyy-mm-dd).
User's Last Activiy is After (yyyy-mm-dd).
User's Last Activiy is Befor (yyyy-mm-dd).
User's Last Post is After (yyyy-mm-dd).
User's Last Post is Befor (yyyy-mm-dd).

Settings in the Admin CP:

Specify who gets to use the Super Private Message System by Assigning their User Names or User IDs.
Specify the Secondary and Primary usergroup they can send a mass pm to.
Select what usergroup to be visible for selection(s).
Select to have the assignee change his identity when sending.
Control what fields to be visible for each assignee.
List All assignee, delete/edit them.

Hack Installation Details:

New files for this Hack: 2
/admincp/adminsuperpm.php
/superpm.php

New templates for this Hack: 1
pm_newsuperpm

Template-edits: 1
pm_newpm

DB Tables modified for this Hack: 1
user

History:

1.0.1 BETA
Fixed bug in xml
No longer show to whom the message will be sent (if you like that don't upload the superpm.php file. If your copy is working there is really no need to upgrade, there are no major changes yet - hopefully soon there will be!

1.0.2 BETA
Changed wording in Template - Makes more sense
Changed location of SuperPM link in admincp - Contained in the "User" group
Changed insert to fix/help fix the problem with overloading the server
Added option for admin to show to whom message will be sent

1.0.3
Fixed bug causing a php error * Thanks for the report Fofer
Fixed bug saving message to sent items even if you don't send it.

1.0.4
Added Email on pm - WARNING this will most likely not work if sending to over 500 people (probably ok up to 1000) although may be server intensive. Also, to do that you will likely have to change the max number or pms in superpm.php file from 500 to 1000.
Misc. changes as requested.

To upgrade, upload files and import the new product, click on overwrite and you will be set.
-------------------------------------

PLEASE REMEMBER TO BACKUP BEFORE YOU BEGIN!

If you like this hack, please be kind and click "INSTALL" Link.

This has been tested and seems to be working fine. If you find any errors please let me know!

Supporters / CoAuthors

Show Your Support

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

Comments
  #192  
Old 09-21-2006, 04:22 PM
Stoebi Stoebi is offline
 
Join Date: Apr 2006
Location: Germany, Berlin
Posts: 331
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi

It has nothing to do with my fix for 3.6.x.

AdminCP -> Users -> Super PM
Delete your assigned users
Assign a new user
Note! No , at the end after the userid.

Example:
1,2,3,4 is correct

1,2,3,4, is false!


Regards, Stoebi


Quote:
Originally Posted by craiovaforum
For me it doesn't work

I get this database error:


Code:
Database error in vBulletin 3.6.1:

Invalid SQL:
SELECT * FROM vb_usergroup 
						WHERE usergroupid IN (4,6,14,36,8,27,39,38,29,30,34,19,32,35,23,5,18,9,24,22,11,7,25,13,28,17,37,2,31,26,21,15,33,20,16,1,) ORDER BY title;

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 ') ORDER BY title' at line 2
Error Number : 1064
Date         : Thursday, September 21st 2006 @ 08:05:19 PM
Script       : */superpm.php
Referrer     : */private.php?do=newpm
Classname    : vB_Database
Reply With Quote
  #193  
Old 09-22-2006, 03:41 PM
craiovaforum's Avatar
craiovaforum craiovaforum is offline
 
Join Date: Nov 2005
Location: Craiova
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't know why it adds that , at the end but I removed several usergroups and it works perfectly...
Reply With Quote
  #194  
Old 09-22-2006, 08:08 PM
GoNz00 GoNz00 is offline
 
Join Date: Jan 2005
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

woohoo, works for me 2

thanks mate
Reply With Quote
  #195  
Old 09-22-2006, 09:53 PM
GoNz00 GoNz00 is offline
 
Join Date: Jan 2005
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

arghh, it sends the PM twice, does anyone have an idea what i need to look at to fix this ?

i double checked i havn't screwed up the original code, or the mod to make it 3.6.x compliant
Reply With Quote
  #196  
Old 09-22-2006, 10:13 PM
KevNJ KevNJ is offline
 
Join Date: Jan 2005
Posts: 310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works with my default style, but will not show on my custom style because the css is using an image for the catagories box. is there a way you can relocate where the "send super pm" text shows up ?
Reply With Quote
  #197  
Old 09-22-2006, 10:24 PM
KevNJ KevNJ is offline
 
Join Date: Jan 2005
Posts: 310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wahoooo... like the others have said.. works great.... ill just switch style changes to on... switch to default... send out the email and then switch styles to off... not a big deal.. cause this now works and thats what ive wanted.. WAHOOOOOOOOOOO!!!!!! stoebi for member of the month!!! ( do we have a member of the month.. we should )
Reply With Quote
  #198  
Old 09-23-2006, 02:19 AM
Stoebi Stoebi is offline
 
Join Date: Apr 2006
Location: Germany, Berlin
Posts: 331
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KevNJ
wahoooo... like the others have said.. works great.... ill just switch style changes to on... switch to default... send out the email and then switch styles to off... not a big deal.. cause this now works and thats what ive wanted.. WAHOOOOOOOOOOO!!!!!! stoebi for member of the month!!! ( do we have a member of the month.. we should )
Hi

Thx

If you use more than one style with vBulletin, it is necessary to edit these used styles too.

Quote:
################################################## ###########################
############################## TEMPLATE EDITS ###############################
################################################## ###########################

******************************* IN pm_newpm *******************************

FIND

<td class="tcat">$vbphrase[post_new_private_message]</td>

REPLACE WITH


<!-- [START HACK='Super Private Message' AUTHOR='msgotit and WwW.UAEWEB.COM' VERSION='1.0.0' CHANGEID= 1 ] -->
<td class="tcat"><if condition="$bbuserinfo['spmoption']"><a style="float:$stylevar[right]" href="superpm.php">Send Super Private Message</a></if>$vbphrase[post_new_private_message]</td>
<!-- [END HACK='Super Private Message' AUTHOR='msgotit and WwW.UAEWEB.COM' VERSION='1.0.0' CHANGEID= 1 ] -->



Step 6. Enjoy your new hack. And if you haven't already, click install at vBulletin.org.

################################################## ###########################
################################### THE END #################################
################################################## ###########################

Do this for all your installed styles. Have fun.


Kind Regards, Stoebi
Reply With Quote
  #199  
Old 09-23-2006, 01:01 PM
GoNz00 GoNz00 is offline
 
Join Date: Jan 2005
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by GoNz00
arghh, it sends the PM twice, does anyone have an idea what i need to look at to fix this ?

i double checked i havn't screwed up the original code, or the mod to make it 3.6.x compliant
bump, help. i looked for things entered twice, and see none
Reply With Quote
  #200  
Old 09-23-2006, 05:25 PM
KevNJ KevNJ is offline
 
Join Date: Jan 2005
Posts: 310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay that worked... But Im having the problem GoNz00 is having double sending. I notice when I sent to myself ( admin ) i get the message twice. Then when I send to myself ( admin ) and mods. I get the message twice again, but the mods gets no message. Then when I send to mods only they get nothing. Each time it says the messages are sent but either I get it twice, or the mods dont get it at all.



Quote:
Originally Posted by Stoebi
Hi

Thx

If you use more than one style with vBulletin, it is necessary to edit these used styles too.




Do this for all your installed styles. Have fun.


Kind Regards, Stoebi
Reply With Quote
  #201  
Old 09-23-2006, 06:02 PM
GoNz00 GoNz00 is offline
 
Join Date: Jan 2005
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

still fubar then

oh well, i wonder if it will play ball when i go from 3.6 to 3.6.1

you still on 3.6 Kev ?
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 07:14 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.06673 seconds
  • Memory Usage 2,313KB
  • Queries Executed 26 (?)
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
  • (5)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
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (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_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