The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Quote Notification Details »» | |||||||||||||||||||||||||
Quote Notification
Note: This hack does not work in vBulletin 3.6. If someone would like to port it, that's fine with me, but I don't feel like updating this particular hack. Description: This plugin will add a "Quote Notification" option for users to select. If selected, they will receive a notification by PM whenever someone quotes them in a post. Installation:
Warning: DO NOT change the title of the Profile Field from "Quote Notification", or the values from "Private Message", "Email", and "No" or this hack will not work. Contains:
This hack is somewhat similar to Who quoted me?, but still considerably different, and if your forum is concerned about quotes then both could probably go rather nicely together. Version History: 1.0.2 - Fixed compatibility issues with Backlink For Quotes - Added option for notification by Email or Private Message - Added ACP option for one specific PM sender or for the PMs to be sent by the user who did the quoting (original functionality) 1.0.1 - Fix for users with apostrophes 1.0 - Original version Please click install. Show Your Support
|
Благодарность от: | ||
JohorBahru |
Comments |
#22
|
||||
|
||||
Hmmm, it's not currently an option but it's something I can consider adding. Right now, the sender is the person who quoted you.
|
#23
|
||||
|
||||
How about email notifications instead of pm notifications?
|
#24
|
||||
|
||||
I suppose that's a good idea too... though can't you turn email notification on for when you get a PM, then it'll PM and email you? haha jk. I'll probably add all this stuff from the last several posts in about a week or so (this next week is crazy for me, no time for programming whatsoever) and release an updated version of the script.
|
#25
|
||||
|
||||
Updated as promised, with the above suggestions... Email/PM notification choice, and the ability to set what user sent the notification in the case of PMs.
|
#26
|
||||
|
||||
Thank you, Krofh! Installed
|
#27
|
|||
|
|||
Any update for 3.6?
Code:
Invalid SQL: SELECT profilefieldid FROM profilefield WHERE title='Quote Notification'; MySQL Error : Unknown column 'title' in 'where clause' Error Number : 1054 Date : Sunday, October 1st 2006 @ 03:43:35 AM Script : http://www.domain.com/admincp/plugin.php?do=productkill Referrer : http://www.domain.com/admincp/plugin.php?do=productdelete&productid=quotenotify&s= can't unisntall it. Code:
Database error in vBulletin 3.6.0: Invalid SQL: SELECT profilefieldid FROM profilefield WHERE title='Quote Notification'; MySQL Error : Unknown column 'title' in 'where clause' Error Number : 1054 Date : Sunday, October 1st 2006 @ 03:44:29 AM Script : http://www.domain.com/admincp/plugin.php?do=productkill Referrer : http://www.domain.com/admincp/plugin.php?do=productdelete&productid=quotenotify&s= |
#28
|
||||
|
||||
^ Huh, that's not cool... they apparently removed the "title" column from the profilefield table in 3.6, and I can't seem to figure out where they moved it to :-/ try adding this at the very beginning of the uninstall code:
Code:
$db->query_write("ALTER TABLE " . TABLE_PREFIX . "profilefield ADD title VARCHAR (255)"); $db->query_write("UPDATE TABLE " . TABLE_PREFIX . "profilefield SET title='Quote Notification' where profilefieldid='[insert profilefieldid here]'"); Code:
$db->query_write("ALTER TABLE " . TABLE_PREFIX . "profilefield DROP title"); Weiiiiirrrdddd, I wonder where they put those titles... I saw something about the datastore table, but I couldn't find them in there :-/ if anyone else knows, that'd be cool to know |
#29
|
|||
|
|||
Thank you, Krofh!
But got this error: Code:
Invalid SQL: UPDATE TABLE profilefield SET title='Quote Notification' where profilefieldid='[insert profilefieldid here]'; MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TABLE profilefield SET title='Quote Notification' where profilefieldid='[insert ' at line 1 Error Number : 1064 Tried again: Code:
Invalid SQL: ALTER TABLE profilefield ADD title VARCHAR (255); MySQL Error : Duplicate column name 'title' Error Number : 1060 Uninstall Code: Code:
$db->query_write("ALTER TABLE " . TABLE_PREFIX . "profilefield ADD title VARCHAR (255)"); $db->query_write("UPDATE TABLE " . TABLE_PREFIX . "profilefield SET title='Quote Notification' where profilefieldid='[insert profilefieldid here]'"); $gettheid = $db->query_first("SELECT profilefieldid FROM " . TABLE_PREFIX . "profilefield WHERE title='Quote Notification'"); $db->query_write("DELETE FROM " . TABLE_PREFIX . "profilefield WHERE profilefieldid='" . $gettheid['profilefieldid'] . "' LIMIT 1"); $db->query_write("ALTER TABLE " . TABLE_PREFIX . "userfield DROP field" . $gettheid['profilefieldid']); $db->query_write("ALTER TABLE " . TABLE_PREFIX . "profilefield DROP title"); |
#30
|
||||
|
||||
Where it says {insert profileid here}, I meant for you to put the number of the profileid... since vB3.6 kinda broke this, you'll have to look it up yourself. Go to the User Profile Field Manager, look at the links on things, at the end it has profilefieldid={number}, the number on Quote Notification should be that one.
Btw, now that you added the TITLE field, take the Code:
$db->query_write("ALTER TABLE " . TABLE_PREFIX . "profilefield ADD title VARCHAR (255)"); |
#31
|
|||
|
|||
My profilefield is field21
Error: Code:
Invalid SQL: UPDATE TABLE profilefield SET title='Quote Notification' where profilefieldid='[field21]'; MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TABLE profilefield SET title='Quote Notification' where profilefieldid='[field21' at line 1 Error Number : 1064 Unisntall Code: Code:
$db->query_write("UPDATE TABLE " . TABLE_PREFIX . "profilefield SET title='Quote Notification' where profilefieldid='[field21]'"); $gettheid = $db->query_first("SELECT profilefieldid FROM " . TABLE_PREFIX . "profilefield WHERE title='Quote Notification'"); $db->query_write("DELETE FROM " . TABLE_PREFIX . "profilefield WHERE profilefieldid='" . $gettheid['profilefieldid'] . "' LIMIT 1"); $db->query_write("ALTER TABLE " . TABLE_PREFIX . "userfield DROP field" . $gettheid['profilefieldid']); $db->query_write("ALTER TABLE " . TABLE_PREFIX . "profilefield DROP title"); Code:
$db->query_write("UPDATE TABLE " . TABLE_PREFIX . "profilefield SET title='Quote Notification' where profilefieldid='[21]'"); $gettheid = $db->query_first("SELECT profilefieldid FROM " . TABLE_PREFIX . "profilefield WHERE title='Quote Notification'"); $db->query_write("DELETE FROM " . TABLE_PREFIX . "profilefield WHERE profilefieldid='" . $gettheid['profilefieldid'] . "' LIMIT 1"); $db->query_write("ALTER TABLE " . TABLE_PREFIX . "userfield DROP field" . $gettheid['profilefieldid']); $db->query_write("ALTER TABLE " . TABLE_PREFIX . "profilefield DROP title"); Code:
$db->query_write("UPDATE TABLE " . TABLE_PREFIX . "profilefield SET title='Quote Notification' where profilefieldid='field21'"); $gettheid = $db->query_first("SELECT profilefieldid FROM " . TABLE_PREFIX . "profilefield WHERE title='Quote Notification'"); $db->query_write("DELETE FROM " . TABLE_PREFIX . "profilefield WHERE profilefieldid='" . $gettheid['profilefieldid'] . "' LIMIT 1"); $db->query_write("ALTER TABLE " . TABLE_PREFIX . "userfield DROP field" . $gettheid['profilefieldid']); $db->query_write("ALTER TABLE " . TABLE_PREFIX . "profilefield DROP title"); Code:
$db->query_write("UPDATE TABLE " . TABLE_PREFIX . "profilefield SET title='Quote Notification' where profilefieldid='21'"); $gettheid = $db->query_first("SELECT profilefieldid FROM " . TABLE_PREFIX . "profilefield WHERE title='Quote Notification'"); $db->query_write("DELETE FROM " . TABLE_PREFIX . "profilefield WHERE profilefieldid='" . $gettheid['profilefieldid'] . "' LIMIT 1"); $db->query_write("ALTER TABLE " . TABLE_PREFIX . "userfield DROP field" . $gettheid['profilefieldid']); $db->query_write("ALTER TABLE " . TABLE_PREFIX . "profilefield DROP title"); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|