vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Expanding search.php to include 'anonymous' postings (https://vborg.vbsupport.ru/showthread.php?t=223773)

vespillo 09-22-2009 11:18 PM

Expanding search.php to include 'anonymous' postings
 
Hi all,

I am a big fan of Zoint's Anonymous Posting plugin as are the members of our forum. As such, I'd like to expand the search.php functionality to include posts that users made "anonymously" for staff members to see.

I believe this can be done using the Plugin system, but I am at a bit of a loss as far as finding documentation for the various hooks and what duties they perform. Here is a pseudocode example of what I'm looking to do:

User clicks on "Find all posts by <username>" from a user profile
- if user is not staff member then
-- perform normal query
- if user is staff member then
-- perform query with additional call for: SELECT * FROM `vb_anonymous_log WHERE userid = $userid
-- nest results sequentially as you would for a normal search

...hopefully that makes sense. Basically, I'd just like it to do another db call to search the other posts table for additional information. Could someone be so kind as to suggest where I should start, or (preferably) point me to some documentation for the plugin hooks that might help?

Thanks!


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

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.00958 seconds
  • Memory Usage 1,704KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete