PDA

View Full Version : "Ears Burning" Hack


Elenna
02-27-2008, 04:43 PM
I accidentally posted this in the wrong place, so here it is!

I'm looking for a hack that will notify a user (via PM, popup, or even just a box at the top of the screen) when their name is mentioned in a forum that they have access to.

Ideally, this can be used with a vB Code (like [user] or [notify]) so that a poster can "flag down" another member when they are requesting a response from this member.

I think a hack like this would be very useful. On busy boards, important posts can get "lost", and things can stay unresolved if someone doesn't notice that something in requested of them.

shovel
02-28-2008, 12:13 PM
I think this might be a bit shabby on the performance end but I can see the benefit from the forum goers. Basically what you would have to do is on input from a new reply, thread or post edit, query all user names from the users table. Once done, check the names array against the "whole" words in the post. As the matches are made you would store an array of their relative user IDs. Finally, you'd progressively fire off the PMs in a while loop to those who (I would assume) was willing to receive such responses via PM. As an administrative tool, you'd probably have the ability to "walk backwards" and cycle through many posts performing the same task. If you'd like to go deeper, you might even create a scheduled task for doing so. Nice idea Elenna. :)

I might have to take you up on it. ;)

Elenna
02-28-2008, 12:53 PM
:) Thanks! I'm not sure if it would be 'easier' to implement, or better on performance, but what if the text it searched was surrounded by appropriate vB (BB?) code, so it would be a poster-driven 'command' instead of searching the entire text of the post?


Edit: I'd certainly support users being able to turn on/off these notifications.

shovel
02-28-2008, 12:59 PM
Yes that would work, but ultimately you're still going to be scanning the data on input and you would most definitely need a list of user names to check against. You know what? I think I'll give it a shot today. You'll be marked as a contributor so keep an eye out. :)

Elenna
02-28-2008, 01:01 PM
Wahooo :) Thanks so much for taking a stab at this!! NO rush whatsoever. Just a little idea floating around my head!

shovel
02-28-2008, 01:23 PM
No problem! I think it'll be popular once word gets out and we get a few installs. :) One of the biggest problems out there is that people voice their ideas such as you, but no one ever takes the time to read them and give their own thoughts. Keep up the ideas, at least I'll read them haha. :)

Lynne
02-28-2008, 02:07 PM
I know at least two users on my site that would love this. They are always doing a search to see if someone has mentioned them!

logicuk
02-29-2008, 09:38 PM
yeah i think this would also make a nice mod. good idea mate :)

shovel
03-03-2008, 03:01 PM
I'm about 65% complete with this mod. I'm finished with the lookup and insert methods for the hack at least. So far when you post a new thread or new reply (i think edits as well), the message is checked against a Regular Expression string with all the usernames provided. When one is matched its added to the array of matches and written to the database. Should I show the posts mentioning the user in their UserCP? Or in a PM (but from who?)?

Elenna
03-03-2008, 03:33 PM
*cheers* Many thanks for your work on this!

Obviously others are interested, so please take their feedback into consideration as well.

But my thoughts are:

- Links in UserCP is okay, but I know that my users don't currently check their UserCP. Would be most helpful in a box on the top of home page or search page, etc, or an AJAX box.
- PM is also good - could be from admin-defined user, or possibly from the person who mentioned them.
- Perhaps the above could be a user-selectable option?

Shovel, are you using it with the bbcode option, or it's just scanning all text of the message.

At least for my board, it would be most useful to have the bbcode option, mainly because people resort to "nicknames" that wouldn't be parsed correctly... so if they wanted to "flag" a person, the intended recipient wouldn't be notified. Of course, if they took the time to use the BBCode, they could simply type out the member's full name!

Of course (and this is a really comlpex idea, just mulling it) there could be an option in each person's UserCP, where they type in their Nicknames, and they get notified with those texts too. Could be abused, though, if people put in names of other people to 'spy' on them.

Question - are forum permissions taken into consideration with this? If someone is talking about a member if a Moderator forum, we wouldn't want the user to get a PM about it ;)

