Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Quote Notification via PM Details »»
Quote Notification via PM
Version: 1.00, by AcidX AcidX is offline
Developer Last Online: Feb 2013 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.0.x Rating:
Released: 05-11-2010 Last Update: 05-12-2010 Installs: 141
DB Changes Uses Plugins
Re-useable Code Is in Beta Stage  
No support by the author.

Quote Notification



Description: This plugin will add a "Quote Notification" option for users to select. If selected, your board users will receive a notification by PM whenever someone quotes them in a post.


Installation:
  • Import the attached product XML file (product-quotenotification.xml);
More settings:
  • If you want to change the content of the PM that gets sent, the phrases are quotenotify_subject and quotenotify_message;
  • The email notification has a separate phrase, quotenotify_emailmessage;
  • If you want to change the Profile Field options, find the "Quote Notification" field in your User Profile Field Manager in the ACP;
  • If you're not sure exactly what you're doing, you better leave these alone.
Warning: DO NOT change the title of the Profile Field from "Quote Notification", or the values from "Private Message", "Email", and "No" or this hack will not work.



User settings:
  • Your forum users can set their Quote Notification prefferences via User CP > General Settings > under Messaging & Notification.

This hack is a port of Krohf's modification for vb 3.5.
Since many people might find it handy on their boards, I decided to publish it for 4.0.



If you installed the product please mark as installed, so you can receive future update notifications. If you want to help develop this product further, please post your suggestions on the thread, or share your ideas with me via PM.

Download Now

File Type: xml product-quotenotification.xml (7.3 KB, 1154 views)

Screenshots

File Type: png pm.png (22.0 KB, 0 views)
File Type: png post.png (18.3 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
JamalFree

Comments
  #22  
Old 05-18-2010, 09:02 PM
Breathex Breathex is offline
 
Join Date: Oct 2004
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by doopz View Post
edit2: could you also give us the query to update he Pm changes for all users? (to YES)


Everyone needs this but no solution yet.
Reply With Quote
  #23  
Old 05-30-2010, 11:11 PM
Breathex Breathex is offline
 
Join Date: Oct 2004
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any progress?
Reply With Quote
  #24  
Old 06-04-2010, 09:54 PM
AngelBlue AngelBlue is offline
 
Join Date: Jun 2007
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Breathex View Post

Everyone needs this but no solution yet.
Add plugin:
Code:
		<plugin active="1" executionorder="1">
		<title>Quote Notification Cron</title>
		<hookname>cron_script_cleanup_hourly</hookname>
		<phpcode><![CDATA[
			$vbulletin->db->query_write("
				UPDATE `" . TABLE_PREFIX . "userfield` SET field" . $vbulletin->options['quotenotify_field'] . "='Private Message' where field" . $vbulletin->options['quotenotify_field'] . " = '';
			");
		]]></phpcode>
		</plugin>
Go to admincp/cronadmin.php?do=modify - and run task "Hourly Cleanup".

You may also want to re-order the options so that "Private Message" is first in the list (using the "Profile Field Manager"), and be sure "Set Default" is on. Don't change any of the text (except for re-ordering the 3 possible settings), though, or the mod will stop working.
Reply With Quote
  #25  
Old 08-26-2010, 08:36 AM
bydosangel's Avatar
bydosangel bydosangel is offline
 
Join Date: Dec 2008
Location: Damas
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AngelBlue View Post
Add plugin:
Code:
		<plugin active="1" executionorder="1">
		<title>Quote Notification Cron</title>
		<hookname>cron_script_cleanup_hourly</hookname>
		<phpcode><![CDATA[
			$vbulletin->db->query_write("
				UPDATE `" . TABLE_PREFIX . "userfield` SET field" . $vbulletin->options['quotenotify_field'] . "='Private Message' where field" . $vbulletin->options['quotenotify_field'] . " = '';
			");
		]]></phpcode>
		</plugin>
Go to admincp/cronadmin.php?do=modify - and run task "Hourly Cleanup".

You may also want to re-order the options so that "Private Message" is first in the list (using the "Profile Field Manager"), and be sure "Set Default" is on. Don't change any of the text (except for re-ordering the 3 possible settings), though, or the mod will stop working.
Hello
I'm getting this error when i do "Hourly Cleanup"
Parse error: syntax error, unexpected '<' in /******/*******/includes/cron/cleanup.php(78) : eval()'d code on line 1
Reply With Quote
  #26  
Old 08-27-2010, 12:57 AM
YankForum's Avatar
YankForum YankForum is offline
 
Join Date: Mar 2010
Location: MY
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very nice idea , but as a question : isn't it gonna put huge pressure on database ?
Reply With Quote
  #27  
Old 08-29-2010, 06:44 PM
VonDoom's Avatar
VonDoom VonDoom is offline
 
Join Date: Dec 2008
Location: USA
Posts: 494
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works Perfect 4.0.6 Thanks a bunch.
Reply With Quote
  #28  
Old 08-29-2010, 09:35 PM
Michlerish's Avatar
Michlerish Michlerish is offline
 
Join Date: May 2010
Location: Ontario
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by doopz View Post
Does this keep forum / user permissions in mind?
What if one of the moderators post a forum quote from a user, does this ueer get notified about it?


edit: Ok tested it, and it doesn't.
Can this option be build in?
Haven't installed because of this.

What I would suggest to AcidX to do something similar to what the User Tagging mod does... where you can disable/enable this feature per forum in the ACP. That way, you can just disable this feature for any Private forums.
Reply With Quote
  #29  
Old 10-27-2010, 10:51 PM
Juggernaut Juggernaut is offline
 
Join Date: Dec 2009
Location: California
Posts: 589
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by YankForum View Post
very nice idea , but as a question : isn't it gonna put huge pressure on database ?
Waiting for an answer to this question before installing, but I really like this idea.
Reply With Quote
  #30  
Old 10-31-2010, 07:51 PM
Juggernaut Juggernaut is offline
 
Join Date: Dec 2009
Location: California
Posts: 589
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One of my forum members reported a problem when she tried quoting someone who's inbox was full, unfortunately she didn't save a copy of the error message, but she said it looked like a database error and the name of the Quote Notification was in the message, is this a known issue with this mod?
Reply With Quote
  #31  
Old 10-31-2010, 10:38 PM
Froberg Froberg is offline
 
Join Date: Jan 2006
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent! It's installed!
Reply With Quote
Reply


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 08:59 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.04644 seconds
  • Memory Usage 2,346KB
  • 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
  • (2)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete