vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Plugin placement to delete user from another table? (https://vborg.vbsupport.ru/showthread.php?t=126957)

bigtime 09-18-2006 07:23 PM

Plugin placement to delete user from another table?
 
Hello,

What plugin hook location do I need to insert the code to delete a user from a non-vb table when deleting the user from the admin panel?

Here is the code I'm using at userdata_delete:


PHP Code:

$db->query_write("DELETE from review_users 
    WHERE username='
$username'"); 


It is resulting in a blank page and the username is not removed from review_users.

Thanks.

ericgtr 09-18-2006 11:20 PM

I already deleted the other, so I pasted the old thread into this one. :)

bigtime 01-31-2007 05:10 PM

anyone?

dionsis 01-31-2007 10:15 PM

id be interested in this information too, if i edit a user in VB, or if a user edits himself, i would like to change information on another table

similar if they delete themselves or i admin delete them , i would like to delete information in the other database

dionsis 02-04-2007 01:13 PM

is this not possible to program vbulletin to do?

Antivirus 02-04-2007 10:11 PM

Eric I can't remember hook name off top of my head, but to find it, I would see what script name and branch is in admin dir where users are deleted (I think it's user.php?do=remove but could be wrong), then open that file in dreamweaver or wordpad and use find feature for 'hook' and when you get to the hook(s) within that branch, write down names and try your hode by creating plugin using the hook locationds you found. One of them should be what u need.


All times are GMT. The time now is 11:48 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.01089 seconds
  • Memory Usage 1,716KB
  • 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)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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