shovel
03-03-2008, 03:48 PM
Absolutely, yeah my thoughts are to add a transparent user group to the forum providing the permissions such as receiving PMs and posting guidelines (e.g. what forums can this functionality live in?). The user group will be good enough for user control, you can just remove the ability from their profile via the AdminCP -> User Information.

Elenna
03-03-2008, 08:26 PM
Shovel,

So if I understand correctly, you can specify which forums it 'searches', and also which users' posts are scanned, or which users are 'notified'?

shovel
03-04-2008, 01:15 AM
Who will be scanned and who chooses to be notified. Correct.

logicuk
03-04-2008, 09:56 AM
this is going to be a great hack i will have alot of use for this, keep up the great work your doing :D

Elenna
03-11-2008, 08:06 PM
Just seeing how it's coming along, Shovel! No pressure, I'm just curious :)

The weather's been very very nice here, so if you're like me and would rather run out and enjoy the sun, I don't expect anything anytime soon!

TCE Killa
03-12-2008, 10:54 PM
I'm to very interested in this mod, thanks alot Shovel and great idea Elenna.

bigcurt
03-13-2008, 07:30 PM
Would be interesting to see how it plays out...thanks.

Elenna
04-19-2008, 02:45 AM
Any updates on this?

Elenna
05-29-2008, 08:18 PM
Just seeing if you've made any headway on this, Shovel. :)

Paul M
05-29-2008, 09:53 PM
There used to be a hack called "Who quoted me" that does something similar.

Elenna
05-30-2008, 12:48 PM
Thank you, Paul, I will go see if I can find that one.

tazzarkin
06-25-2008, 04:01 PM
There used to be a hack called "Who quoted me" that does something similar.

actually, this is kind of similar, but not the same thing. maybe it can be integrated into the other mod (with author's permission of course).

I THINK THE ORIGINAL IDEA WAS GREAT!

Did they ever develop the mod for the original idea? i hope you guys haven't given up on this.

Boofo
06-25-2008, 04:25 PM
You could do a cron and have it search the post table and do it that way, too.

Elenna
08-07-2008, 01:57 PM
I haven't given up on this, but there's been no action so far. :(

Elenna
04-01-2009, 04:00 AM
I'm curious if anyone else might be interested in this, and/or want to take this on as a pet project?

bransworld
04-01-2009, 12:40 PM
I would be very interested in this as well.

Gio~Logist
04-02-2009, 07:45 PM
So let me get this straight, a pm upon their name being mentioned would be the ideal situation, but then it comes down to issues where users may have actual words or something commonly used as their name, which would be a pain for some members.

What about a mod that notifies users when they have been quoted?

BlueNinjaGo
04-05-2009, 04:32 PM
So let me get this straight, a pm upon their name being mentioned would be the ideal situation, but then it comes down to issues where users may have actual words or something commonly used as their name, which would be a pain for some members.

What about a mod that notifies users when they have been quoted?

This would be resolved by making the person typing the post/thread have to use a BBcode tag... like [user] or [tag] or something... That way you can CHOOSE when or if you tag someone...

Also interested in this mod btw....

Elenna
04-22-2009, 02:49 PM
Yes, as BlueNinjaGo mentioned, it would be preferred if this were used in conjunction with a BBCode. Instead of a PM, I think a notification would be better, and perhaps even a screen in UserCP (since a popular person might receive a lot of notifications in a short time!).

It really is similar to the Who Quoted Me? (https://vborg.vbsupport.ru/showthread.php?t=103768) plugin, but using a custom BBCode as well as the Quote one.

EnIgMa1234
04-22-2009, 03:14 PM
I might give this a shot in the future.

Elenna
04-22-2009, 03:45 PM
I have managed to edit the Who Quoted Me? add-on to use a different BBCode (the [user] one), but it still requires the post ID, which makes it cumbersome.

I will keep fiddling with it. Since it isn't my code, I won't be releasing it, assuming I can get it to work!