vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   request is sql to empty fields Profile (https://vborg.vbsupport.ru/showthread.php?t=281788)

faris_0555 04-19-2012 03:24 PM

request is sql to empty fields Profile
 
Hello
I need the Implementation is the sql Discharge fields Profile to all Members!
Is it possible to get this code!

Wait

kh99 04-19-2012 04:30 PM

Are you saying you want to erase all users profile fields?

faris_0555 04-19-2012 05:13 PM

Yes, I want to do a dump of all the fields!

kh99 04-19-2012 05:54 PM

OK, so you want to reset the values, not remove the fields themselves (you'd do that through the profile field manager in the admincp). Anyway, it would be something like:

Code:

UPDATE userfield SET field1='', field2='', ... fieldN=''

where you'd list the fields you want to erase, of course. Use with caution! If there's any doubt, you should make a backup of your database first.

faris_0555 04-19-2012 06:13 PM

How do I do it!

Code:

UPDATE userfield SET field1='', field2='', ... fieldN=''
I enter the command full or what?

I have 9 fields!
Please, clarification

kh99 04-19-2012 06:46 PM

Here's what you'd do for 2 fields (including the original fields that come with vbulletin):


Code:

UPDATE userfield SET field1='', field2=''

and for 3 fields it would be this:

Code:

UPDATE userfield SET field1='', field2='', field3=''

so you should be able to extend it to 9 fields and/or include whichever fields you want.

faris_0555 04-19-2012 08:13 PM

Thank you!
Was successful ..
I want to need
discharge Profile Photos

ahmed-samara 04-23-2012 08:07 AM

Quote:

Originally Posted by faris_0555 (Post 2321708)
Thank you!
Was successful ..
I want to need
discharge Profile Photos

discharge Profile avatar
Code:

TRUNCATE avatar;
If you mean photos Another does not advise you of this!


All times are GMT. The time now is 04:14 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.01085 seconds
  • Memory Usage 1,725KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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