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 - Quote Notification via PM (https://vborg.vbsupport.ru/showthread.php?t=242358)

Breathex 05-18-2010 09:02 PM

Quote:

Originally Posted by doopz (Post 2039069)
edit2: could you also give us the query to update he Pm changes for all users? (to YES)



Everyone needs this but no solution yet.

Breathex 05-30-2010 11:11 PM

Any progress?

AngelBlue 06-04-2010 09:54 PM

Quote:

Originally Posted by Breathex (Post 2039486)

Everyone needs this but no solution yet.

Add plugin:
Code:

                <plugin active="1" executionorder="1">
                <title>Quote Notification Cron</title>
                <hookname>cron_script_cleanup_hourly</hookname>
                <phpcode><![CDATA[
                        $vbulletin->db->query_write("
                                UPDATE `" . TABLE_PREFIX . "userfield` SET field" . $vbulletin->options['quotenotify_field'] . "='Private Message' where field" . $vbulletin->options['quotenotify_field'] . " = '';
                        ");
                ]]></phpcode>
                </plugin>

Go to admincp/cronadmin.php?do=modify - and run task "Hourly Cleanup".

You may also want to re-order the options so that "Private Message" is first in the list (using the "Profile Field Manager"), and be sure "Set Default" is on. Don't change any of the text (except for re-ordering the 3 possible settings), though, or the mod will stop working.

bydosangel 08-26-2010 08:36 AM

Quote:

Originally Posted by AngelBlue (Post 2048485)
Add plugin:
Code:

                <plugin active="1" executionorder="1">
                <title>Quote Notification Cron</title>
                <hookname>cron_script_cleanup_hourly</hookname>
                <phpcode><![CDATA[
                        $vbulletin->db->query_write("
                                UPDATE `" . TABLE_PREFIX . "userfield` SET field" . $vbulletin->options['quotenotify_field'] . "='Private Message' where field" . $vbulletin->options['quotenotify_field'] . " = '';
                        ");
                ]]></phpcode>
                </plugin>

Go to admincp/cronadmin.php?do=modify - and run task "Hourly Cleanup".

You may also want to re-order the options so that "Private Message" is first in the list (using the "Profile Field Manager"), and be sure "Set Default" is on. Don't change any of the text (except for re-ordering the 3 possible settings), though, or the mod will stop working.

Hello
I'm getting this error when i do "Hourly Cleanup"
Parse error: syntax error, unexpected '<' in /******/*******/includes/cron/cleanup.php(78) : eval()'d code on line 1

YankForum 08-27-2010 12:57 AM

very nice idea , but as a question : isn't it gonna put huge pressure on database ?

VonDoom 08-29-2010 06:44 PM

Works Perfect 4.0.6 Thanks a bunch.

Michlerish 08-29-2010 09:35 PM

Quote:

Originally Posted by doopz (Post 2039069)
Does this keep forum / user permissions in mind?
What if one of the moderators post a forum quote from a user, does this ueer get notified about it?


edit: Ok tested it, and it doesn't.
Can this option be build in?

Haven't installed because of this.

What I would suggest to AcidX to do something similar to what the User Tagging mod does... where you can disable/enable this feature per forum in the ACP. That way, you can just disable this feature for any Private forums.

Juggernaut 10-27-2010 10:51 PM

Quote:

Originally Posted by YankForum (Post 2090120)
very nice idea , but as a question : isn't it gonna put huge pressure on database ?

Waiting for an answer to this question before installing, but I really like this idea. :D

Juggernaut 10-31-2010 07:51 PM

One of my forum members reported a problem when she tried quoting someone who's inbox was full, unfortunately she didn't save a copy of the error message, but she said it looked like a database error and the name of the Quote Notification was in the message, is this a known issue with this mod?

Froberg 10-31-2010 10:38 PM

Excellent! It's installed!


All times are GMT. The time now is 05:03 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.01208 seconds
  • Memory Usage 1,743KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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