vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Adding user via PHP script causes strange problem: Name isn't clickable in threads (https://vborg.vbsupport.ru/showthread.php?t=171161)

steve.k 02-22-2008 12:43 PM

Adding user via PHP script causes strange problem: Name isn't clickable in threads
 
1 Attachment(s)
Hi,

I'm new to vbulletin and attempting to write a PHP script that adds a user to the vbulletin database manually. I'm using the SQL comment below to do this.

PHP Code:

            $sql "INSERT INTO $db_tablename (userid, usergroupid, displaygroupid, username, password,
                    passworddate, email, styleid, showvbcode, usertitle, joindate, daysprune, lastvisit, 
                    lastactivity, lastpost, posts, reputation, reputationlevelid, timezoneoffset, pmpopup, 
                    avatarid, avatarrevision,
                    options, birthday, birthday_search, maxposts, 
                    autosubscribe, salt)
                    VALUES ('', '2', '0', "
                    
"'" $user_username"', " 
                    
"'$hashedpassword', '2008-02-21', "
                    
"'" $user_email "', " 
                    
"'0', '1', 'Junior Member', '1187356935', '0', '1187356935', 
                    '1187356935', '0', '0', '10', '5', '0', '1', 
                    '0', '0',
                    '3143', '', '0000-00-00', '-1', '-1', '')"


I can login with users generated using this code. But, for some reason they don't have a clickable, big username in posts. See attached image for details (I uploaded it as a gif, I'm not sure why vbulletin converted it to a jpg).

Does anyone have any idea as to why this would happen? Do I have to add any other info to the database when adding a user? Or could it have to do with any of the data for the fields I used? I'll play around with it a bit more but I was curious as to if anyone has had a similiar problem.

Thanks!

Opserty 02-22-2008 12:56 PM

<a href="https://vborg.vbsupport.ru/showthread.php?t=171005#2" target="_blank">https://vborg.vbsupport.ru/showt...php?t=171005#2</a>

steve.k 02-22-2008 01:46 PM

Quote:

Originally Posted by Opserty (Post 1448657)

This worked well. Thanks again.


All times are GMT. The time now is 02:19 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.02751 seconds
  • Memory Usage 1,730KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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