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

Reply
 
Thread Tools
Quote Notification Details »»
Quote Notification
Version: 1.0.2, by Krofh Krofh is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 04-07-2006 Last Update: 07-06-2006 Installs: 39
DB Changes Uses Plugins
 
No support by the author.

Quote Notification

Note: This hack does not work in vBulletin 3.6. If someone would like to port it, that's fine with me, but I don't feel like updating this particular hack.

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

Installation:
  • Import the product XML file
  • Go to your User CP > Edit Options and select "Quote Notification" if you like
  • 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 want to set a default user for the notification PMs to be sent through, go to ACP > vBulletin Options > Message Posting and Editing Options > Quote Notification Sender; set it to 0 for the sender to be whoever did the quoting

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.

Contains:
  • 1 Plugin
  • 1 Profile Field
  • 2 Phrases

This hack is somewhat similar to Who quoted me?, but still considerably different, and if your forum is concerned about quotes then both could probably go rather nicely together.

Version History:
1.0.2
- Fixed compatibility issues with Backlink For Quotes
- Added option for notification by Email or Private Message
- Added ACP option for one specific PM sender or for the PMs to be sent by the user who did the quoting (original functionality)
1.0.1
- Fix for users with apostrophes
1.0
- Original version


Please click install.

Show Your Support

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

Comments
  #62  
Old 05-30-2008, 11:37 PM
Breathex Breathex is offline
 
Join Date: Oct 2004
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Breathex View Post
How can we use it for 3.7.x?
Any answers? This is a great plugin, but not working in 3.7
Reply With Quote
  #63  
Old 05-31-2008, 12:39 AM
SpankMe's Avatar
SpankMe SpankMe is offline
 
Join Date: Nov 2001
Location: New Zealand
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is what I have in my Quote Notification newpost_complete plugin. Works fine in 3.7 and worked in 3.6 to. You just need to change the field id number "profile_fields.field21" to whatever your custom profile field number is on your forums.

