vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   print_chooser_row Problem. (https://vborg.vbsupport.ru/showthread.php?t=135695)

Tuk4 01-06-2007 02:06 PM

print_chooser_row Problem.
 
Hey guys, using 3.6.4 Version. And im trying to add to Users field selecting row.

Now added 2 Hooks:

Hook: useradmin_edit_column1
Added: print_chooser_row('Select Group', 'user[groupid]', 'groups', $user['groupid']);

Hook: userdata_start
Added: $this->validfields['groupid'] = array(TYPE_INT, REQ_NO);

Now when im going to add user - he's using the following sql cmd.
SELECT title, groupsid FROM groups WHERE groupsid....

i get this error because its not the fields i have in my DB, and i have no itention of changing them either, for the reason that i have a whole system running on it, and it will take me ages.
NOW.. my question is how can i select the field he'll choose from.. and update only Groupid on users table..

Im out of ideas..
thanks for the help, appriciated.

noppid 01-06-2007 02:31 PM

Is it groupid or groupsid as you have in your query?

Tuk4 01-06-2007 03:07 PM

in my query i have it as groupid

Tuk4 01-12-2007 10:19 AM

anyone knows the sulotion of this problem? or its not possible... please let me know. thansk


All times are GMT. The time now is 09:05 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.01193 seconds
  • Memory Usage 1,706KB
  • 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
  • (4)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