vespillo
09-22-2009, 11:18 PM
Hi all,
I am a big fan of Zoint's Anonymous Posting plugin (https://vborg.vbsupport.ru/showthread.php?p=1870709) 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!
I am a big fan of Zoint's Anonymous Posting plugin (https://vborg.vbsupport.ru/showthread.php?p=1870709) 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!