Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-27-2006, 04:12 PM
sheitmar sheitmar is offline
 
Join Date: Sep 2005
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Imported user field but users don't show up?

Okay, the title may sound confusing but here is what I've done.

I updated to the newest VB (from 3.0.1 I think?), 3.5.3, but I was having problems doing a simple conversion since I had done so many modifications to my previous database. So I backed up the database, wiped it out, and installed VB in a fresh DB.

All I really wanted to do was restore my users and their post counts (that's all they really cared about)..however, there were quite a few differences in the forum fields so I basically had to rewrite the user field so everything would fit in perfectly with the new database.

After about an hour of work (with only 33 users!) I managed to get that all done, imported into the DB, fine. My users were then able to log in and post.

However, it seems that VB is having difficulty aligning the users to their actual accounts. Users may post but it shows up as "Guest", yet their username shows up in the title, yet with no link to their profile (but they're still logged in?). I tried to check out their user profiles in the admincp, but it simply links to a "/admincp/user.php?do=edit&u=" and gives me nothing.

Here's a screenshot of what I'm getting:



Here is the format of my database (user field):

Code:
CREATE TABLE `user` (
  `userid` int(10) unsigned NOT NULL auto_increment,
  `usergroupid` smallint(5) unsigned NOT NULL default '0',
  `membergroupids` varchar(250) NOT NULL default '',
  `displaygroupid` smallint(5) unsigned NOT NULL default '0',
  `username` varchar(100) NOT NULL default '',
  `password` varchar(32) NOT NULL default '',
  `passworddate` date NOT NULL default '0000-00-00',
  `email` varchar(100) NOT NULL default '',
  `styleid` smallint(5) unsigned NOT NULL default '0',
  `parentemail` varchar(50) NOT NULL default '',
  `homepage` varchar(100) NOT NULL default '',
  `icq` varchar(20) NOT NULL default '',
  `aim` varchar(20) NOT NULL default '',
  `yahoo` varchar(32) NOT NULL default '',
  `msn` varchar(100) NOT NULL default '',
  `skype` varchar(32) NOT NULL default '',
  `showvbcode` smallint(5) unsigned NOT NULL default '0',
  `showbirthday` smallint(5) unsigned NOT NULL default '2',
  `usertitle` varchar(250) NOT NULL default '',
  `customtitle` smallint(6) NOT NULL default '0',
  `joindate` int(10) unsigned NOT NULL default '0',
  `daysprune` smallint(6) NOT NULL default '0',
  `lastvisit` int(10) unsigned NOT NULL default '0',
  `lastactivity` int(10) unsigned NOT NULL default '0',
  `lastpost` int(10) unsigned NOT NULL default '0',
  `posts` int(10) unsigned NOT NULL default '0',
  `reputation` int(11) NOT NULL default '10',
  `reputationlevelid` int(10) unsigned NOT NULL default '1',
  `timezoneoffset` varchar(4) NOT NULL default '',
  `pmpopup` smallint(6) NOT NULL default '0',
  `avatarid` smallint(6) NOT NULL default '0',
  `avatarrevision` int(10) unsigned NOT NULL default '0',
  `profilepicrevision` int(10) unsigned NOT NULL default '0',
  `options` int(10) unsigned NOT NULL default '15',
  `birthday` varchar(10) NOT NULL default '',
  `birthday_search` date NOT NULL default '0000-00-00',
  `maxposts` smallint(6) NOT NULL default '-1',
  `startofweek` smallint(6) NOT NULL default '1',
  `ipaddress` varchar(15) NOT NULL default '',
  `referrerid` int(10) unsigned NOT NULL default '0',
  `languageid` smallint(5) unsigned NOT NULL default '0',
  `emailstamp` int(10) unsigned NOT NULL default '0',
  `threadedmode` smallint(5) unsigned NOT NULL default '0',
  `autosubscribe` smallint(6) NOT NULL default '-1',
  `pmtotal` smallint(5) unsigned NOT NULL default '0',
  `pmunread` smallint(5) unsigned NOT NULL default '0',
  `salt` char(3) NOT NULL default '',
  `wwu002activity` int(10) unsigned NOT NULL default '0',
  `wwu002activitydate` int(10) unsigned NOT NULL default '0',
  `wwu002memberlevel` tinyint(3) unsigned NOT NULL default '1',
  `wwu002fullmemberdate` int(10) unsigned NOT NULL default '0',
  `wwu002lastvisit` int(10) unsigned NOT NULL default '0',
  PRIMARY KEY  (`userid`),
  KEY `usergroupid` (`usergroupid`),
  KEY `username` (`username`),
  KEY `birthday` (`birthday`,`showbirthday`),
  KEY `birthday_search` (`birthday_search`)
) TYPE=MyISAM AUTO_INCREMENT=39 ;
Here is a copy of a user within the field..maybe I did something wrong, or maybe i missed something.


Code:
INSERT INTO `user` VALUES (3, 2, '', 0, 'waterworks', '54adc66dc4deb4f375dbac22c9c8a6cd', '2005-09-15', 'daniriviere@hotmail.com', 0, '', '', '', '', '', '', '', 2, 2, 'Senior Member', 0, 1126807200, -1, 1138335283, 1138367978, 1138329306, 597, 10, 5, '-6', 1, 0, 0, 0, 3415, '03-13-1982', '1982-03-13', 40, 1, '216.197.243.62', 0, 0, 0, 0, -1, 0, 0, '>QK', 414, 1138320000, 1, 0, 0);
In contrast, this user has absolutely NO problems, and can post with a link to their profile in the postbit.

Code:
INSERT INTO `user` VALUES (2, 2, '', 0, 'permahudef', 'a9c68d800cfceed6cedb13b85df2bba8', '2005-09-15', 'permahudef@yahoo.com', 0, '', 'http://homepage.usask.ca/~twb165/', '', '', '', '', '', 0, 0, 'Creepy Cowboy', 2, 1126807200, 0, 1138061701, 1138226677, 1138226255, 304, 10, 5, '-5', 1, 0, 0, 0, 3159, '12-12-1982', '1982-12-12', -1, 1, '130.15.195.205', 1, 0, 0, 0, -1, 6, 0, 'dU&', 270, 1138320000, 1, 0, 0);
Any ideas? Help would be greatly appreciated.

Actually I managed to fix it..I forgot to add fields to the "userfield" and "usertextfield" tables, thus creating my error.
Reply With Quote
  #2  
Old 01-27-2006, 05:34 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You should not have had any real problems when upgrading. What errors did you get when you tried an upgrade.

Also if your database is so much changed that an upgrade really (even with some manually help) don't work, you should try using ImpEx to import into a new clean database. Trying to do things manual is not the best way.

PS The reason that your users probably show up as guests, is that you didn't import all needed tables, more then only 'user' is needed.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:53 AM.


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.03650 seconds
  • Memory Usage 2,184KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (2)postbit
  • (2)postbit_onlinestatus
  • (2)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete