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
Who Quoted Me Details »»
Who Quoted Me
Version: 1.2.0, by renlok renlok is offline
Developer Last Online: Apr 2015 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.1.0 Rating:
Released: 12-14-2010 Last Update: 01-26-2011 Installs: 139
DB Changes Uses Plugins
Additional Files  
No support by the author.

In the user control panel, users can now see a list of the last few people who have quoted them.
This is a great way to encourage users to interact with each other as they can easily keep track of conversations within threads.


Based off https://vborg.vbsupport.ru/showthread.php?t=103768

Change log:
15-12-2010: v1.0.0 initial release
16-12-2010: v1.1.0 Added admin settings and notifications about new quotes
27-01-2011: v1.2.0 Added a button in maintenance -> update counters which finds all quotes and adds them to the who quoted me list (So users know who quoted them in all posts not just those made after installing this)

If you use this i would really appreciate any small donation


If you want The who quoted me list to have its own page download wqm_Page.zip upload the wqm.php file, install the plugin and in the plugin manager open up the Add to notifications list plugin find
PHP Code:
usercp.php 
and replace with
PHP Code:
wqm.php 

Download Now

File Type: zip wqm Page.zip (4.5 KB, 491 views)
File Type: xml product-who_quoted_me.xml (11.3 KB, 490 views)

Screenshots

File Type: png Screen shot 2010-12-15 at 23.17.36.png (13.4 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
babyv0x, henriof9

Comments
  #72  
Old 12-01-2011, 06:13 PM
Swedie's Avatar
Swedie Swedie is offline
 
Join Date: Feb 2002
Posts: 292
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, same problem here. It doesn't update... WTF: Must fix!
Reply With Quote
  #73  
Old 12-01-2011, 07:11 PM
Swedie's Avatar
Swedie Swedie is offline
 
Join Date: Feb 2002
Posts: 292
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The problem lies in the preg_match function. It's incorrect and fails finding quotes when there are line breaks (what I guess) in the post that is being quoted.

I wish I knew regex code well enough, but I don't, so I can only fix this by making an ugly piece of hack without regex that finds the quotes and puts then in an array. I might post it here, but beware it's fugly code.
Reply With Quote
  #74  
Old 12-01-2011, 07:58 PM
Swedie's Avatar
Swedie Swedie is offline
 
Join Date: Feb 2002
Posts: 292
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I figured it out pretty decently what caused it. It was the first preg_match but also for me I needed /is for case incensitive version.

Replace all the code in the plugin for this mod: Find Quotes

Code:
if(preg_match("/\[quote=(.*)\](.*)\[\/quote\]/is", $post['message'])) 
{
   preg_match_all("/\[quote=(.*?)\](.*?)\[\/quote\]/is", $post['message'], $quotematch);
	$quotecount = count($quotematch[0]);
	$tempcount = 0;
	$quotearray = array();

	while ($tempcount < $quotecount) 
	{
		$username = explode(';', $quotematch[1][$tempcount]);
		$quoteduserid = $vbulletin->db->query_first(
			"SELECT userid FROM " . TABLE_PREFIX . "user
			WHERE username = '" . $vbulletin->db->escape_string(htmlspecialchars_uni($username[0])) . "'"
		);

		if (!in_array($quoteduserid['userid'], $quotearray)) 
		{
			if ($quoteduserid['userid'] > 0)
			{
				$vbulletin->db->query_write("
					INSERT INTO " . TABLE_PREFIX . "quotedatanew (quoted,quoter,postid,dateline)
					VALUES ('" . $quoteduserid['userid'] . "','" . $vbulletin->userinfo['userid'] . "','" . $post['postid'] . "','" . time() . "')"
				);
				$quotearray[] = $quoteduserid['userid'];
			}
		}
		$tempcount++;
	}
}
This means this mod works up to version 4.x.x.
Reply With Quote
  #75  
Old 12-13-2011, 04:45 PM
henriof9 henriof9 is offline
 
Join Date: Jul 2011
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE=Swedie;2273791]I figured it out pretty decently what caused it. It was the first preg_match but also for me I needed /is for case incensitive version.

Replace all the code in the plugin for this mod: Find Quotes

Code:
if(preg_match("/\[quote=(.*)\](.*)\[\/quote\]/is", $post['message'])) 
{
   preg_match_all("/\
Quote:
Originally Posted by (.*?)\
(.*?)\[\/quote\]/is", $post['message'], $quotematch); $quotecount = count($quotematch[0]); $tempcount = 0; $quotearray = array(); while ($tempcount < $quotecount) { $username = explode(';', $quotematch[1][$tempcount]); $quoteduserid = $vbulletin->db->query_first( "SELECT userid FROM " . TABLE_PREFIX . "user WHERE username = '" . $vbulletin->db->escape_string(htmlspecialchars_uni($username[0])) . "'" ); if (!in_array($quoteduserid['userid'], $quotearray)) { if ($quoteduserid['userid'] > 0) { $vbulletin->db->query_write(" INSERT INTO " . TABLE_PREFIX . "quotedatanew (quoted,quoter,postid,dateline) VALUES ('" . $quoteduserid['userid'] . "','" . $vbulletin->userinfo['userid'] . "','" . $post['postid'] . "','" . time() . "')" ); $quotearray[] = $quoteduserid['userid']; } } $tempcount++; } }
Quote:
Originally Posted by (.*?)\

This means this mod works up to version 4.x.x.
Thanks, I have taken the hint from @inpicos post #65 and it works perfectly now.
Reply With Quote
  #76  
Old 12-20-2011, 11:29 PM
Breakpoint Breakpoint is offline
 
Join Date: Dec 2005
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Let me know when updates, would love to try with out fixing code
Reply With Quote
  #77  
Old 01-28-2012, 12:42 AM
thenamesgould thenamesgould is offline
 
Join Date: Mar 2008
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I like it, thanks! The only thing is the quotes in the off-limits areas, but we can be careful not to do any for now. Cheers.
Reply With Quote
  #78  
Old 08-17-2012, 01:47 PM
vauge vauge is offline
 
Join Date: Oct 2004
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to easily turn this off per user?
Reply With Quote
  #79  
Old 09-11-2012, 01:20 PM
scott_237 scott_237 is offline
 
Join Date: Sep 2008
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think this works MOST of the time, but I'm admin on my forums and I only get notified for a small percentage of the quotes, no all of them. Why is this?
Reply With Quote
  #80  
Old 10-02-2012, 07:42 PM
EliasAlucard's Avatar
EliasAlucard EliasAlucard is offline
 
Join Date: Nov 2009
Location: Sweden
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by scott_237 View Post
I think this works MOST of the time, but I'm admin on my forums and I only get notified for a small percentage of the quotes, no all of them. Why is this?
Yeah, I noticed now that it hasn't been working the past 3-4 days. I'm using vB 4.2.0 and it seems like this plugin could need an update.
Reply With Quote
  #81  
Old 11-02-2012, 10:52 PM
farazfaraz farazfaraz is offline
 
Join Date: Mar 2009
Location: Iran-Tehran
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

dont show

why?
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 02:01 PM.


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.04605 seconds
  • Memory Usage 2,343KB
  • 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
  • (2)bbcode_php
  • (3)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
  • (2)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