The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Who Quoted Me Details »» | |||||||||||||||||||||||||||||||
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:
PHP Code:
Download Now
Screenshots
Show Your Support
|
Comments |
#72
|
||||
|
||||
Yeah, same problem here. It doesn't update... WTF: Must fix!
|
#73
|
||||
|
||||
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. |
#74
|
||||
|
||||
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++; } } |
#75
|
|||
|
|||
[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:
|
#76
|
|||
|
|||
Let me know when updates, would love to try with out fixing code
|
#77
|
|||
|
|||
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.
|
#78
|
|||
|
|||
Is there a way to easily turn this off per user?
|
#79
|
|||
|
|||
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?
|
#80
|
||||
|
||||
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.
|
#81
|
|||
|
|||
dont show
why? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|