vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Who Quoted Me (https://vborg.vbsupport.ru/showthread.php?t=255285)

vauge 11-14-2012 05:50 PM

[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.

Is there a way to wrap this in a forumid array check to turn off specific forums?

Thanks!

sadiq6210 11-15-2012 08:05 AM

Is it working with 4.1.12?

letipro 12-14-2012 08:05 AM

please update to vbb 4.2.0
thank

acast 12-16-2012 06:32 PM

I am having a problem. With the mobiles, the quotes don't appear.

halocommunity 12-16-2012 07:23 PM

Works on 4.2.0 PL2 and updated the plugin to allow for quotes with line breaks. Any chance we can get an option in the usercp to turn off notifications?

sadiq6210 01-05-2013 07:00 PM

The mod is working but there is a user (white❤heart), She doesn't receive notifications
If I remove this symbol (❤) and change her username to (white heart) then it is working perfect !

Any idea?

marccap 02-01-2013 08:39 AM

installed on 4.2 and working fine :cool:

RFLIndustries 02-18-2013 03:37 AM

is it possible to make it where it does not open up a new window?

WorldCraft 02-24-2013 06:28 PM

Works alright. I'd like to request the feature of allowing users to choose if they want notifications on or off.

BGObsession 07-04-2013 03:11 AM

Working perfectly for me on 4.2.1. You do have to go to your Admin CP Settings section to turn on the 'Notifications' function, just as an fyi...

dutchbb 07-04-2013 09:41 AM

Does anyone know how to tweak the top quoters query so that it only shows the top quoters of the last year instead of all time? For the 3.8 version if there's a difference...

Bulent Tekcan 12-28-2013 08:45 AM

Is it work on 4.1.1 ?

asabet 05-17-2014 01:23 PM

Works on 4.2.2PL1

yjmalmsteen 04-06-2015 05:56 AM

Works fine with first install but after 7-8 hours, it stopped working. i cant use it now. 4.2.2 PL4

Phaedrus 07-25-2017 01:30 AM

If posts are quoted in private forums does the user receive a notification? I'd not want users notified that their posts have been reported in our Mod Forum or if we quote a post up there to talk about among the mod teams.

Phaedrus 07-25-2017 02:00 AM

Yes, in testing I was notified when I quoted my test account in the Mod Forum...

Phaedrus 07-25-2017 02:37 AM

Quote:

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("/\[quot=(.*)(.*)\[\/quote\]/is", $post['message']))
{
  preg_match_all("/\

Thanks, I have taken the hint from @inpicos post #65 and it works perfectly now. :)
This worked. Thank you... Now I have to make sure the mods edit the name in the quoted by feature... I'll test that. Okay, this worked on that as well, quoting my test account in the Mod Forum didn't notify my test account.

However, I am receiving no notifications on my account of quotes. Which was something I was looking forward to... Any ideas?

In the maintenance area, in General Update tools I found a "Update Who Quoted Me." option... I suddenly have thousands... Hopefully once it runs I'll get notifications of new quotes too. :dunno:

I am getting notifications, however users are notified if they are quoted in the Mod Forum on my site... I'll have to figure out how it would "if allowed" then "notify" at some point if the OP doesn't fix it.


All times are GMT. The time now is 03:33 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.01206 seconds
  • Memory Usage 1,755KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (17)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete