vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Reassigning Posts to UserID's ? (https://vborg.vbsupport.ru/showthread.php?t=223353)

Angel-Wings 09-16-2009 06:32 PM

Reassigning Posts to UserID's ?
 
Hello :)

Is it possible to reassign posts to an UserID ? It's if you prune a user via Admin Panel, looking in the DB all PM's, Posts and Threads still seem to be there with the corresponding UserID so if I register a new User and change the ID I thought that this new User maybe "owns" the corresponding content though it doesn't work as expected. :(

The UserID itself matches, still Posts / Threads and so on don't still belong to this ID.

Maybe there's another way of getting this work - any help is really welcome

Paul M 09-16-2009 06:37 PM

When you delete a user, the userid in the post table is set to zero.

What exactly are you trying to do ?

Angel-Wings 09-16-2009 06:54 PM

Yes about the UserID in the posts table. What I am trying to do is that the username are still present and I still have the name = ID table that I can assign ID's to usernames. So I wanted to give a specific ID the posts & threads back.

Paul M 09-16-2009 10:38 PM

update post set userid = 123 where username = 'membername'

I think is what your after (change 123 and membername as required).

Im not sure how good an idea this is tho.

Angel-Wings 09-17-2009 09:27 AM

Yup - wanted to add this Query but during the EDIT I got a timeout. :)


All times are GMT. The time now is 05:10 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.01434 seconds
  • Memory Usage 1,708KB
  • 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
  • (5)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