Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-17-2009, 12:34 AM
TomJames TomJames is offline
 
Join Date: Apr 2006
Location: UK
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Who Quoted, guidance needed

I'm interested in attempting to make this, however I'd like a couple of pointers to help me on my way. Basically I'm looking to make what I posted over here.

Sadly I'm a little stumped as to what table would be best to query to find out when someone has been quoted, by whom and what the post ID is. I basically want this:

User1 Quotes User2 -> Cron runs every x seconds -> Identifies new quotes -> shows User 2 the last 5 times they've been quoted with direct link to post they were quoted in.


Problem is I have no idea which table, if any would tell me who's quoting who etc.
Reply With Quote
  #2  
Old 04-17-2009, 03:53 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah, if only it was that easy - just query a table. It's not, unfortunately. The best method to do this would be to catch posts as they are coming in (@ one of the Post DM hooks), and scan it for quotes, then do whatever to keep count.
Reply With Quote
  #3  
Old 04-17-2009, 08:55 AM
TomJames TomJames is offline
 
Join Date: Apr 2006
Location: UK
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah fair enough, so the best option would be to have a new database table to store the relevant details in. Hmm going to have to figure out the most efficient way of collecting the data now, thanks!
Reply With Quote
  #4  
Old 04-17-2009, 09:12 AM
Floris Floris is offline
 
Join Date: Jan 2002
Posts: 1,898
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would not even know where to start Way over my head. but ... is it worth the trouble? What is the purpose of getting these details available to the user? Wouldn't they get a post digest anyway if they're participating in topics?
Reply With Quote
  #5  
Old 04-17-2009, 10:01 AM
TomJames TomJames is offline
 
Join Date: Apr 2006
Location: UK
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Floris View Post
I would not even know where to start Way over my head. but ... is it worth the trouble? What is the purpose of getting these details available to the user? Wouldn't they get a post digest anyway if they're participating in topics?
I largely agree but on a few sites I've used it's really useful to see when you've been quoted, particularly in popular debate topics. It's certainly made me more active on a forum than I would have been otherwise.

I'm going to see how it works on phpBB and see if I can get the concept over. Problem is I'm used to working on PHP scripts that I've done myself rather than trying to incorporate changes into an existing one. Still, it's worth a go.
Reply With Quote
  #6  
Old 04-17-2009, 04:09 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a user who loves to see when he's mentioned. He just does a search on his username everytime he comes on the site. (He has a username that is an object that can be used in a regular sentence, so now users love to throw his name into posts just so he is stuck wading through the posts for what he really wants. )
Reply With Quote
  #7  
Old 04-17-2009, 05:07 PM
nexialys
Guest
 
Posts: n/a
Default

same here i suppose, people are always posting my name whenever they have the feel to bother me... lol
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 12:37 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.04230 seconds
  • Memory Usage 2,213KB
  • 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)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (6)postbit_onlinestatus
  • (7)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete