Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-27-2008, 04:43 PM
Elenna Elenna is offline
 
Join Date: Jan 2006
Location: St. Charles, MO
Posts: 422
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default "Ears Burning" Hack

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.
Reply With Quote
  #2  
Old 02-28-2008, 12:13 PM
shovel's Avatar
shovel shovel is offline
 
Join Date: Mar 2002
Location: South Carolina, US
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 02-28-2008, 12:53 PM
Elenna Elenna is offline
 
Join Date: Jan 2006
Location: St. Charles, MO
Posts: 422
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 02-28-2008, 12:59 PM
shovel's Avatar
shovel shovel is offline
 
Join Date: Mar 2002
Location: South Carolina, US
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 02-28-2008, 01:01 PM
Elenna Elenna is offline
 
Join Date: Jan 2006
Location: St. Charles, MO
Posts: 422
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wahooo Thanks so much for taking a stab at this!! NO rush whatsoever. Just a little idea floating around my head!
Reply With Quote
  #6  
Old 02-28-2008, 01:23 PM
shovel's Avatar
shovel shovel is offline
 
Join Date: Mar 2002
Location: South Carolina, US
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 02-28-2008, 02:07 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #8  
Old 02-29-2008, 09:38 PM
logicuk logicuk is offline
 
Join Date: Jan 2008
Posts: 327
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah i think this would also make a nice mod. good idea mate
Reply With Quote
  #9  
Old 03-03-2008, 03:01 PM
shovel's Avatar
shovel shovel is offline
 
Join Date: Mar 2002
Location: South Carolina, US
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?)?
Reply With Quote
  #10  
Old 03-03-2008, 03:33 PM
Elenna Elenna is offline
 
Join Date: Jan 2006
Location: St. Charles, MO
Posts: 422
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:36 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04730 seconds
  • Memory Usage 2,248KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete