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


All times are GMT. The time now is 12:49 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.01372 seconds
  • Memory Usage 1,739KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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