PHP Code:
$kr_load = array();
$kr_text = array();
if (
preg_match_all("/\[quote=([^\\\"\]]*?)\](.*?)\[\/quote\]/is",$post['message'],$matches)>0) {
    for (
$kr=0;$kr<count($matches[1]);$kr++){
        
//echo $matches[1][$kr]."<br>";
        
$matches[1][$kr] = (strpos($matches[1][$kr],";")) ? substr($matches[1][$kr],0,strpos($matches[1][$kr],";")) : $matches[1][$kr];
        if (
strtolower($matches[1][$kr]) != strtolower($vbulletin->userinfo['username'])) {
            if (!
in_array($matches[1][$kr], $kr_load)) {
                
$kr_load[] = $matches[1][$kr];
                
$kr_text[] = "[quote=".$matches[1][$kr]."]".$matches[2][$kr]."[/quote]";
            }
            else {
                for (
$kri=0;$kri<count($kr_load);$kri++) {
                    if (
$kr_load[$kri] == $matches[1][$kr]) {
                        
$kr_text[$kri] .= "[quote=".$matches[1][$kr]."]".$matches[2][$kr]."[/quote]";
                        break;
                    }
                }
            }
        }
    }
}
if (
count($kr_load) > 0) {
    for (
$kr=0;$kr<count($kr_load);$kr++) {
        
//echo "<br>" . $kr_load[$kr];
        
$quoteuserquery $vbulletin->db->query_first("SELECT user_table.userid AS userid, profile_fields.field21 AS wantquotenotify FROM " TABLE_PREFIX "user AS user_table LEFT JOIN " TABLE_PREFIX "userfield AS profile_fields ON (user_table.userid=profile_fields.userid) WHERE user_table.username='" $vbulletin->db->escape_string($kr_load[$kr]) . "' GROUP BY user_table.userid");
        
$theurl $vbulletin->options['bburl'] . "/showthread.php?p=" $post['postid'] . "#post" $post['postid'];
        if (
$quoteuserquery['wantquotenotify'] == "Yes") {
            
// Override a potentially full inbox.
            
$senderpermissions['adminpermissions'] = 2;
            
$pmdm =& datamanager_init('PM'$vbulletinERRTYPE_ARRAY);

            
$pmdm->overridequota true;
            
$pmdm->set('fromuserid'$vbulletin->userinfo['userid']);
            
$pmdm->set('fromusername'$vbulletin->userinfo['username']);
            
$pmdm->set('title'$vbphrase['quotenotify_subject']);
            
$pmdm->set('message'construct_phrase($vbphrase['quotenotify_message'], $kr_load[$kr], $vbulletin->userinfo['username'], $kr_text[$kr], $theurl));
            
$pmdm->set_recipients($kr_load[$kr], $senderpermissions);
            
$pmdm->set('dateline'TIMENOW);

            
$pmdm->save();
            
//echo "curr url is " . $vbulletin->url;
            //echo "send a pm to " . $kr_load[$kr] . "with contents " . $kr_text[$kr];
        
}
    }

Reply With Quote
  #64  
Old 06-08-2008, 01:53 AM
Breathex Breathex is offline
 
Join Date: Oct 2004
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the reply, and how will i install it? Any updated xml file?
Reply With Quote
  #65  
Old 06-08-2008, 03:34 AM
SpankMe's Avatar
SpankMe SpankMe is offline
 
Join Date: Nov 2001
Location: New Zealand
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The only thing I have changed since I installed it in 3.5, is the above plugin. I have no idea if the original xml will install in 3.7. But the three things you need to install (phrases, custom profile field & plugin) can be installed manually through the admincp.
Reply With Quote
  #66  
Old 06-25-2008, 08:22 PM
Konstantinos Konstantinos is offline
 
Join Date: Apr 2006
Posts: 443
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is very usefull hack. however i need to stop it sending quote notification that comes from users that are added to tachy goes to conventry.

meaning when users who are added to coventry when quoting normail members.

anyway for this SpankMe?
Reply With Quote
  #67  
Old 06-30-2008, 02:02 PM
Breathex Breathex is offline
 
Join Date: Oct 2004
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SpankMe View Post
The only thing I have changed since I installed it in 3.5, is the above plugin. I have no idea if the original xml will install in 3.7. But the three things you need to install (phrases, custom profile field & plugin) can be installed manually through the admincp.
...and also i tried to install it manually but it gives database error in 3.7.2 :/
Reply With Quote
  #68  
Old 06-30-2008, 10:57 PM
SpankMe's Avatar
SpankMe SpankMe is offline
 
Join Date: Nov 2001
Location: New Zealand
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Breathex View Post
...and also i tried to install it manually but it gives database error in 3.7.2 :/
What gives you a database error? and whats the error?
Reply With Quote
  #69  
Old 07-01-2008, 10:12 PM
Breathex Breathex is offline
 
Join Date: Oct 2004
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It gives this error;

PHP Code:
Database error in vBulletin 3.7.2:

Invalid SQL:
INSERT INTO vb3_profilefield (titledescriptionrequiredhiddenmaxlengthsizedisplayordereditabletypedataheightdefoptionalsearchablememberlistregexformhtmlVALUES ('Quote Notification''Would you like to be notified by PM when someone quotes something you said in a post?''0''1''250''25''100''1''radio''a:2:{i:0;s:2:"No";i:1;s:3:"Yes";}''0''1''0''0''0''''2''0');

MySQL Error   Unknown column 'title' in 'field list'
Error Number  1054
Request Date  
WednesdayJuly 2nd 2008 01:09:19 AM
Error Date    
WednesdayJuly 2nd 2008 01:09:19 AM
Script        
http://xxxxxx/admincp/plugin.php?do=productimport
Referrer      http://xxxxxx/admincp/plugin.php?do=productadd
IP Address    85.108.150.135
Username      
xxxxxx
Classname     
vB_Database
MySQL Version 
5.0.58 
Reply With Quote
  #70  
Old 07-02-2008, 05:24 AM
SpankMe's Avatar
SpankMe SpankMe is offline
 
Join Date: Nov 2001
Location: New Zealand
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Breathex View Post
It gives this error;
Looks like you tried to import the product instead of installing it manually.
Reply With Quote
  #71  
Old 07-02-2008, 10:05 PM
Breathex Breathex is offline
 
Join Date: Oct 2004
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
(phrases, custom profile field & plugin)
*** How will i install phrases?
*** what will i enter to the boxes in "Add New Plugin" and "Add a Profile Field" menu?

I think i need a guidance I didn't add an add-on in this way before, sorry.
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 11: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.08338 seconds
  • Memory Usage 2,362KB
  • Queries Executed 25 (?)
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_php
  • (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
  • (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
  • (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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete